public interface IEndPointConstructor<OBJECT>
Modifier and Type | Method and Description |
---|---|
IEndPoint |
createInstance(ServerShell server,
ThreadGroup serverThreadGroup,
long sessionID,
IWebSocketComm comm,
String uri,
String query,
Map<String,List<String>> headerFields,
OBJECT object)
Creates a new end point.
|
OBJECT |
isHandled(ServerShell server,
IWebSocketComm comm,
String uri,
String query,
Map<String,List<String>> headerFields)
Checks if this end point constructor handles this URI.
|
OBJECT isHandled(ServerShell server, IWebSocketComm comm, String uri, String query, Map<String,List<String>> headerFields) throws IOException
server
- Server shell.comm
- The Web Socket communication properties.uri
- The URI.query
- The Query (after the URI).headerFields
- HTTP header fields, null for a pre-check of the handled state,
to avoid processing a request further to e.g. negotiate WebSocket protocol.createInstance()
method when
the headerFields
are non-null and the construction should take place.IOException
- For communications failure.IEndPoint createInstance(ServerShell server, ThreadGroup serverThreadGroup, long sessionID, IWebSocketComm comm, String uri, String query, Map<String,List<String>> headerFields, OBJECT object) throws IOException
server
- Server shell.serverThreadGroup
- The server thread group.sessionID
- The session ID.comm
- The Web Socket communication properties.uri
- The URI.query
- The Query (after the URI).headerFields
- HTTP header fields.object
- The Object returned in isHandled()
.IOException
- For communications failure.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.