Package com.sun.xml.ws.api.server

Examples of com.sun.xml.ws.api.server.Adapter


                fixedUrlPatternEndpoints.put(urlPattern, info);
            }
        }

        Adapter getAdapter(String path, String urlPattern) {
            Adapter result = (Adapter) fixedUrlPatternEndpoints.get(path);
            if (result == null) {               
                // This loop is unnecessary.Essentially what it is doing to always
                // return the first element from pathUrlPatternEndpoints
                // TO DO clean up after SCF required
                for (Iterator iter = pathUrlPatternEndpoints.iterator(); iter.hasNext();) {
                    Adapter candidate = (Adapter) iter.next();
                    if (path.startsWith(getValidPathForEndpoint(urlPattern))) {
                        result = candidate;
                        break;
                    }
                }
View Full Code Here


            EjbRuntimeEndpointInfo ejbEndPtInfo=null;
            if(endpt.isImplementedByEJB()) {
               
                ejbEndPtInfo = WebServiceEjbEndpointRegistry.
                        getRegistry().getEjbWebServiceEndpoint(endpt.getURI(), "POST", null);
                Adapter adapter = (Adapter) ejbEndPtInfo.prepareInvocation(true);
                endpt.setWsep(adapter.getEndpoint());
            }else {
               
                String url = endpt.getURI();
                String contextRoot = endpt.getContextRoot();
                Adapter adapter =
                        JAXWSAdapterRegistry.getInstance().getAdapter(contextRoot, url, url);
                if(adapter != null)
                    endpt.setWsep(adapter.getEndpoint());
                //for null adapter endpt is already set during comp app deployment
            }
           
            logger.log(Level.FINE,"Successfully created JBIAdapter for endpoint:"
                    + endpt.getWsep());
View Full Code Here

                }
            }
        }

        Adapter getAdapter(String path, String urlPattern) {
            Adapter result = fixedUrlPatternEndpoints.get(path);
            if (result == null) {               
                // This loop is unnecessary.Essentially what it is doing to always
                // return the first element from pathUrlPatternEndpoints
                // TO DO clean up after SCF required
                synchronized (pathUrlPatternEndpoints) {
                    for (Iterator<Adapter> iter = pathUrlPatternEndpoints.iterator(); iter.hasNext();) {
                        Adapter candidate = iter.next();
                        if (path.startsWith(getValidPathForEndpoint(urlPattern))) {
                            result = candidate;
                            break;
                        }
                    }
View Full Code Here

                }
            }
        }

        Adapter getAdapter(String path, String urlPattern) {
            Adapter result = fixedUrlPatternEndpoints.get(path);
            if (result == null) {               
                // This loop is unnecessary.Essentially what it is doing to always
                // return the first element from pathUrlPatternEndpoints
                // TO DO clean up after SCF required
                synchronized (pathUrlPatternEndpoints) {
                    for (Iterator<Adapter> iter = pathUrlPatternEndpoints.iterator(); iter.hasNext();) {
                        Adapter candidate = iter.next();
                        if (path.startsWith(getValidPathForEndpoint(urlPattern))) {
                            result = candidate;
                            break;
                        }
                    }
View Full Code Here

                }
            }
        }

        Adapter getAdapter(String path, String urlPattern) {
            Adapter result = fixedUrlPatternEndpoints.get(path);
            if (result == null) {               
                // This loop is unnecessary.Essentially what it is doing to always
                // return the first element from pathUrlPatternEndpoints
                // TO DO clean up after SCF required
                synchronized (pathUrlPatternEndpoints) {
                    for (Iterator<Adapter> iter = pathUrlPatternEndpoints.iterator(); iter.hasNext();) {
                        Adapter candidate = iter.next();
                        if (path.startsWith(getValidPathForEndpoint(urlPattern))) {
                            result = candidate;
                            break;
                        }
                    }
View Full Code Here

                fixedUrlPatternEndpoints.put(urlPattern, info);
            }
        }

        Adapter getAdapter(String path, String urlPattern) {
            Adapter result = (Adapter) fixedUrlPatternEndpoints.get(path);
            if (result == null) {               
                // This loop is unnecessary.Essentially what it is doing to always
                // return the first element from pathUrlPatternEndpoints
                // TO DO clean up after SCF required
                for (Iterator iter = pathUrlPatternEndpoints.iterator(); iter.hasNext();) {
                    Adapter candidate = (Adapter) iter.next();
                    if (path.startsWith(getValidPathForEndpoint(urlPattern))) {
                        result = candidate;
                        break;
                    }
                }
View Full Code Here

                    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);
        }
    }
View Full Code Here

        return record != null ? record.wsEndpointDescriptor : null;
    }
   
    private TCPAdapter createWSAdapter(@NotNull final String wsPath,
            @NotNull final WSEndpointDescriptor wsEndpointDescriptor) throws Exception {
        Adapter adapter;
        if (wsEndpointDescriptor.isEJB()) {
            final EjbRuntimeEndpointInfo ejbEndPtInfo = (EjbRuntimeEndpointInfo) WebServiceEjbEndpointRegistry.getRegistry().
                    getEjbWebServiceEndpoint(wsEndpointDescriptor.getURI(), "POST", null);
            adapter = (Adapter) ejbEndPtInfo.prepareInvocation(true);
        } else {
            final String uri = wsEndpointDescriptor.getURI();
            adapter = JAXWSAdapterRegistry.getInstance().getAdapter(wsEndpointDescriptor.getContextRoot(), uri, uri);
        }
       
//@TODO implement checkAdapterSupportsTCP
//        checkAdapterSupportsTCP(adapter);
        final TCPAdapter tcpAdapter = new TCP109Adapter(wsEndpointDescriptor.getWSServiceName().toString(),
                wsPath,
                adapter.getEndpoint(),
                new ServletFakeArtifactSet(wsEndpointDescriptor.getRequestURL(), wsEndpointDescriptor.getUrlPattern()),
                wsEndpointDescriptor.isEJB());
       
        return tcpAdapter;
    }
View Full Code Here

                    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);
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.xml.ws.api.server.Adapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.