Package com.sun.xml.ws.transport.http.servlet

Examples of com.sun.xml.ws.transport.http.servlet.ServletAdapterList


                }
                webServiceEjbEndpoints.put(uri, endpoint);
                regenerateEjbContextRoots();
                ctxtRoot = getContextRootForUri(uri);
                if(adapterListMap.get(uri) == null) {
                    ServletAdapterList list = new ServletAdapterList();
                    adapterListMap.put(uri, list);
                }
            } else throw new WebServiceException(rb.getString("ejb.endpointuri.error"));
        }
View Full Code Here


        synchronized(webServiceEjbEndpoints) {
            String uriRaw = endpointAddressUri;
            String uri = (uriRaw.charAt(0)=='/') ? uriRaw.substring(1) : uriRaw;
           
            ServletAdapterList list = (ServletAdapterList)adapterListMap.get(uri);
            if (list != null) {
              //bug12540102: remove only the data related to the endpoint that is unregistered
              //since we are using the uri in the adapterListMap
                for (ServletAdapter x :list)  {
                    x.getEndpoint().dispose();
View Full Code Here

                    String uri = endpoint.getEndpointAddressUri();
                    String urlPattern = uri.startsWith("/") ? uri : "/" + uri;

                    // All set; Create the adapter
                    if(adapterList == null) {
                        adapterList = new ServletAdapterList();
                    }
                    adapter = adapterList.createAdapter(endpoint.getName(), urlPattern, wsep);
                    handlersConfigured=true;
                } catch (Throwable t) {
                        LogHelper.log(logger, Level.SEVERE,
View Full Code Here

        // The whole web app should have a single adapter list
        // This is to enable JAXWS publish WSDLs with proper addresses
        ServletAdapter adapter;
        synchronized (this) {
            ServletAdapterList list =
                    (ServletAdapterList) servletContext.getAttribute("ADAPTER_LIST");
            if (list == null) {
                list = new ServletAdapterList();
                servletContext.setAttribute("ADAPTER_LIST", list);
            }
            adapter =
                    list.createAdapter(endpoint.getName(), urlPattern, wsep);
            container.addEndpoint(adapter);
        }

        registerEndpointUrlPattern(urlPattern, adapter);
View Full Code Here

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        ServletContext servletContext = sce.getServletContext();

        synchronized (this) {
            ServletAdapterList list =
                    (ServletAdapterList) servletContext.getAttribute("ADAPTER_LIST");
            if (list != null) {
                for (ServletAdapter x : list) {
                    x.getEndpoint().dispose();
                    for (Handler handler : x.getEndpoint().getBinding().getHandlerChain()) {
View Full Code Here

TOP

Related Classes of com.sun.xml.ws.transport.http.servlet.ServletAdapterList

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.