public class PlayHandler.NettyInvocation extends Invoker.Invocation
| Constructor and Description |
|---|
NettyInvocation(Http.Request request,
Http.Response response,
org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest,
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 |
onSuccess()
Things to do when the whole invocation has succeeded (before + execute + after)
|
void |
run()
It's time to execute.
|
_finally, after, before, onException, preInit, suspendpublic NettyInvocation(Http.Request request, Http.Response response, org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.handler.codec.http.HttpRequest nettyRequest, org.jboss.netty.channel.MessageEvent e)
public boolean init()
Invoker.Invocationinit in class Invoker.Invocationpublic Invoker.InvocationContext getInvocationContext()
getInvocationContext in class Invoker.Invocationpublic void run()
Invoker.Invocationrun in interface java.lang.Runnablerun in class Invoker.Invocationpublic void execute()
throws java.lang.Exception
Invoker.Invocationexecute in class Invoker.Invocationjava.lang.Exception - Thrown if Invocation encounters any problemspublic void onSuccess()
throws java.lang.Exception
Invoker.InvocationonSuccess in class Invoker.Invocationjava.lang.Exception - Thrown if Invoker encounters any problemsGuillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly