Package org.apache.axis2.description

Examples of org.apache.axis2.description.TransportOutDescription


        desc.addParameter(new Parameter(HttpCoreNIOListener.PARAM_PORT, String.valueOf(port)));
        return desc;
    }

    public TransportOutDescription createTransportOutDescription() throws Exception {
        TransportOutDescription desc = new TransportOutDescription("http");
        desc.setSender(new HttpCoreNIOSender());
        return desc;
    }
View Full Code Here


                               inMessageContext.getProperty(MessageContext.REMOTE_ADDR));
        }

        TransportInDescription tIn = confContext.getAxisConfiguration().getTransportIn(
                Constants.TRANSPORT_LOCAL);
        TransportOutDescription tOut = confContext.getAxisConfiguration().getTransportOut(
                Constants.TRANSPORT_LOCAL);

        // CAUTION : When using Local Transport of Axis2,  class LocalTransportReceiver changed the name of LocalTransportSender's class in configContext.
        // We escaped this problem by the following code.
        LocalResponseTransportOutDescription localTransportResOut = new LocalResponseTransportOutDescription(
View Full Code Here

            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) {
        EndpointReference toEPR =
                    (options.getTo() != null) ? options.getTo() : outMsgCtx.getTo();
        transportOut =
                    ClientUtils.inferOutTransport(cfgCtx.getAxisConfiguration(), toEPR, outMsgCtx);
View Full Code Here

        // We previously saved metaTransportOut; restore it
        if (metaTransportOut != null) {
            // TODO : Check if this should really be a QName?
            QName qout = metaTransportOut.getQName();
            TransportOutDescription tmpOut = null;
            try {
                tmpOut = axisConfig.getTransportOut(qout.getLocalPart());
            }
            catch (Exception exout) {
                // if a fault is thrown, log it and continue
View Full Code Here

        }

        // We previously saved metaTransportOut; restore it
        if (metaTransportOut != null) {
            QName qout = metaTransportOut.getQName();
            TransportOutDescription tmpOut = null;
            try {
                tmpOut = axisCfg.getTransportOut(qout.getLocalPart());
            }
            catch (Exception exout) {
                // if a fault is thrown, log it and continue
View Full Code Here

        HashMap<String, TransportOutDescription> outTransports =
                configctx.getAxisConfiguration().getTransportsOut();
        if (outTransports.size() > 0) {
            Iterator<TransportOutDescription> trsItr = outTransports.values().iterator();
            while (trsItr.hasNext()) {
                TransportOutDescription outDescription = trsItr.next();
                TransportSender sender = outDescription.getSender();
                if (sender != null) {
                    sender.stop();
                }
            }
        }
View Full Code Here

    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();
      msgContext.setTransportIn(transportIn);
      msgContext.setTransportOut(transportOut);
View Full Code Here

        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");
        transportOut.setSender(new DummyTransportSender());


        inMessageContext.setTransportIn(transportIn);
        inMessageContext.setTransportOut(transportOut);
        inMessageContext.setServerSide(true);
View Full Code Here

        TransportPersistenceManager transportPM = new TransportPersistenceManager(axisConfig);
        String[] transports = transportPM.getEnabledTransports(false);
        if (transports != null) {
            for (String transportToInit : transports) {
                if (axisConfig.getTransportOut(transportToInit.trim()) == null) {
                    TransportOutDescription transportOutDesc =
                            transportPM.getTransportSender(transportToInit, true);
                    if (transportOutDesc != null) {
                        transportOuts.add(transportOutDesc);
                        // No need to init the sender
                        // ConfigurationContextFactory should take care of that
View Full Code Here

        SuperTenantCarbonContext.getCurrentContext(tenantInMsgCtx).setTenantDomain(tenant, true);
        try {
            // 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());
View Full Code Here

TOP

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

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.