STOMP server handler implements the behavior of the STOMP server when a specific event occurs. For instance, if let customize the behavior when specific STOMP frames arrives or when a connection is closed. This class has been designed to let you customize the server behavior. The default implementation is compliant with the STOMP specification. In this default implementation, not acknowledge frames are dropped.
package |
Default |
---|
__construct()
abortHandler( $arg0) : $this
callable
$this
the current {@link StompServerHandler}
ackHandler( $arg0) : $this
callable
$this
the current {@link StompServerHandler}
authProvider( $arg0) : $this
AuthProvider
$this
the current {@link StompServerHandler}
beginHandler( $arg0) : $this
callable
$this
the current {@link StompServerHandler}
bridge( $arg0) : $this
array | BridgeOptions
$this
the current {@link StompServerHandler}.
closeHandler( $arg0) : $this
callable
$this
the current {@link StompServerHandler}
commitHandler( $arg0) : $this
callable
$this
the current {@link StompServerHandler}
connectHandler( $arg0) : $this
callable
$this
the current {@link StompServerHandler}
create( $arg0) : \io\vertx\jphp\ext\stomp\StompServerHandler
Vertx
\io\vertx\jphp\ext\stomp\StompServerHandler
the created {@link StompServerHandler}
destinationFactory( $arg0) : $this
DestinationFactory
$this
the current {@link StompServerHandler}.
disconnectHandler( $arg0) : $this
callable
$this
the current {@link StompServerHandler}
getDestination( $arg0) : \io\vertx\jphp\ext\stomp\Destination
string
\io\vertx\jphp\ext\stomp\Destination
the {@link Destination}, {@code null} if not existing.
getDestinations() : array
array
the list of destination managed by the STOMP server. Don't forget the STOMP interprets destination as opaque Strings.
getOrCreateDestination( $arg0) : \io\vertx\jphp\ext\stomp\Destination
see | \io\vertx\jphp\ext\stomp\DestinationFactory. |
---|
string
\io\vertx\jphp\ext\stomp\Destination
the {@link Destination} instance, may have been created.
getUserBySession( $arg0) : \io\vertx\jphp\ext\auth\User
handle( $arg0) : void
ServerFrame
nackHandler( $arg0) : $this
callable
$this
the current {@link StompServerHandler}
onAck( $arg0, $arg1, $arg2) : $this
Implementations must call the handler configured using @see \io\vertx\jphp\ext\stomp\StompServerHandler::onAckHandler.
StompServerConnection
Frame | array
array
$this
the current {@link StompServerHandler}
onAckHandler( $arg0) : $this
callable
$this
the current {@link StompServerHandler}
onAuthenticationRequest( $arg0, $arg1, $arg2, $arg3) : $this
StompServerConnection
string
string
callable
$this
the current {@link StompServerHandler}
onClose( $arg0) : void
see |
\io\vertx\jphp\ext\stomp\StompServerHandler::closeHandler
if any. |
---|
StompServerConnection
onNack( $arg0, $arg1, $arg2) : $this
see | \io\vertx\jphp\ext\stomp\StompServerHandler::onNackHandler. |
---|
StompServerConnection
Frame | array
array
$this
the current {@link StompServerHandler}
onNackHandler( $arg0) : $this
callable
$this
the current {@link StompServerHandler}
pingHandler( $arg0) : $this
The handler will only be called if the connection supports heartbeats.
callable
$this
the current {@link StompServerHandler}
receivedFrameHandler( $arg0) : $this
This handler can be used for logging, debugging or ad-hoc behavior.
callable
$this
the current {@link StompServerHandler}
sendHandler( $arg0) : $this
callable
$this
the current {@link StompServerHandler}
stompHandler( $arg0) : $this
callable
$this
the current {@link StompServerHandler}
subscribeHandler( $arg0) : $this
callable
$this
the current {@link StompServerHandler}
unsubscribeHandler( $arg0) : $this
callable
$this
the current {@link StompServerHandler}