Class PassThroughInboundEndpointHandler
java.lang.Object
org.apache.synapse.transport.passthru.api.PassThroughInboundEndpointHandler
API class for access PassThrough Core Inbound Endpoint management classes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancloseEndpoint(int port) Close ListeningEndpoint running on the given portstatic SourceConfigurationstatic SourceConfigurationstatic booleanisEndpointRunning(int port) Check Whether inbound endpoint is running for a particular portstatic booleanstartEndpoint(InetSocketAddress inetSocketAddress, org.apache.http.nio.NHttpServerEventHandler nHttpServerEventHandler, String endpointName) Start Endpoint Listen and events related to Endpoint handle by given NHttpServerEventHandlerstatic booleanstartSSLEndpoint(InetSocketAddress inetSocketAddress, org.apache.http.nio.NHttpServerEventHandler nHttpServerEventHandler, String endpointName, SSLConfiguration sslConfiguration) Start SSL Endpoint Listen and events related to Endpoint handle by given NHttpServerEventHandler
-
Constructor Details
-
PassThroughInboundEndpointHandler
public PassThroughInboundEndpointHandler()
-
-
Method Details
-
startEndpoint
public static boolean startEndpoint(InetSocketAddress inetSocketAddress, org.apache.http.nio.NHttpServerEventHandler nHttpServerEventHandler, String endpointName) Start Endpoint Listen and events related to Endpoint handle by given NHttpServerEventHandler- Parameters:
inetSocketAddress- Socket Address of the Endpoint need to be start by underlying IOReactornHttpServerEventHandler- Event Handler for handle events for EndpointendpointName- Name of the Endpoint- Returns:
- Is Endpoint started successfully
-
closeEndpoint
public static boolean closeEndpoint(int port) Close ListeningEndpoint running on the given port- Parameters:
port- Port of ListeningEndpoint to be closed- Returns:
- IS successfully closed
-
getPassThroughSourceConfiguration
- Returns:
- Pass Through SourceConfiguration registered by shared IO Reactor of PTT Listener
- Throws:
Exception
-
getPassThroughSSLSourceConfiguration
- Returns:
- Pass Through SSL SourceConfiguration registered by shared IO Reactor of PTT Listener
- Throws:
Exception
-
isEndpointRunning
public static boolean isEndpointRunning(int port) Check Whether inbound endpoint is running for a particular port- Parameters:
port- port- Returns:
- whether inbound endpoint is running
-
startSSLEndpoint
public static boolean startSSLEndpoint(InetSocketAddress inetSocketAddress, org.apache.http.nio.NHttpServerEventHandler nHttpServerEventHandler, String endpointName, SSLConfiguration sslConfiguration) Start SSL Endpoint Listen and events related to Endpoint handle by given NHttpServerEventHandler- Parameters:
inetSocketAddress- Socket Address of the Endpoint need to be start by underlying IOReactornHttpServerEventHandler- Event Handler for handle events for EndpointendpointName- Name of the EndpointsslConfiguration- SSL Configuration- Returns:
- Started or Not
-