|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Contains information about the current request, including URLs, schemes, parameters, properties and attributes.
Method Summary | |
void |
forward(java.lang.String URL)
Redirects to the indicated URL. |
java.lang.String |
getActivationPath()
Returns the path of the resource which activated this request (this is the servlet path, plus path info, for a servlet request). |
java.lang.String |
getContextPath()
Returns the portion of the request URI that indicates the context of the request. |
java.util.Locale |
getLocale()
Returns the preferred locale to which content should be localized, as specified by the client or by the container. |
java.util.List |
getParameterNames()
Returns the names of all query parameters for this request. |
java.lang.String |
getParameterValue(java.lang.String parameterName)
Returns a parameter value. |
java.lang.String[] |
getParameterValues(java.lang.String parameterName)
Returns all parameter values for a particular parameter name. |
java.lang.String |
getRequestURI()
Returns the path portion of the request which triggered this request. |
java.lang.String |
getScheme()
Returns the name of the scheme used to make this request. |
java.lang.String |
getServerName()
Returns the host name of the server that received the request. |
int |
getServerPort()
Returns the port number on which this request was received. |
WebSession |
getSession(boolean create)
Returns the current WebSession associated with this request, possibly creating it if
it does not already exist. |
Methods inherited from interface org.apache.tapestry.web.AttributeHolder |
getAttribute, getAttributeNames, setAttribute |
Methods inherited from interface org.apache.tapestry.describe.Describable |
describeTo |
Method Detail |
public java.util.List getParameterNames()
public java.lang.String getParameterValue(java.lang.String parameterName)
parameterName
- name of parameter to obtain
getParameterValues(String)
public java.lang.String[] getParameterValues(java.lang.String parameterName)
The caller should not modify the returned value.
parameterName
- name of parameter to obtain
getParameterValue(String)
public java.lang.String getContextPath()
public WebSession getSession(boolean create)
WebSession
associated with this request, possibly creating it if
it does not already exist. If create is false and the request has no valid session, this
method returns null. To make sure the session is properly maintained, you must call this
method before the response is committed.
create
- if true, the session will be created and returned if it does not already existpublic java.lang.String getScheme()
public java.lang.String getServerName()
IRequestDecoder
public int getServerPort()
public java.lang.String getRequestURI()
Note: portlets do not know their request URI.
public void forward(java.lang.String URL)
public java.lang.String getActivationPath()
public java.util.Locale getLocale()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |