|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.wotonomy.web.WOContext
public class WOContext
A pure java implementation of WOContext.
Constructor Summary | |
---|---|
WOContext()
Default constructor performs necessary initialization. |
|
WOContext(WORequest aRequest)
Preferred constructor performs necessary initialization. |
Method Summary | |
---|---|
void |
appendElementIDComponent(java.lang.String aString)
Appends the specified string to the end of the element id. |
void |
appendZeroElementIDComponent()
Appends a zero to the element id to represent the first new child component. |
WOApplication |
application()
Returns this context's application, or null if it doesn't exist. |
java.lang.String |
completeURLWithRequestHandlerKey(java.lang.String aRequestHandlerKey,
java.lang.String aPath,
java.lang.String aQueryString,
boolean isSecure,
int port)
Returns the complete URL for the specified request handler, path, and query string. |
WOComponent |
component()
Returns the current component. |
java.lang.String |
componentActionURL()
Returns the complete URL for the current component action. |
java.lang.String |
contextID()
Returns the context id. |
static WOContext |
contextWithRequest(WORequest aRequest)
Simply calls the preferred constructor. |
void |
deleteAllElementIDComponents()
Deletes all components of the element id. |
void |
deleteLastElementIDComponent()
Deletes the last component of the element id. |
java.lang.String |
directActionURLForActionNamed(java.lang.String anActionName,
java.util.Map aQueryDict)
Returns a URL for the named action with query parameters as specified by the dictionary. |
java.lang.String |
elementID()
Returns the element id, or null if it doesn't exist. |
boolean |
hasSession()
Returns whether a session has been created for the associated request. |
void |
incrementLastElementIDComponent()
Increments the last component of the element id. |
boolean |
isDistributionEnabled()
Returns whether distribution is enabled. |
boolean |
isInForm()
Returns whether the current context is in a form. |
WOComponent |
page()
Returns the current page. |
WORequest |
request()
Returns this context's request. |
WOResponse |
response()
Returns this context's response. |
java.lang.String |
senderID()
Returns the sender id, or null if it doesn't exist. |
WOSession |
session()
Returns this context's session, creating one if it doesn't exist. |
void |
setDistributionEnabled(boolean distributionEnabled)
Sets whether distribution is enabled. |
void |
setInForm(boolean inForm)
Sets whether the current context is in a WOForm. |
java.lang.String |
toString()
|
java.lang.String |
urlWithRequestHandlerKey(java.lang.String aRequestHandlerKey,
java.lang.String aPath,
java.lang.String aQueryString)
Returns a URL relative to the servlet for the specified request handler, action, and query string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WOContext()
public WOContext(WORequest aRequest)
Method Detail |
---|
public static WOContext contextWithRequest(WORequest aRequest)
public java.lang.String contextID()
public java.lang.String senderID()
public java.lang.String elementID()
public WOApplication application()
public boolean hasSession()
public WOSession session()
public WORequest request()
public WOResponse response()
public WOComponent page()
public WOComponent component()
public boolean isInForm()
public void setInForm(boolean inForm)
public void appendElementIDComponent(java.lang.String aString)
public void appendZeroElementIDComponent()
public void incrementLastElementIDComponent()
public void deleteLastElementIDComponent()
public void deleteAllElementIDComponents()
public java.lang.String directActionURLForActionNamed(java.lang.String anActionName, java.util.Map aQueryDict)
public java.lang.String componentActionURL()
public java.lang.String urlWithRequestHandlerKey(java.lang.String aRequestHandlerKey, java.lang.String aPath, java.lang.String aQueryString)
public java.lang.String completeURLWithRequestHandlerKey(java.lang.String aRequestHandlerKey, java.lang.String aPath, java.lang.String aQueryString, boolean isSecure, int port)
public void setDistributionEnabled(boolean distributionEnabled)
public boolean isDistributionEnabled()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |