|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oberon.client.ApplicationRequest
public final class ApplicationRequest
Contains all parameters and attributes passed to the application's handler methods
Field Summary | |
---|---|
static java.lang.String |
target
|
Constructor Summary | |
---|---|
ApplicationRequest(ApplicationRequest request)
Creates new request cloning another request |
|
ApplicationRequest(ApplicationRequest request,
javax.servlet.http.HttpSession session)
Creates new request cloning another request for a given session |
|
ApplicationRequest(java.lang.String url,
javax.servlet.http.HttpSession session)
Creates new request |
|
ApplicationRequest(java.lang.String url,
java.lang.String targetName,
javax.servlet.http.HttpSession session)
Creates new request |
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String key)
Returns the value of a request parameter as a String, or null if the parameter does not exist. |
java.util.Enumeration<java.lang.String> |
getAttributeNames()
Returns an Enumeration containing the names of the attributes available to this request. |
java.lang.String |
getForwardTarget()
Return the name of target window on the basic of input request parameters |
java.util.Locale |
getLocale()
Returns the preferred Locale that the client will accept content in |
java.lang.String |
getParameter(java.lang.String key)
Returns the value of a request parameter as a String, or null if the parameter does not exist. |
java.util.Map<java.lang.String,java.lang.String> |
getParameterMap()
Returns a java.util.Map of the parameters of this request. |
java.util.Enumeration<java.lang.String> |
getParameterNames()
Returns an Enumeration of String objects containing the names of the parameters contained in this request. |
java.lang.String[] |
getParameterValues(java.lang.String key)
Returns an array of String objects containing all of the values the given request parameter has, or null if the parameter does not exist. |
java.lang.Object |
getReferer()
Returns the element in the user interface which raises the request |
java.lang.String |
getRequestPage()
Returns the request target page |
java.lang.String |
getRequestURL()
Returns the url the client used to make the request. |
javax.servlet.http.HttpSession |
getSession()
Gets the current valid session associated with this request |
java.lang.String |
getTarget()
Returns the target panel for visualization |
void |
removeAttribute(java.lang.String key)
Removes an attribute from this request. |
void |
removeParameter(java.lang.String key)
Removes a parameter from this request. |
void |
setAttribute(java.lang.String key,
java.lang.Object object)
Stores an attribute in this request. |
void |
setLocale(java.util.Locale locale)
Sets the preferred Locale that the client will accept content in |
void |
setParameter(java.lang.String key,
java.lang.String value)
Sets a parameter for this request. |
void |
setReferer(java.lang.Object referer)
Sets the referer element |
void |
setRequestPage(java.lang.String url)
Updates the request target page |
void |
setTarget(java.lang.String target)
Sets the target panel for visualization |
java.lang.String |
toString()
Show the Application Request |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String target
Constructor Detail |
---|
public ApplicationRequest(ApplicationRequest request)
public ApplicationRequest(ApplicationRequest request, javax.servlet.http.HttpSession session)
public ApplicationRequest(java.lang.String url, javax.servlet.http.HttpSession session)
url
- url address, including GET parameters ( .../page.jsp?param1=value1¶m2=value2&... )session
- the current sessionpublic ApplicationRequest(java.lang.String url, java.lang.String targetName, javax.servlet.http.HttpSession session)
url
- url address, including GET parameters ( .../page.jsp?param1=value1¶m2=value2&... )targetName
- the target panel for visualizationsession
- the current sessionMethod Detail |
---|
public void setAttribute(java.lang.String key, java.lang.Object object)
key
- a String specifying the name of the attributeobject
- the Object to be storedpublic void setLocale(java.util.Locale locale)
public void setParameter(java.lang.String key, java.lang.String value)
key
- a String specifying the name of the parametervalue
- the parameter valuepublic void setRequestPage(java.lang.String url)
url
- url address; GET parameters are ignoredpublic void setTarget(java.lang.String target)
target
- the target panel: "" or null = same panel; "_blank" = new panel; "<name>" = popup window namepublic void setReferer(java.lang.Object referer)
referer
- any element in the user interface which raises the requestpublic java.lang.Object getAttribute(java.lang.String key)
key
- the parameter namepublic java.util.Enumeration<java.lang.String> getAttributeNames()
public java.util.Locale getLocale()
public java.lang.String getParameter(java.lang.String key)
key
- the parameter's namepublic java.util.Map<java.lang.String,java.lang.String> getParameterMap()
public java.util.Enumeration<java.lang.String> getParameterNames()
public java.lang.String[] getParameterValues(java.lang.String key)
key
- the parameter's namepublic java.lang.String getRequestPage()
public java.lang.String getRequestURL()
public java.lang.String getTarget()
public java.lang.Object getReferer()
public javax.servlet.http.HttpSession getSession()
public void removeAttribute(java.lang.String key)
key
- the attribute's namepublic void removeParameter(java.lang.String key)
key
- the parameter's namepublic java.lang.String getForwardTarget()
public java.lang.String toString()
toString
in class java.lang.Object
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |