public class HttpWebsocketEndpointManager extends AbstractInboundEndpointManager
dataStore| Constructor and Description |
|---|
HttpWebsocketEndpointManager() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.synapse.transport.netty.api.config.SSLConfiguration |
buildSSLConfiguration(org.apache.synapse.inbound.InboundProcessorParams params)
Builds the
SSLConfiguration to wrap all the security related parameters defined in the inbound endpoint. |
void |
closeEndpoint(int port)
Stop Inbound Endpoint
|
static org.apache.synapse.transport.netty.api.config.HttpWebSocketInboundEndpointConfiguration |
getHttpWebSocketInboundEndpointConfiguration(int port,
String name,
org.apache.synapse.inbound.InboundProcessorParams params,
boolean isSSL)
Builds the
HttpWebSocketInboundEndpointConfiguration, which wraps all the necessary information
to be used in the HttpWebSocketInboundEndpointHandler to start the transport listener. |
static HttpWebsocketEndpointManager |
getInstance() |
static boolean |
isPortOccupied(int port)
Checks if the given port is available to use.
|
boolean |
startEndpoint(int port,
String name,
org.apache.synapse.inbound.InboundProcessorParams inboundParameters)
Start Inbound endpoint on a particular port
|
boolean |
startListener(int port,
String name,
org.apache.synapse.inbound.InboundProcessorParams inboundParameters)
Start Listener on a particular port
|
boolean |
startSSLEndpoint(int port,
String name,
org.apache.synapse.inbound.InboundProcessorParams inboundParameters) |
boolean |
startSSLListener(int port,
String name,
org.apache.synapse.inbound.InboundProcessorParams inboundParameters) |
getEndpointNamepublic static HttpWebsocketEndpointManager getInstance()
public boolean startEndpoint(int port,
String name,
org.apache.synapse.inbound.InboundProcessorParams inboundParameters)
InboundEndpointManagerport - portname - endpoint nameinboundParameters - Inbound endpoint parameterspublic boolean startSSLEndpoint(int port,
String name,
org.apache.synapse.inbound.InboundProcessorParams inboundParameters)
public boolean startListener(int port,
String name,
org.apache.synapse.inbound.InboundProcessorParams inboundParameters)
InboundEndpointManagerport - portname - endpoint nameinboundParameters - Inbound endpoint parameterspublic boolean startSSLListener(int port,
String name,
org.apache.synapse.inbound.InboundProcessorParams inboundParameters)
public void closeEndpoint(int port)
InboundEndpointManagerport - port of the endpointpublic static boolean isPortOccupied(int port)
port - portpublic static org.apache.synapse.transport.netty.api.config.HttpWebSocketInboundEndpointConfiguration getHttpWebSocketInboundEndpointConfiguration(int port,
String name,
org.apache.synapse.inbound.InboundProcessorParams params,
boolean isSSL)
HttpWebSocketInboundEndpointConfiguration, which wraps all the necessary information
to be used in the HttpWebSocketInboundEndpointHandler to start the transport listener.port - portname - name of the inbound endpointparams - parameters defined in the inbound endpoint definitionisSSL - whether this is securedHttpWebSocketInboundEndpointConfigurationpublic static org.apache.synapse.transport.netty.api.config.SSLConfiguration buildSSLConfiguration(org.apache.synapse.inbound.InboundProcessorParams params)
SSLConfiguration to wrap all the security related parameters defined in the inbound endpoint.params - parameters defined in the inbound endpoint definitionSSLConfigurationCopyright © 2022 WSO2. All rights reserved.