Search in sources :

Example 1 with DefaultHttpWsConnectorFactory

use of org.wso2.transport.http.netty.contractimpl.DefaultHttpWsConnectorFactory in project wso2-synapse by wso2.

the class Axis2HttpTransportListener method init.

@Override
public void init(ConfigurationContext configurationContext, TransportInDescription transportInDescription) throws AxisFault {
    Scheme scheme = initScheme();
    this.transportInDescription = transportInDescription;
    // build source configuration
    sourceConfiguration = new SourceConfiguration(configurationContext, transportInDescription, scheme, messagingHandlers);
    sourceConfiguration.build();
    sourceConfiguration.getHttpGetRequestProcessor().init(sourceConfiguration.getConfigurationContext());
    ListenerConfiguration listenerConfiguration = initListenerConfiguration();
    httpWsConnectorFactory = new DefaultHttpWsConnectorFactory();
    this.serverConnector = httpWsConnectorFactory.createServerConnector(new ServerBootstrapConfiguration(new HashMap<>()), listenerConfiguration);
}
Also used : Scheme(org.apache.synapse.transport.http.conn.Scheme) DefaultHttpWsConnectorFactory(org.wso2.transport.http.netty.contractimpl.DefaultHttpWsConnectorFactory) ListenerConfiguration(org.wso2.transport.http.netty.contract.config.ListenerConfiguration) SourceConfiguration(org.apache.synapse.transport.netty.config.SourceConfiguration) ServerBootstrapConfiguration(org.wso2.transport.http.netty.contract.config.ServerBootstrapConfiguration)

Example 2 with DefaultHttpWsConnectorFactory

use of org.wso2.transport.http.netty.contractimpl.DefaultHttpWsConnectorFactory in project wso2-synapse by wso2.

the class Axis2HttpTransportSender method init.

@Override
public void init(ConfigurationContext configurationContext, TransportOutDescription transportOutDescription) throws AxisFault {
    httpWsConnectorFactory = new DefaultHttpWsConnectorFactory();
    connectionManager = HttpUtils.getConnectionManager();
    bootstrapConfiguration = new BootstrapConfiguration(new HashMap<>());
    targetConfiguration = new TargetConfiguration(configurationContext, transportOutDescription);
    targetConfiguration.build();
}
Also used : TargetConfiguration(org.apache.synapse.transport.netty.config.TargetConfiguration) DefaultHttpWsConnectorFactory(org.wso2.transport.http.netty.contractimpl.DefaultHttpWsConnectorFactory) HashMap(java.util.HashMap) BootstrapConfiguration(org.wso2.transport.http.netty.contractimpl.sender.channel.BootstrapConfiguration)

Aggregations

DefaultHttpWsConnectorFactory (org.wso2.transport.http.netty.contractimpl.DefaultHttpWsConnectorFactory)2 HashMap (java.util.HashMap)1 Scheme (org.apache.synapse.transport.http.conn.Scheme)1 SourceConfiguration (org.apache.synapse.transport.netty.config.SourceConfiguration)1 TargetConfiguration (org.apache.synapse.transport.netty.config.TargetConfiguration)1 ListenerConfiguration (org.wso2.transport.http.netty.contract.config.ListenerConfiguration)1 ServerBootstrapConfiguration (org.wso2.transport.http.netty.contract.config.ServerBootstrapConfiguration)1 BootstrapConfiguration (org.wso2.transport.http.netty.contractimpl.sender.channel.BootstrapConfiguration)1