Search in sources :

Example 1 with UtilsTransportServer

use of org.apache.axis2.transport.UtilsTransportServer in project wso2-axis2-transports by wso2.

the class AxisTestEndpointContext method setUp.

@Setup
@SuppressWarnings("unused")
private void setUp(TransportDescriptionFactory tdf, AxisTestEndpointContextConfigurator[] configurators) throws Exception {
    server = new UtilsTransportServer();
    TransportOutDescription trpOutDesc = tdf.createTransportOutDescription();
    trpInDesc = tdf.createTransportInDescription();
    server.addTransport(trpInDesc, trpOutDesc);
    for (AxisTestEndpointContextConfigurator configurator : configurators) {
        configurator.setupTransport(trpInDesc, trpOutDesc);
    }
    ConfigurationContext cfgCtx = server.getConfigurationContext();
    cfgCtx.setContextRoot("/");
    cfgCtx.setServicePath("services");
    AxisConfiguration axisConfiguration = server.getAxisConfiguration();
    server.start();
}
Also used : ConfigurationContext(org.apache.axis2.context.ConfigurationContext) AxisConfiguration(org.apache.axis2.engine.AxisConfiguration) UtilsTransportServer(org.apache.axis2.transport.UtilsTransportServer) TransportOutDescription(org.apache.axis2.description.TransportOutDescription) Setup(org.apache.axis2.transport.testkit.tests.Setup)

Aggregations

ConfigurationContext (org.apache.axis2.context.ConfigurationContext)1 TransportOutDescription (org.apache.axis2.description.TransportOutDescription)1 AxisConfiguration (org.apache.axis2.engine.AxisConfiguration)1 UtilsTransportServer (org.apache.axis2.transport.UtilsTransportServer)1 Setup (org.apache.axis2.transport.testkit.tests.Setup)1