Package io.socket.engineio.server
Interface EngineIoServer.HandshakeInterceptor
-
- Enclosing class:
- EngineIoServer
public static interface EngineIoServer.HandshakeInterceptor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanintercept(java.util.Map<java.lang.String,java.lang.String> query, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)Intercept and either allow or block the connection.
-
-
-
Method Detail
-
intercept
boolean intercept(java.util.Map<java.lang.String,java.lang.String> query, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)Intercept and either allow or block the connection. If blocked, a bad request error is returned to the client.- Parameters:
query- Query parameters of the connection.headers- Headers in the connection request.- Returns:
- Return true to allow the connection or false to block.
-
-