Package javax.xml.rpc.server

Examples of javax.xml.rpc.server.ServletEndpointContext


        managedService.destroy();
        next.destroy();
    }

    public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
        ServletEndpointContext context = getContext();
        try {
            endpointContext.set(new InvocationContext((HttpServletRequest) req));
            next.service(req, res);
        } finally {
            endpointContext.set(context);
View Full Code Here


    private static final ThreadLocal endpointContext = new ThreadLocal();


    private static ServletEndpointContext getContext() {
        ServletEndpointContext context = (ServletEndpointContext) endpointContext.get();
        return context != null ? context : DEFAULT_CONTEXT;
    }
View Full Code Here

        managedService.destroy();
        next.destroy();
    }

    public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
        ServletEndpointContext context = getContext();
        try {
            endpointContext.set(new InvocationContext((HttpServletRequest) req));
            next.service(req, res);
        } finally {
            endpointContext.set(context);
View Full Code Here

    private static final ThreadLocal endpointContext = new ThreadLocal();


    private static ServletEndpointContext getContext() {
        ServletEndpointContext context = (ServletEndpointContext) endpointContext.get();
        return context != null ? context : DEFAULT_CONTEXT;
    }
View Full Code Here

         Object targetBean = getTargetBean(ep, epInv);

         InvocationContext invContext = epInv.getInvocationContext();
         if (targetBean instanceof ServiceLifecycle)
         {
            ServletEndpointContext sepContext = invContext.getAttachment(ServletEndpointContext.class);
            if (sepContext != null)
               ((ServiceLifecycle)targetBean).init(sepContext);
         }

         try
View Full Code Here

    public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
        HttpListener service = getService();
        if (service == null) throw new ServletException("WebServiceContainer has not been set");

        ServletEndpointContext context = getContext();
        endpointContext.set(new InvocationContext((HttpServletRequest) req));
        try {
            res.setContentType("text/xml");
            HttpRequest httpRequest = new ServletRequestAdapter((HttpServletRequest) req, (HttpServletResponse) res, config.getServletContext());
            HttpResponse httpResponse = new ServletResponseAdapter((HttpServletResponse) res);
View Full Code Here

        }
        return service;
    }

    private static ServletEndpointContext getContext() {
        ServletEndpointContext context = endpointContext.get();
        return context != null ? context : DEFAULT_CONTEXT;
    }
View Full Code Here

      {
         invContext.addAttachment(javax.xml.rpc.handler.MessageContext.class, msgContext);
      }
      if (ServiceLifecycle.class.isAssignableFrom(ep.getTargetBeanClass()) && invContext instanceof ServletRequestContext)
      {
         ServletEndpointContext servletEndpointContext = new ServletEndpointContextImpl((ServletRequestContext)invContext);
         invContext.addAttachment(ServletEndpointContext.class, servletEndpointContext);
      }

      invContext.addAttachment(EndpointInvocation.class, epInv);
View Full Code Here

        managedService.destroy();
        next.destroy();
    }

    public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
        ServletEndpointContext context = getContext();
        try {
            endpointContext.set(new InvocationContext((HttpServletRequest) req));
            next.service(req, res);
        } finally {
            endpointContext.set(context);
View Full Code Here

    private static final ThreadLocal endpointContext = new ThreadLocal();


    private static ServletEndpointContext getContext() {
        ServletEndpointContext context = (ServletEndpointContext) endpointContext.get();
        return context != null ? context : DEFAULT_CONTEXT;
    }
View Full Code Here

TOP

Related Classes of javax.xml.rpc.server.ServletEndpointContext

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.