Package play.server

Class PlayHandler.NettyInvocation

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    PlayHandler

    public class PlayHandler.NettyInvocation
    extends Invocation
    • Constructor Detail

      • NettyInvocation

        public 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)
    • Method Detail

      • init

        public boolean init()
        Description copied from class: Invocation
        Init the call (especially useful in DEV mode to detect changes)
        Overrides:
        init in class Invocation
        Returns:
        true if successful
      • run

        public void run()
      • execute

        public void execute()
        Description copied from class: Invocation
        Override this method
        Specified by:
        execute in class Invocation
      • onSuccess

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