public class ClientEndPointConstructor extends Object implements IEndPointConstructor<Object>
Constructor and Description |
---|
ClientEndPointConstructor() |
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.
|
public Object isHandled(ServerShell server, IWebSocketComm comm, String uri, String query, Map<String,List<String>> headerFields)
isHandled
in interface IEndPointConstructor<Object>
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.public IEndPoint createInstance(ServerShell server, ThreadGroup serverThreadGroup, long sessionID, IWebSocketComm comm, String uri, String query, Map<String,List<String>> headerFields, Object object) throws IOException
createInstance
in interface IEndPointConstructor<Object>
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 2019 Mindus SARL. All rights reserved.