public interface EventBusBridgeHook
Modifier and Type | Method and Description |
---|---|
boolean |
handleAuthorise(JsonObject message,
java.lang.String sessionID,
Handler<AsyncResult<java.lang.Boolean>> handler)
Called before authorisation - you can override authorisation here if you don't want the default
|
void |
handlePostRegister(SockJSSocket sock,
java.lang.String address)
Called after client registers a handler
|
boolean |
handlePreRegister(SockJSSocket sock,
java.lang.String address)
Called before client registers a handler
|
boolean |
handleSendOrPub(SockJSSocket sock,
boolean send,
JsonObject msg,
java.lang.String address)
Client is sending or publishing on the socket
|
void |
handleSocketClosed(SockJSSocket sock)
The socket has been closed
|
boolean |
handleSocketCreated(SockJSSocket sock)
Called when a new socket is created
You can override this method to do things like check the origin header of a socket before
accepting it
|
boolean |
handleUnregister(SockJSSocket sock,
java.lang.String address)
Client is unregistering a handler
|
boolean handleSocketCreated(SockJSSocket sock)
sock
- The socketvoid handleSocketClosed(SockJSSocket sock)
sock
- The socketboolean handleSendOrPub(SockJSSocket sock, boolean send, JsonObject msg, java.lang.String address)
sock
- The socksend
- if true it's a send else it's a publishmsg
- The messageaddress
- The address the message is being sent/published toboolean handlePreRegister(SockJSSocket sock, java.lang.String address)
sock
- The socketaddress
- The addressvoid handlePostRegister(SockJSSocket sock, java.lang.String address)
sock
- The socketaddress
- The addressboolean handleUnregister(SockJSSocket sock, java.lang.String address)
sock
- The socketaddress
- The addressboolean handleAuthorise(JsonObject message, java.lang.String sessionID, Handler<AsyncResult<java.lang.Boolean>> handler)
message
- The auth messagesessionID
- The session IDhandler
- Handler - call this when authorisation is complete