1 9 package org.jboss.portal.server.impl.invocation; 10 11 import javax.servlet.http.HttpServletRequest ; 12 import javax.servlet.http.HttpServletResponse ; 13 14 import org.jboss.portal.server.PortalServer; 15 import org.jboss.portal.server.ServerManager; 16 import org.jboss.portal.server.config.Configuration; 17 import org.jboss.portal.server.invocation.Invocation; 18 import org.jboss.portal.server.invocation.InvocationFactory; 19 20 24 public class InvocationFactoryImpl 25 implements InvocationFactory 26 { 27 28 protected final ServerManager manager; 29 30 public InvocationFactoryImpl(ServerManager manager) 31 { 32 this.manager = manager; 33 } 34 35 public Invocation decode(HttpServletRequest req, HttpServletResponse resp) 36 { 37 Configuration config = manager.getConfiguration(); 38 int securePort = config.getSecurePort(); 39 int nonSecurePort = config.getNonSecurePort(); 40 PortalServer container = manager.getPortalServer(); 41 Invocation invocation = new InvocationImpl(container, req, resp, nonSecurePort, securePort); 42 return invocation; 43 } 44 } 45 | Popular Tags |