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 voidexecute()Override this methodInvoker.InvocationContextgetInvocationContext()booleaninit()Init the call (especially useful in DEV mode to detect changes)voidrun()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.InvocationInit the call (especially useful in DEV mode to detect changes)- Overrides:
initin classInvoker.DirectInvocation- Returns:
- true if successful
-
run
public void run()
Description copied from class:Invoker.InvocationIt's time to execute.- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin 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
-
getInvocationContext
public Invoker.InvocationContext getInvocationContext()
- Overrides:
getInvocationContextin classInvoker.DirectInvocation
-
-