Package org.apache.axis2.transport.http

Examples of org.apache.axis2.transport.http.ListingAgent


            String contentTypeStr = contentType != null ?
                    contentType.getValue() : inferContentType();

            boolean eprFound = false;
            if (endpointsConfiguration != null) {
                URLEndpoint epr = endpointsConfiguration.getEndpoint(request.getRequestLine().getUri());
                if (epr != null) {
                    eprFound = true;
                    String type = TransportUtils.getContentType(contentTypeStr, msgContext);
                    msgContext.setProperty(Constants.Configuration.MESSAGE_TYPE, type);

                    epr.setParameters(msgContext);

                    Builder builder = epr.getBuilder(type);
                    RESTUtil.processGetAndDeleteRequest(
                            msgContext, os, request.getRequestLine().getUri(),
                            request.getFirstHeader(HTTP.CONTENT_TYPE), builder,
                            method, isRestDispatching);
                }
View Full Code Here


        params = getListenerParameters();


        param = transportIn.getParameter(NhttpConstants.ENDPOINTS_CONFIGURATION);
        if (param != null && param.getValue() != null) {
            endpoints = new URLEndpointsConfigurationFactory().create(param.getValue().toString());
        }
    }
View Full Code Here

            this.configContext = (ConfigurationContext) serverManager.
                    getServerContextInformation().getServerContext();
            this.axisConfiguration = this.configContext.getAxisConfiguration();
            servletContext.setAttribute(this.getClass().getName(), this);
            this.servletConfig = config;
            agent = new ListingAgent(configContext);
            initParams();
        }
    }
View Full Code Here

                      Constants.TRANSPORT_HTTP);
              transportInDescription.setReceiver(this);
              listenerManager.addListener(transportInDescription, true);
              listenerManager.start();
              ListenerManager.defaultConfigurationContext = configContext;
              super.agent = new ListingAgent(configContext);
 
              initParams();
 
          } catch (Exception e) {
              throw new ServletException(e);
View Full Code Here

        // Initialize the agent field. Since it is declared private, we need to do
        // it using reflection.
        try {
            Field agentField = AxisServlet.class.getDeclaredField("agent");
            agentField.setAccessible(true);
            agentField.set(this, new ListingAgent(configContext));
        }
        catch (Throwable ex) {
          log.warn("Unable to initialize AxisServlet#agent. Published WSDL documents may be inaccessible.");
        }
       
View Full Code Here

            throw new ServletException(
                    "An instance of ConfigurationContext is not available to continue the proccess.");
        }
        configContext = (ConfigurationContext) context.getService(reference);
        axisConfiguration = configContext.getAxisConfiguration();
        agent = new ListingAgent(configContext);
        initParams();
        ServletContext servletContext = servletConfig.getServletContext();
        if (servletContext != null) {
            servletContext.setAttribute(this.getClass().getName(), this);
        }
View Full Code Here

                      Constants.TRANSPORT_HTTP);
              transportInDescription.setReceiver(this);
              listenerManager.addListener(transportInDescription, true);
              listenerManager.start();
              ListenerManager.defaultConfigurationContext = configContext;
              super.agent = new ListingAgent(configContext);
 
              initParams();
 
          } catch (Exception e) {
              throw new ServletException(e);
View Full Code Here

                      Constants.TRANSPORT_HTTP);
              transportInDescription.setReceiver(this);
              listenerManager.addListener(transportInDescription, true);
              listenerManager.start();
              ListenerManager.defaultConfigurationContext = configContext;
              super.agent = new ListingAgent(configContext);
 
              initParams();
 
          } catch (Exception e) {
              throw new ServletException(e);
View Full Code Here

        ServletContext servletContext = config.getServletContext();
        this.configContext = ServerManager.getInstance().getConfigurationContext();
        this.axisConfiguration = this.configContext.getAxisConfiguration();
        servletContext.setAttribute(this.getClass().getName(), this);
        this.servletConfig = config;
        agent = new ListingAgent(configContext);
        initParams();
    }
View Full Code Here

            // set ClientOptions to the current outgoing message
            outMsgCtx.setOptions(options);

      // do Target Resolution
      TargetResolver tr = cfgCtx.getAxisConfiguration().getTargetResolverChain();
            if (tr != null) {
                tr.resolveTarget(outMsgCtx);
            }

            // if the transport to use for sending is not specified, try to find it from the URL
      TransportOutDescription transportOut = options.getTransportOut();
      if (transportOut == null) {
View Full Code Here

TOP

Related Classes of org.apache.axis2.transport.http.ListingAgent

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.