Interface IWebsocketEndpointConfig
public interface IWebsocketEndpointConfig
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
The class that implements this websocket endpoint.Gets the predicate which evaluates if a origin is allowed for the websocket.int
Gets the maximum message length in bytes.Get the maximum message property.Get the servlet context path property.Gets the list of sub protocols that this web socket will accept.Get the URL sufix where the websocket will be available.
-
Method Details
-
getUrlSufix
String getUrlSufix()Get the URL sufix where the websocket will be available.- Returns:
- A String with the URL sufix.
-
getEndpointImpl
Class<?> getEndpointImpl()The class that implements this websocket endpoint. A new instance of this class is going to be created for each new websocket connection.- Returns:
- A
Class
instance with a websocket implementation.
-
getSubProtocolAccepted
Gets the list of sub protocols that this web socket will accept. Empty if it accepts all sub protocols.- Returns:
- A list of
String
with the subprotocols.
-
getIsOriginAllowedPredicate
Gets the predicate which evaluates if a origin is allowed for the websocket.- Returns:
- a predicate that accepts a String and checks if the origin received as parameter is accepted.
-
getMaxMessageBytesLength
int getMaxMessageBytesLength()Gets the maximum message length in bytes.- Returns:
- the maximum message length in bytes.
-
getServletContextPathPropertyName
String getServletContextPathPropertyName()Get the servlet context path property.- Returns:
- the string with the property name.
-
getMaxMessagePropertyName
String getMaxMessagePropertyName()Get the maximum message property.- Returns:
- the string with the property name.
-