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
public class HttpWebsocketEndpointManager extends AbstractInboundEndpointManager
-
-
Field Summary
-
Fields inherited from class org.wso2.carbon.inbound.endpoint.common.AbstractInboundEndpointManager
dataStore
-
-
Constructor Summary
Constructors Constructor Description HttpWebsocketEndpointManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.synapse.transport.netty.api.config.SSLConfiguration
buildSSLConfiguration(org.apache.synapse.inbound.InboundProcessorParams params)
Builds theSSLConfiguration
to wrap all the security related parameters defined in the inbound endpoint.void
closeEndpoint(int port)
Stop Inbound Endpointstatic 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 theHttpWebSocketInboundEndpointHandler
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 portboolean
startListener(int port, String name, org.apache.synapse.inbound.InboundProcessorParams inboundParameters)
Start Listener on a particular portboolean
startSSLEndpoint(int port, String name, org.apache.synapse.inbound.InboundProcessorParams inboundParameters)
boolean
startSSLListener(int port, String name, org.apache.synapse.inbound.InboundProcessorParams inboundParameters)
-
Methods inherited from class org.wso2.carbon.inbound.endpoint.common.AbstractInboundEndpointManager
getEndpointName
-
-
-
-
Method Detail
-
getInstance
public static HttpWebsocketEndpointManager getInstance()
-
startEndpoint
public boolean startEndpoint(int port, String name, org.apache.synapse.inbound.InboundProcessorParams inboundParameters)
Description copied from interface:InboundEndpointManager
Start 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:InboundEndpointManager
Start 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:InboundEndpointManager
Stop 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 theHttpWebSocketInboundEndpointHandler
to 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 theSSLConfiguration
to wrap all the security related parameters defined in the inbound endpoint.- Parameters:
params
- parameters defined in the inbound endpoint definition- Returns:
SSLConfiguration
-
-