public class PassThroughInboundEndpointHandler
extends java.lang.Object
Constructor and Description |
---|
PassThroughInboundEndpointHandler() |
Modifier and Type | Method and Description |
---|---|
static boolean |
closeEndpoint(int port)
Close ListeningEndpoint running on the given port
|
static SourceConfiguration |
getPassThroughSourceConfiguration() |
static SourceConfiguration |
getPassThroughSSLSourceConfiguration() |
static boolean |
isEndpointRunning(int port)
Check Whether inbound endpoint is running for a particular port
|
static boolean |
startEndpoint(java.net.InetSocketAddress inetSocketAddress,
org.apache.http.nio.NHttpServerEventHandler nHttpServerEventHandler,
java.lang.String endpointName)
Start Endpoint Listen and events related to Endpoint handle by given NHttpServerEventHandler
|
static boolean |
startSSLEndpoint(java.net.InetSocketAddress inetSocketAddress,
org.apache.http.nio.NHttpServerEventHandler nHttpServerEventHandler,
java.lang.String endpointName,
SSLConfiguration sslConfiguration)
Start SSL Endpoint Listen and events related to Endpoint handle by given NHttpServerEventHandler
|
public static boolean startEndpoint(java.net.InetSocketAddress inetSocketAddress, org.apache.http.nio.NHttpServerEventHandler nHttpServerEventHandler, java.lang.String endpointName)
inetSocketAddress
- Socket Address of the Endpoint need to be start by underlying IOReactornHttpServerEventHandler
- Event Handler for handle events for EndpointendpointName
- Name of the Endpointpublic static boolean closeEndpoint(int port)
port
- Port of ListeningEndpoint to be closedpublic static SourceConfiguration getPassThroughSourceConfiguration() throws java.lang.Exception
java.lang.Exception
public static SourceConfiguration getPassThroughSSLSourceConfiguration() throws java.lang.Exception
java.lang.Exception
public static boolean isEndpointRunning(int port)
port
- portpublic static boolean startSSLEndpoint(java.net.InetSocketAddress inetSocketAddress, org.apache.http.nio.NHttpServerEventHandler nHttpServerEventHandler, java.lang.String endpointName, SSLConfiguration sslConfiguration)
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 ConfigurationCopyright © 2005-2022 Apache Software Foundation. All Rights Reserved.