Class HttpWebSocketInboundEndpointHandler
java.lang.Object
org.apache.synapse.transport.netty.api.HttpWebSocketInboundEndpointHandler
API class to access Pass-Through (HTTP) and WebSocket Core Inbound Endpoint management classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancloseEndpoint(int port) Close ListeningEndpoint running on the given port.static booleanstartListener(org.apache.axis2.context.ConfigurationContext configurationContext, HttpWebSocketInboundEndpointConfiguration httpWebSocketConfig) Start Endpoint Listener.static booleanstartSSLListener(org.apache.axis2.context.ConfigurationContext configurationContext, HttpWebSocketInboundEndpointConfiguration httpWebSocketConfig) Start SSL Endpoint Listener.
-
Constructor Details
-
HttpWebSocketInboundEndpointHandler
public HttpWebSocketInboundEndpointHandler()
-
-
Method Details
-
startListener
public static boolean startListener(org.apache.axis2.context.ConfigurationContext configurationContext, HttpWebSocketInboundEndpointConfiguration httpWebSocketConfig) Start Endpoint Listener.- Parameters:
configurationContext- configuration contexthttpWebSocketConfig- configuration that represents http and websocket inbound endpoint- Returns:
- whether the Endpoint started successfully or not
-
startSSLListener
public static boolean startSSLListener(org.apache.axis2.context.ConfigurationContext configurationContext, HttpWebSocketInboundEndpointConfiguration httpWebSocketConfig) Start SSL Endpoint Listener.- Parameters:
configurationContext- configuration contexthttpWebSocketConfig- configuration that represents http and websocket inbound endpoint- Returns:
- whether the Endpoint started successfully or not
-
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
-