Class HttpWebsocketEndpointManager
java.lang.Object
org.wso2.carbon.inbound.endpoint.common.AbstractInboundEndpointManager
org.wso2.carbon.inbound.endpoint.protocol.httpwebsocket.management.HttpWebsocketEndpointManager
- All Implemented Interfaces:
InboundEndpointManager
-
Field Summary
Fields inherited from class org.wso2.carbon.inbound.endpoint.common.AbstractInboundEndpointManager
dataStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.synapse.transport.netty.api.config.SSLConfigurationbuildSSLConfiguration(org.apache.synapse.inbound.InboundProcessorParams params) Builds theSSLConfigurationto wrap all the security related parameters defined in the inbound endpoint.voidcloseEndpoint(int port) Stop Inbound Endpointstatic org.apache.synapse.transport.netty.api.config.HttpWebSocketInboundEndpointConfigurationgetHttpWebSocketInboundEndpointConfiguration(int port, String name, org.apache.synapse.inbound.InboundProcessorParams params, boolean isSSL) Builds theHttpWebSocketInboundEndpointConfiguration, which wraps all the necessary information to be used in theHttpWebSocketInboundEndpointHandlerto start the transport listener.static HttpWebsocketEndpointManagerstatic booleanisPortOccupied(int port) Checks if the given port is available to use.booleanstartEndpoint(int port, String name, org.apache.synapse.inbound.InboundProcessorParams inboundParameters) Start Inbound endpoint on a particular portbooleanstartListener(int port, String name, org.apache.synapse.inbound.InboundProcessorParams inboundParameters) Start Listener on a particular portbooleanstartSSLEndpoint(int port, String name, org.apache.synapse.inbound.InboundProcessorParams inboundParameters) booleanstartSSLListener(int port, String name, org.apache.synapse.inbound.InboundProcessorParams inboundParameters) Methods inherited from class org.wso2.carbon.inbound.endpoint.common.AbstractInboundEndpointManager
getEndpointName
-
Constructor Details
-
HttpWebsocketEndpointManager
public HttpWebsocketEndpointManager()
-
-
Method Details
-
getInstance
-
startEndpoint
public boolean startEndpoint(int port, String name, org.apache.synapse.inbound.InboundProcessorParams inboundParameters) Description copied from interface:InboundEndpointManagerStart Inbound endpoint on a particular port- Parameters:
port- portname- endpoint nameinboundParameters- Inbound endpoint parameters
-
startSSLEndpoint
public boolean startSSLEndpoint(int port, String name, org.apache.synapse.inbound.InboundProcessorParams inboundParameters) -
startListener
public boolean startListener(int port, String name, org.apache.synapse.inbound.InboundProcessorParams inboundParameters) Description copied from interface:InboundEndpointManagerStart Listener on a particular port- Parameters:
port- portname- endpoint nameinboundParameters- Inbound endpoint parameters
-
startSSLListener
public boolean startSSLListener(int port, String name, org.apache.synapse.inbound.InboundProcessorParams inboundParameters) -
closeEndpoint
public void closeEndpoint(int port) Description copied from interface:InboundEndpointManagerStop Inbound Endpoint- Parameters:
port- port of the endpoint
-
isPortOccupied
public static boolean isPortOccupied(int port) Checks if the given port is available to use.- Parameters:
port- port- Returns:
- true if the port is already used by another service
-
getHttpWebSocketInboundEndpointConfiguration
public static org.apache.synapse.transport.netty.api.config.HttpWebSocketInboundEndpointConfiguration getHttpWebSocketInboundEndpointConfiguration(int port, String name, org.apache.synapse.inbound.InboundProcessorParams params, boolean isSSL) Builds theHttpWebSocketInboundEndpointConfiguration, which wraps all the necessary information to be used in theHttpWebSocketInboundEndpointHandlerto start the transport listener.- Parameters:
port- portname- name of the inbound endpointparams- parameters defined in the inbound endpoint definitionisSSL- whether this is secured- Returns:
HttpWebSocketInboundEndpointConfiguration
-
buildSSLConfiguration
public static org.apache.synapse.transport.netty.api.config.SSLConfiguration buildSSLConfiguration(org.apache.synapse.inbound.InboundProcessorParams params) Builds theSSLConfigurationto wrap all the security related parameters defined in the inbound endpoint.- Parameters:
params- parameters defined in the inbound endpoint definition- Returns:
SSLConfiguration
-