Class WebSocketEndpoint
- java.lang.Object
-
- com.consol.citrus.endpoint.AbstractEndpoint
-
- com.consol.citrus.websocket.endpoint.WebSocketEndpoint
-
- Direct Known Subclasses:
WebSocketClient
public class WebSocketEndpoint extends AbstractEndpoint
Endpoint constructs web socket consumer and producer with given endpoint configuration.- Since:
- 2.3
- Author:
- Martin Maher
-
-
Constructor Summary
Constructors Constructor Description WebSocketEndpoint(WebSocketEndpointConfiguration endpointConfiguration)Default constructor using endpoint configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.consol.citrus.messaging.SelectiveConsumercreateConsumer()com.consol.citrus.messaging.ProducercreateProducer()WebSocketEndpointConfigurationgetEndpointConfiguration()voidsetWebSocketHandler(CitrusWebSocketHandler handler)Sets the web socket handler.-
Methods inherited from class com.consol.citrus.endpoint.AbstractEndpoint
getActor, getConsumerName, getName, getProducerName, setActor, setName
-
-
-
-
Constructor Detail
-
WebSocketEndpoint
public WebSocketEndpoint(WebSocketEndpointConfiguration endpointConfiguration)
Default constructor using endpoint configuration.- Parameters:
endpointConfiguration-
-
-
Method Detail
-
createConsumer
public com.consol.citrus.messaging.SelectiveConsumer createConsumer()
-
createProducer
public com.consol.citrus.messaging.Producer createProducer()
-
getEndpointConfiguration
public WebSocketEndpointConfiguration getEndpointConfiguration()
- Specified by:
getEndpointConfigurationin interfaceEndpoint- Overrides:
getEndpointConfigurationin classAbstractEndpoint
-
setWebSocketHandler
public void setWebSocketHandler(CitrusWebSocketHandler handler)
Sets the web socket handler.- Parameters:
handler-
-
-