|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.engine.RequestContext
This class encapsulates information describing the context of a request made
to an Engine. This includes the security credentials of the user
making the request. An instance of this class is passed as a parameter to the
invoke method of the Engine interface in order
to initiate a request. This class also provides access to any external
inputs and outputs of a request.
| Field Summary | |
protected ActivityContext |
mActivityContext
Activity context associated with a request. |
| Constructor Summary | |
RequestContext(SecurityContext securityContext)
Constructs an invocation context for the specified SecurityContext. |
|
| Method Summary | |
ActivityContext |
createActivityContext(EngineConfiguration engineConfiguration)
Factory method to create the ActivityContext that will be
available to any activity implementation. |
BlockWriter |
getInput(java.lang.String name)
Gets the BlockWriter for the external input with the
specified name allowing data to be written into a request. |
BlockReader |
getOutput(java.lang.String name)
Gets the BlockReader for the external output with the
specified name allowing data to be read from the request. |
SecurityContext |
getSecurityContext()
Gets the security context associated with a request. |
java.lang.String |
getURL()
Gets the URL associated with this request |
boolean |
hasInput(java.lang.String name)
Checks whether the context contains a Pipe for an external
input with the specified name. |
boolean |
hasOutput(java.lang.String name)
Checks whether the context contains a Pipe for an external
output with the specified name. |
void |
setSecurityContext(SecurityContext securityContext)
Sets the security context associated with a request. |
void |
setURL(java.lang.String url)
Sets the URL associated with this request |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ActivityContext mActivityContext
| Constructor Detail |
public RequestContext(SecurityContext securityContext)
securityContext - the SecurityContext| Method Detail |
public SecurityContext getSecurityContext()
SecurityContext instancepublic final void setSecurityContext(SecurityContext securityContext)
securityContext - a SecurityContext instancepublic BlockReader getOutput(java.lang.String name)
BlockReader for the external output with the
specified name allowing data to be read from the request.
name - The name of the external output.
BlockReader from which data can be read or
null if there is no output with the specified
name.public BlockWriter getInput(java.lang.String name)
BlockWriter for the external input with the
specified name allowing data to be written into a request.
name - The name of the external input.
BlockWriter into which data can be written
or null if there is no output with the
specified name.public final boolean hasInput(java.lang.String name)
Pipe for an external
input with the specified name.
name - The name of the external input.
true if the input exists, false
otherwise.public final boolean hasOutput(java.lang.String name)
Pipe for an external
output with the specified name.
name - The name of the external output.
true if the output exists, false
otherwise.public ActivityContext createActivityContext(EngineConfiguration engineConfiguration)
ActivityContext that will be
available to any activity implementation. This method can be overridden
by a subclass in order to create an extended
ActivityContext.
engineConfiguration - the configuration of the engine processing
the request
ActivityContextpublic java.lang.String getURL()
public void setURL(java.lang.String url)
url - the URL associated with this request
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||