|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.wadi.web.impl.WebInvocation
public class WebInvocation
Constructor Summary | |
---|---|
WebInvocation()
|
|
WebInvocation(long exclusiveSessionLockWaitTime)
|
Method Summary | |
---|---|
javax.servlet.FilterChain |
getChain()
|
long |
getExclusiveSessionLockWaitTime()
|
javax.servlet.http.HttpServletRequest |
getHreq()
|
javax.servlet.http.HttpServletResponse |
getHres()
|
Session |
getSession()
|
java.lang.String |
getSessionKey()
Return the key carried by the Invocation associating it with server-side state - a Session |
void |
init(javax.servlet.http.HttpServletRequest hreq,
javax.servlet.http.HttpServletResponse hres,
javax.servlet.FilterChain chain)
Initialise this WebInvocation for action after being taken from a Pool |
void |
invoke()
Actually make the encapsulated Invocation. |
void |
invoke(InvocationContext wrapper)
|
boolean |
isAcquireLockOnInvocationStart()
|
boolean |
isDoNotExecuteOnEndProcessing()
|
boolean |
isErrorIfSessionNotAcquired()
|
boolean |
isProxiedInvocation()
|
boolean |
isReleaseLockOnInvocationEnd()
|
boolean |
isRelocatable()
Does this Invocation know how to 'relocate' itself to another EndPoint ? |
boolean |
isWithExclusiveLock()
|
InvocationContext |
newContext(Session context)
|
void |
relocate(EndPoint endPoint)
Ask this Invocation to relocate itself to a given EndPoint |
void |
sendError(int code,
java.lang.String message)
Send an error back to the client from which the Invocation originated |
void |
setDoNotExecuteOnEndProcessing(boolean doNotExecuteOnEndProcessing)
|
void |
setErrorIfSessionNotAcquired(boolean errorIfSessionNotAcquired)
|
void |
setInvocationProxy(InvocationProxy proxy)
|
void |
setSession(Session session)
Attach the relevant Session to this Invocation for its lifetime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebInvocation()
public WebInvocation(long exclusiveSessionLockWaitTime)
Method Detail |
---|
public void init(javax.servlet.http.HttpServletRequest hreq, javax.servlet.http.HttpServletResponse hres, javax.servlet.FilterChain chain)
hreq
- hres
- chain
- public void setInvocationProxy(InvocationProxy proxy)
setInvocationProxy
in interface Invocation
public java.lang.String getSessionKey()
Invocation
getSessionKey
in interface Invocation
public void sendError(int code, java.lang.String message) throws InvocationException
Invocation
sendError
in interface Invocation
code
- an error codemessage
- an error message
InvocationException
public boolean isRelocatable()
Invocation
isRelocatable
in interface Invocation
public void relocate(EndPoint endPoint) throws InvocationException
Invocation
relocate
in interface Invocation
endPoint
- the EndPoint
InvocationException
public boolean isProxiedInvocation()
isProxiedInvocation
in interface Invocation
public void invoke(InvocationContext wrapper) throws InvocationException
invoke
in interface Invocation
InvocationException
public void invoke() throws InvocationException
Invocation
invoke
in interface Invocation
InvocationException
public javax.servlet.FilterChain getChain()
public javax.servlet.http.HttpServletRequest getHreq()
public javax.servlet.http.HttpServletResponse getHres()
public Session getSession()
getSession
in interface Invocation
public void setSession(Session session)
Invocation
setSession
in interface Invocation
session
- The Sessionpublic boolean isErrorIfSessionNotAcquired()
isErrorIfSessionNotAcquired
in interface Invocation
public void setErrorIfSessionNotAcquired(boolean errorIfSessionNotAcquired)
setErrorIfSessionNotAcquired
in interface Invocation
public long getExclusiveSessionLockWaitTime()
getExclusiveSessionLockWaitTime
in interface Invocation
public boolean isDoNotExecuteOnEndProcessing()
public void setDoNotExecuteOnEndProcessing(boolean doNotExecuteOnEndProcessing)
public InvocationContext newContext(Session context)
newContext
in interface Invocation
public boolean isWithExclusiveLock()
isWithExclusiveLock
in interface Invocation
public boolean isAcquireLockOnInvocationStart()
isAcquireLockOnInvocationStart
in interface Invocation
public boolean isReleaseLockOnInvocationEnd()
isReleaseLockOnInvocationEnd
in interface Invocation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |