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

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


        }
    }

    public void destroy() {
        synchronized(this) {
            ServletAdapterList list =
                    (ServletAdapterList) getServletContext().getAttribute("ADAPTER_LIST");
            if(list != null) {
                for(ServletAdapter x : list) {
                    x.getEndpoint().dispose();
                }
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) getServletContext().getAttribute("ADAPTER_LIST");
            if(list == null) {
                list = new ServletAdapterList();
                getServletContext().setAttribute("ADAPTER_LIST", list);
            }
            adapter =
                list.createAdapter(endpoint.getName(), urlPattern, wsep);
        }

        registerEndpointUrlPattern(adapter);

        /*
 
View Full Code Here

                            urlPattern = urlPattern.substring(urlPattern.indexOf("/", 1));
                        }

                        // All set; Create the adapter
                        if(adapterList == null) {
                            adapterList = new ServletAdapterList();
                        }
                        adapter = adapterList.createAdapter(endpoint.getName(), urlPattern, wsep);
                        handlersConfigured=true;
                    } catch (Throwable t) {
                        logger.severe("Cannot initialize endpoint " + endpoint.getName() + " : error is : " + t.getMessage());
View Full Code Here

            }           
            webServiceEjbEndpoints.put(uri, endpoint);
            regenerateEjbContextRoots();
            ctxtRoot = getContextRootForUri(uri);
            if(adapterListMap.get(ctxtRoot) == null) {
                ServletAdapterList list = new ServletAdapterList();
                adapterListMap.put(ctxtRoot, list);
            }
        }
       
        // notify monitoring layers that a new endpoint is being created.
View Full Code Here

       
        synchronized(webServiceEjbEndpoints) {
            String uriRaw = endpointAddressUri;
            String uri = (uriRaw.charAt(0)=='/') ? uriRaw.substring(1) : uriRaw;
            String ctxtRoot = getContextRootForUri(uri);
            ServletAdapterList list = (ServletAdapterList)adapterListMap.get(ctxtRoot);
            if(list != null) {
                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) {
                    logger.log(Level.SEVERE,"Cannot initialize endpoint " + endpoint.getName() + " : error is : " , t);
View Full Code Here

                                    uri));
                }
                webServiceEjbEndpoints.put(uri, endpoint);
                regenerateEjbContextRoots();
                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

        // 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();
                }
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.