play.server
Class PlayHandler.WebSocketInvocation

java.lang.Object
  extended by play.Invoker.Invocation
      extended by play.server.PlayHandler.WebSocketInvocation
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
PlayHandler

public static class PlayHandler.WebSocketInvocation
extends Invoker.Invocation


Constructor Summary
PlayHandler.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
 void execute()
          Override this method
 Invoker.InvocationContext getInvocationContext()
           
 boolean init()
          Init the call (especially usefull 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)
 
Methods inherited from class play.Invoker.Invocation
_finally, after, before, run, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayHandler.WebSocketInvocation

public PlayHandler.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.Invocation
Init the call (especially usefull in DEV mode to detect changes)

Overrides:
init in class Invoker.Invocation

getInvocationContext

public Invoker.InvocationContext getInvocationContext()
Specified by:
getInvocationContext in class Invoker.Invocation

execute

public void execute()
             throws java.lang.Exception
Description copied from class: Invoker.Invocation
Override this method

Specified by:
execute in class Invoker.Invocation
Throws:
java.lang.Exception

onException

public void onException(java.lang.Throwable e)
Description copied from class: Invoker.Invocation
Things to do if the Invocation code thrown an exception

Overrides:
onException in class Invoker.Invocation

onSuccess

public void onSuccess()
               throws java.lang.Exception
Description copied from class: Invoker.Invocation
Things to do when the whole invocation has succeeded (before + execute + after)

Overrides:
onSuccess in class Invoker.Invocation
Throws:
java.lang.Exception


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly