Search in sources :

Example 6 with WebComponentInvocation

use of com.sun.enterprise.web.WebComponentInvocation in project Payara by payara.

the class WebContainerListener method preInvoke.

private void preInvoke(WebModule ctx) {
    WebModule wm = (WebModule) ctx;
    ComponentInvocation inv = new WebComponentInvocation(wm);
    invocationMgr.preInvoke(inv);
}
Also used : WebComponentInvocation(com.sun.enterprise.web.WebComponentInvocation) WebComponentInvocation(com.sun.enterprise.web.WebComponentInvocation) ComponentInvocation(org.glassfish.api.invocation.ComponentInvocation) WebModule(com.sun.enterprise.web.WebModule)

Example 7 with WebComponentInvocation

use of com.sun.enterprise.web.WebComponentInvocation in project Payara by payara.

the class WSTCPAdapterRegistryImpl method createWSAdapter.

private TCPAdapter createWSAdapter(@NotNull final String wsPath, @NotNull final WSEndpointDescriptor wsEndpointDescriptor) throws Exception {
    if (wsEndpointDescriptor.isEJB()) {
        final EjbRuntimeEndpointInfo ejbEndPtInfo = (EjbRuntimeEndpointInfo) V3Module.getWSEjbEndpointRegistry().getEjbWebServiceEndpoint(wsEndpointDescriptor.getURI(), "POST", null);
        final AdapterInvocationInfo adapterInfo = (AdapterInvocationInfo) ejbEndPtInfo.prepareInvocation(true);
        return new Ejb109Adapter(wsEndpointDescriptor.getWSServiceName().toString(), wsPath, adapterInfo.getAdapter().getEndpoint(), new ServletFakeArtifactSet(wsEndpointDescriptor.getRequestURL(), wsEndpointDescriptor.getUrlPattern()), ejbEndPtInfo, adapterInfo);
    } else {
        final String uri = wsEndpointDescriptor.getURI();
        final Adapter adapter = JAXWSAdapterRegistry.getInstance().getAdapter(wsEndpointDescriptor.getContextRoot(), uri, uri);
        final WebModule webModule = AppServRegistry.getWebModule(wsEndpointDescriptor.getWSServiceEndpoint());
        final ComponentInvocation invocation = new WebComponentInvocation(webModule);
        return new Web109Adapter(wsEndpointDescriptor.getWSServiceName().toString(), wsPath, adapter.getEndpoint(), new ServletFakeArtifactSet(wsEndpointDescriptor.getRequestURL(), wsEndpointDescriptor.getUrlPattern()), invocation);
    }
}
Also used : WebComponentInvocation(com.sun.enterprise.web.WebComponentInvocation) EjbRuntimeEndpointInfo(org.glassfish.webservices.EjbRuntimeEndpointInfo) WebComponentInvocation(com.sun.enterprise.web.WebComponentInvocation) ComponentInvocation(org.glassfish.api.invocation.ComponentInvocation) AdapterInvocationInfo(org.glassfish.webservices.AdapterInvocationInfo) TCPAdapter(com.sun.xml.ws.transport.tcp.server.TCPAdapter) Adapter(com.sun.xml.ws.api.server.Adapter) WebModule(com.sun.enterprise.web.WebModule)

Aggregations

WebComponentInvocation (com.sun.enterprise.web.WebComponentInvocation)7 WebModule (com.sun.enterprise.web.WebModule)5 ComponentInvocation (org.glassfish.api.invocation.ComponentInvocation)5 InjectionException (com.sun.enterprise.container.common.spi.util.InjectionException)2 AppServSecurityContext (com.sun.enterprise.security.integration.AppServSecurityContext)2 String (java.lang.String)2 ServletRequestWrapper (javax.servlet.ServletRequestWrapper)2 InvocationManager (org.glassfish.api.invocation.InvocationManager)2 ServerContext (org.glassfish.internal.api.ServerContext)2 RealmInitializer (com.sun.enterprise.security.integration.RealmInitializer)1 Implementor (com.sun.xml.rpc.server.http.Implementor)1 Adapter (com.sun.xml.ws.api.server.Adapter)1 TCPAdapter (com.sun.xml.ws.transport.tcp.server.TCPAdapter)1 Method (java.lang.reflect.Method)1 UnmarshalException (java.rmi.UnmarshalException)1 Servlet (javax.servlet.Servlet)1 ServletRequest (javax.servlet.ServletRequest)1 ServletResponse (javax.servlet.ServletResponse)1 HttpServletRequest (javax.servlet.http.HttpServletRequest)1 HttpServletResponse (javax.servlet.http.HttpServletResponse)1