Package org.apache.axis2.description

Examples of org.apache.axis2.description.TransportInDescription


    public void destroy() throws AxisFault {
        stop();
        this.configctx.setTransportManager(null);
        // need to destory all the transports not only the started ones
        // most of the transports create the worker pool at the init method.
        TransportInDescription transportInDescription;
        for (Object o : configctx.getAxisConfiguration().getAxisConfiguration().getTransportsIn().values()) {
            transportInDescription = (TransportInDescription) o;
            TransportListener transportListener = transportInDescription.getReceiver();
            transportListener.destroy();
        }

        this.startedTransports.clear();
        this.configctx = null;
View Full Code Here


    String serviceName = (String) message
        .getProperty(XMPPConstants.SERVICE_NAME);
    String action = (String) message.getProperty(XMPPConstants.ACTION);
    MessageContext msgContext = null;

    TransportInDescription transportIn = configurationContext
        .getAxisConfiguration().getTransportIn("xmpp");
    TransportOutDescription transportOut = configurationContext
        .getAxisConfiguration().getTransportOut("xmpp");
    if ((transportIn != null) && (transportOut != null)) {
      msgContext = configurationContext.createMessageContext();
View Full Code Here

            trsPrefix = trsPrefix.substring(0, sepindex);
            inMessageContext.setIncomingTransportName(trsPrefix);
        } else {
            inMessageContext.setIncomingTransportName(Constants.TRANSPORT_HTTP);
        }
        TransportInDescription transportIn =
                axisConfiguration.getTransportIn(inMessageContext.getIncomingTransportName());
        //set the default output description. This will be http

        // set a dummy transport out description
        TransportOutDescription transportOut = new TransportOutDescription("local");
View Full Code Here

        if (secMan != null) {
            secMan.checkPermission(new ManagementPermission("control"));
        }
        log.info("Switching to normal mode...");
        for (Iterator iter = inTransports.values().iterator(); iter.hasNext();) {
            TransportInDescription tinDesc = (TransportInDescription) iter.next();
            TransportListener transport = tinDesc.getReceiver();
            transport.start();
        }
        log.info("Switched to normal mode");
    }
View Full Code Here

        // process transport receivers
        transports = transportPM.getEnabledTransports(true);
        if (transports != null) {
            for (String transportToInit : transports) {
                if (axisConfig.getTransportIn(transportToInit.trim()) == null) {
                    TransportInDescription transportInDesc =
                            transportPM.getTransportListener(transportToInit, true);
                    if (transportInDesc != null) {
                        transportIns.add(transportInDesc);
                        // No need to init the listener
                        // ListenerManager should take care of that
View Full Code Here

            // set a dummy transport out description
            String transportOutName = mainInMsgContext.getTransportOut().getName();
            TransportOutDescription transportOutDescription =
                    tenantConfigCtx.getAxisConfiguration().getTransportOut(transportOutName);
            tenantInMsgCtx.setTransportOut(transportOutDescription);
            TransportInDescription incomingTransport =
                    tenantConfigCtx.getAxisConfiguration().
                            getTransportIn(mainInMsgContext.getIncomingTransportName());
            tenantInMsgCtx.setTransportIn(incomingTransport);

            tenantInMsgCtx.setProperty(MessageContext.TRANSPORT_OUT,
View Full Code Here

        // set a dummy transport out description
        String transportOutName = mainInMsgContext.getTransportOut().getName();
        TransportOutDescription transportOutDescription =
                tenantConfigCtx.getAxisConfiguration().getTransportOut(transportOutName);
        tenantInMsgCtx.setTransportOut(transportOutDescription);
        TransportInDescription incomingTransport =
                tenantConfigCtx.getAxisConfiguration().
                        getTransportIn(mainInMsgContext.getIncomingTransportName());
        tenantInMsgCtx.setTransportIn(incomingTransport);

        tenantInMsgCtx.setProperty(MessageContext.TRANSPORT_OUT,
View Full Code Here

        msgContext.setProperty(MessageContext.REMOTE_ADDR, request.getRemoteAddr());

        try {
            TransportOutDescription transportOut = this.configurationContext.getAxisConfiguration()
                    .getTransportOut(Constants.TRANSPORT_HTTP);
            TransportInDescription transportIn = this.configurationContext.getAxisConfiguration()
                    .getTransportIn(Constants.TRANSPORT_HTTP);

            msgContext.setConfigurationContext(this.configurationContext);

            //TODO: Port this segment for session support.
View Full Code Here

      //we will ignore this exception since the properties file will not contain the values
      //when it is ok to retrieve them from the axis2 context
    }
       
        if (port == null) {
            TransportInDescription transportInDescription = context
                    .getAxisConfiguration().getTransportsIn()
                    .get("http");
            if (transportInDescription != null
                    && transportInDescription.getParameter(PORT) != null) {
                port = (String) transportInDescription
                        .getParameter(PORT).getValue();
            }
        }
        localAddress = "http://" + localAddress + ":" + port;
        localAddress = localAddress + "/"
View Full Code Here

              }
              axisConfiguration = configContext.getAxisConfiguration();
 
              ListenerManager listenerManager = new TuscanyListenerManager();
              listenerManager.init(configContext);
              TransportInDescription transportInDescription = new TransportInDescription(
                      Constants.TRANSPORT_HTTP);
              transportInDescription.setReceiver(this);
              listenerManager.addListener(transportInDescription, true);
              listenerManager.start();
              ListenerManager.defaultConfigurationContext = configContext;
              super.agent = new ListingAgent(configContext);
 
View Full Code Here

TOP

Related Classes of org.apache.axis2.description.TransportInDescription

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.