Package play.server
Class ServletWrapper.ServletInvocation
- java.lang.Object
-
- play.Invoker.Invocation
-
- play.Invoker.DirectInvocation
-
- play.server.ServletWrapper.ServletInvocation
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- ServletWrapper
public class ServletWrapper.ServletInvocation extends Invoker.DirectInvocation
-
-
Field Summary
-
Fields inherited from class play.Invoker.DirectInvocation
invocationType
-
-
Constructor Summary
Constructors Constructor Description ServletInvocation(Http.Request request, Http.Response response, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Override this methodInvoker.InvocationContext
getInvocationContext()
boolean
init()
Init the call (especially useful in DEV mode to detect changes)void
run()
It's time to execute.-
Methods inherited from class play.Invoker.DirectInvocation
suspend
-
Methods inherited from class play.Invoker.Invocation
_finally, after, before, onException, onSuccess, preInit
-
-
-
-
Constructor Detail
-
ServletInvocation
public ServletInvocation(Http.Request request, Http.Response response, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
-
-
Method Detail
-
init
public boolean init()
Description copied from class:Invoker.Invocation
Init the call (especially useful in DEV mode to detect changes)- Overrides:
init
in classInvoker.DirectInvocation
- Returns:
- true if successful
-
run
public void run()
Description copied from class:Invoker.Invocation
It's time to execute.- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classInvoker.Invocation
-
execute
public void execute() throws java.lang.Exception
Description copied from class:Invoker.Invocation
Override this method- Specified by:
execute
in classInvoker.Invocation
- Throws:
java.lang.Exception
- Thrown if Invocation encounters any problems
-
getInvocationContext
public Invoker.InvocationContext getInvocationContext()
- Overrides:
getInvocationContext
in classInvoker.DirectInvocation
-
-