Package org.apache.axis2.description

Examples of org.apache.axis2.description.TransportInDescription


        axisService.isEnableAllTransports();
        ConfigurationContext configctx = this.configContext;
        if (configctx != null) {
            ListenerManager lm = configctx.getListenerManager();
            if (!lm.isListenerRunning(transport)) {
                TransportInDescription trsin =
                        configctx.getAxisConfiguration().getTransportIn(transport);
                if (trsin != null) {
                    lm.addListener(trsin, false);
                } else {
                    throw new AxisFault(Messages.getMessage("transportnotfound",
View Full Code Here


    void receive(MessageContext messageCtx) throws AxisFault {
        final AxisMessage messageData;
        try {
            Assert.assertTrue(messageCtx.isServerSide());
           
            TransportInDescription transportIn = messageCtx.getTransportIn();
            Assert.assertNotNull("transportIn not set on message context", transportIn);
            Assert.assertEquals(context.getTransportName(), transportIn.getName());
           
            Assert.assertEquals(context.getTransportName(), messageCtx.getIncomingTransportName());
           
            for (MessageContextValidator validator : validators) {
                validator.validate(messageCtx, false);
View Full Code Here

    public HttpTransportDescriptionFactory(int port) {
        this.port = port;
    }

    public TransportInDescription createTransportInDescription() throws Exception {
        TransportInDescription desc = new TransportInDescription("http");
        desc.setReceiver(new LifecycleFixTransportListenerProxy(new SimpleHTTPServer(), port));
        desc.addParameter(new Parameter(SimpleHTTPServer.PARAM_PORT, String.valueOf(port)));
        return desc;
    }
View Full Code Here

            setupConnectionFactoryConfig(trpDesc, "topic", TOPIC_CONNECTION_FACTORY, "topic");
        }
    }
   
    public TransportInDescription createTransportInDescription() throws Exception {
        TransportInDescription trpInDesc = new TransportInDescription(JMSListener.TRANSPORT_NAME);
        setupTransport(trpInDesc);
        trpInDesc.setReceiver(new JMSListener());
        return trpInDesc;
    }
View Full Code Here

        method.addParameter(param);

        // Set up Axis configuration

        AxisConfiguration config = new AxisConfiguration();
        TransportInDescription tIn = new TransportInDescription(new QName(Constants.TRANSPORT_LOCAL));
        config.addTransportIn(tIn);

        TransportOutDescription tOut = new TransportOutDescription(new QName(Constants.TRANSPORT_LOCAL));
        config.addTransportOut(tOut);
View Full Code Here

    }

    public MessageContext getBasicMessageContext() throws AxisFault {
        MessageContext messageContext = new MessageContext();
        messageContext.setConfigurationContext(configContext);
        messageContext.setTransportIn(new TransportInDescription(
                new QName("axis")));
        messageContext.setTransportOut(new TransportOutDescription(new QName(
                "axis")));

        return messageContext;
View Full Code Here

        TransportOutDescription transport = new TransportOutDescription(
                new QName("null"));
        transport.setSender(new CommonsHTTPTransportSender());

        TransportInDescription transportIn = new TransportInDescription(
                new QName("null"));
        axisOp = new InOutAxisOperation(operationName);

        service = new AxisService(serviceName.getLocalPart());
        axisOp.setMessageReceiver(new MessageReceiver() {
View Full Code Here

        executedHandlers = new ArrayList();
        AxisConfiguration engineRegistry = new AxisConfiguration();
        configConetxt = new ConfigurationContext(engineRegistry);
        transportOut = new TransportOutDescription(new QName("null"));
        transportOut.setSender(new CommonsHTTPTransportSender());
        transportIn = new TransportInDescription(new QName("null"));

    }
View Full Code Here

          .getAxisConfiguration();
      if (axisConfiguration != null) {
        ArrayList transports = new ArrayList();
        for (Iterator iterator = axisConfiguration.getTransportsIn()
            .values().iterator(); iterator.hasNext();) {
          TransportInDescription transportInDescription = (TransportInDescription) iterator
              .next();
          transports.add(transportInDescription.getName());
        }
        transportInValues = transports.iterator();
      }
    } else {
      transportInValues = axisService.getExposedTransports().iterator();
View Full Code Here

    if (axisConfiguration != null) {
      ArrayList transports = new ArrayList();
      for (Iterator iterator = axisConfiguration.getTransportsIn()
          .values().iterator(); iterator.hasNext();) {
        TransportInDescription transportInDescription = (TransportInDescription) iterator
            .next();
        transports.add(transportInDescription.getName());
      }
      transportInValues = transports.iterator();
    }

    HashMap bindingCache = new HashMap();
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.