Package play.server
Class PlayHandler.WebSocketInvocation
- java.lang.Object
-
- play.Invoker.Invocation
-
- play.server.PlayHandler.WebSocketInvocation
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- PlayHandler
public static class PlayHandler.WebSocketInvocation extends Invoker.Invocation
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()Override this methodInvoker.InvocationContextgetInvocationContext()booleaninit()Init the call (especially useful in DEV mode to detect changes)voidonException(java.lang.Throwable e)Things to do if the Invocation code thrown an exceptionvoidonSuccess()Things to do when the whole invocation has succeeded (before + execute + after)
-
-
-
Constructor Detail
-
WebSocketInvocation
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)
-
-
Method Detail
-
init
public boolean init()
Description copied from class:Invoker.InvocationInit the call (especially useful in DEV mode to detect changes)- Overrides:
initin classInvoker.Invocation- Returns:
- true if successful
-
getInvocationContext
public Invoker.InvocationContext getInvocationContext()
- Specified by:
getInvocationContextin classInvoker.Invocation
-
execute
public void execute() throws java.lang.ExceptionDescription copied from class:Invoker.InvocationOverride this method- Specified by:
executein classInvoker.Invocation- Throws:
java.lang.Exception- Thrown if Invocation encounters any problems
-
onException
public void onException(java.lang.Throwable e)
Description copied from class:Invoker.InvocationThings to do if the Invocation code thrown an exception- Overrides:
onExceptionin classInvoker.Invocation- Parameters:
e- The exception
-
onSuccess
public void onSuccess() throws java.lang.ExceptionDescription copied from class:Invoker.InvocationThings to do when the whole invocation has succeeded (before + execute + after)- Overrides:
onSuccessin classInvoker.Invocation- Throws:
java.lang.Exception- Thrown if Invoker encounters any problems
-
-