public static class PlayHandler.WebSocketInvocation extends Invoker.Invocation
Constructor and Description |
---|
WebSocketInvocation(java.util.Map<java.lang.String,java.lang.String> route,
Http.Request request,
Http.Inbound inbound,
Http.Outbound outbound,
org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Override this method
|
Invoker.InvocationContext |
getInvocationContext() |
boolean |
init()
Init the call (especially useful in DEV mode to detect changes)
|
void |
onException(java.lang.Throwable e)
Things to do if the Invocation code thrown an exception
|
void |
onSuccess()
Things to do when the whole invocation has succeeded (before + execute + after)
|
public WebSocketInvocation(java.util.Map<java.lang.String,java.lang.String> route, Http.Request request, Http.Inbound inbound, Http.Outbound outbound, org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e)
public boolean init()
Invoker.Invocation
init
in class Invoker.Invocation
public Invoker.InvocationContext getInvocationContext()
getInvocationContext
in class Invoker.Invocation
public void execute() throws java.lang.Exception
Invoker.Invocation
execute
in class Invoker.Invocation
java.lang.Exception
- Thrown if Invocation encounters any problemspublic void onException(java.lang.Throwable e)
Invoker.Invocation
onException
in class Invoker.Invocation
e
- The exceptionpublic void onSuccess() throws java.lang.Exception
Invoker.Invocation
onSuccess
in class Invoker.Invocation
java.lang.Exception
- Thrown if Invoker encounters any problemsGuillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly