| org.apache.tapestry.services.Request
All known Subclasses: org.apache.tapestry.internal.services.RequestImpl,
getContextPath | String getContextPath()(Code) | | Returns the context path. This always starts with a "/" character and does not end with one,
with the exception of servlets in the root context, which return the empty string.
|
getDateHeader | long getDateHeader(String name)(Code) | | Returns the value of the specified request header as a long value that
represents a Date object. Use this method with headers that contain dates,
such as If-Modified-Since .
The date is returned as the number of milliseconds since January 1, 1970 GMT. The header name
is case insensitive.
If the request did not have a header of the specified name, this method returns -1. If the
header can't be converted to a date, the method throws an
IllegalArgumentException .
Parameters: name - a String specifying the name of the header a long value representing the date specified in the header expressedas the number of milliseconds since January 1, 1970 GMT, or -1 if the named headerwas not included with the reqest exception: IllegalArgumentException - If the header value can't be converted to a date |
getHeader | String getHeader(String name)(Code) | | Returns the named header as a string, or null if not found.
|
getHeaderNames | List<String> getHeaderNames()(Code) | | Returns the names of all headers in the request.
|
getLocale | Locale getLocale()(Code) | | Returns the locale of the client as determined from the request headers.
|
getParameter | String getParameter(String name)(Code) | | Returns the query parameter value for the given name. Returns null if no such parameter is in
the request. For a multi-valued parameter, returns just the first value.
|
getParameterNames | List<String> getParameterNames()(Code) | | Returns a list of query parameter names, in alphabetical order.
|
getParameters | String[] getParameters(String name)(Code) | | Returns the parameter values for the given name. Returns null if no such parameter is in the
request.
TODO: Shouldn't this move to
FormParameterLookup ?
|
getPath | String getPath()(Code) | | Returns the path portion of the request, which starts with a "/" and contains everything up
to the start of the query parameters. It doesn't include the context path.
|
getSession | Session getSession(boolean create)(Code) | | Gets the
Session . If create is false and the session has not be created previously,
returns null.
Parameters: create - true to force the creation of the session the session (or null if create is false the session has not been previously created) |
setEncoding | void setEncoding(String requestEncoding)(Code) | | Sets the encoding of the request, which must occur before any parameters for the request are
read.
Parameters: requestEncoding - charset used when parsing parameters |
|
|