Package com.iizix.server.run.remote
Class RemoteBuilderEndPointConstructor
java.lang.Object
com.iizix.server.run.remote.RemoteBuilderEndPointConstructor
- All Implemented Interfaces:
- IEndPointConstructor<Object>
public class RemoteBuilderEndPointConstructor extends Object implements IEndPointConstructor<Object>
The Remote Customized iiziRun Builder constructor of end points.
- Author:
- Christopher Mindus
- Constructor SummaryConstructorsConstructorDescription- RemoteBuilderEndPointConstructor- (boolean isVerbose) Constructor at server start builds and checks the initial environment.
- Method SummaryModifier and TypeMethodDescription- createInstance- (ServerShell server, long sessionID, IWebSocketComm comm, String uri, String query, Map<String, - List<String>> headerFields, Object object) Creates a new end point.- String[]Gets the list of potential handled context paths for the websocket.- isHandled- (ServerShell server, IWebSocketComm comm, String uri, String query, Map<String, - List<String>> headerFields) Checks if this end point constructor handles this URI.
- Constructor Details- RemoteBuilderEndPointConstructorpublic RemoteBuilderEndPointConstructor- (boolean isVerbose) Constructor at server start builds and checks the initial environment.- Parameters:
- isVerbose- The verbose flag.
 
 
- Method Details- getHandledContextPathsGets the list of potential handled context paths for the websocket.- Specified by:
- getHandledContextPathsin interface- IEndPointConstructor<Object>
- Returns:
- The array of possibly handled context paths.
 
- isHandledpublic Object isHandled- (ServerShell server, IWebSocketComm comm, String uri, String query, Map<String, - List<String>> headerFields) Checks if this end point constructor handles this URI.- Specified by:
- isHandledin interface- IEndPointConstructor<Object>
- Parameters:
- 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.
- Returns:
- An Object if handled, null when not handled. This Object is passed in to the createInstance()method when theheaderFieldsare non-null and the construction should take place.
 
- createInstancepublic IEndPoint createInstance- (ServerShell server, long sessionID, IWebSocketComm comm, String uri, String query, Map<String, - List<String>> headerFields, Object object) throws IOExceptionCreates a new end point.- Specified by:
- createInstancein interface- IEndPointConstructor<Object>
- Parameters:
- server- Server shell.
- 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().
- Returns:
- The new end point.
- Throws:
- IOException- For communications failure.