the raw parameters, use params
the accept header
Returns true if the request accepts JavaScript
Returns true if the request accepts JSON
Is the Accepts Header * / *
Returns true if the request accepts XML
Returns true if the X-Requested-With header is set to XMLHttpRequest.
Returns true if the X-Requested-With header is set to XMLHttpRequest.
Most ajax frameworks, including jQuery and Prototype, set this header when doing any ajax request.
The POST or PUT body.
The POST or PUT body. This will be empty if the content type is application/x-www-form-urlencoded or a multipart mime. It will also be empty if rawInputStream is accessed
Make the servlet session go away
Forcibly tries to parse the request body as JSON.
Forcibly tries to parse the request body as JSON. Does not perform any content type checks, unlike the json method.
Forcibly tries to parse the request body as XML.
Forcibly tries to parse the request body as XML. Does not perform any content type checks, unlike the xml method.
The host and path of the request up to and including the context path.
The host and path of the request up to and including the context path. This does not include the template path or query string.
The hostname to which the request was sent.
The hostname to which the request was sent. This is taken from the "Host" HTTP header, or if that does not exist, the DNS name or IP address of the server.
Parse the if-modified-since header and return the milliseconds since epoch of the parsed date.
Is the Req coming from an iPad
Is the Req coming from an iPad
Is the Req coming from an iPhone
Is the Req coming from an iPhone
The JValue representation of this Req's body, if the body is JSON-parsable AND the content-type of the request is JSON.
The JValue representation of this Req's body, if the body is JSON-parsable AND the content-type of the request is JSON. Returns a Failure if the request is not considered a JSON request (see json_?), or if there was an error parsing the JSON.
If you want to forcibly evaluate the request body as JSON, ignoring
content type, see forcedBodyAsJson
.
Returns true if the content-type is text/json or application/json
The SiteMap Loc associated with this Req
Get the name of the params
The raw input stream of a POST or PUT that is not application/x-www-form-urlencoded or a multipart mime and if this method is called before the body method.
The raw input stream of a POST or PUT that is not application/x-www-form-urlencoded or a multipart mime and if this method is called before the body method. Remember to close the stream when done.
The IP address of the request
Get the session ID if there is one without creating on
A snapshot of the request that can be passed off the current thread
A snapshot of the request that can be passed off the current thread
a copy of the Req
A request that is neither Ajax or Comet
Should the request be treated as stateless (no session created for it)?
Test the current SiteMap Loc for access control to insure that this Req is allowed to access the page
The uploaded files
The user agent of the browser that sent the request
The user agent of the browser that sent the request
What is the content type in order of preference by the requester calculated via the Accept header
Build a new Req, the same except with a different path.
Build a new Req, the same except with a different path. Useful for creating Reqs with sub-paths.
The Elem representation of this Req's body, if the body is XML-parsable AND the content-type of the request is XML.
The Elem representation of this Req's body, if the body is XML-parsable AND the content-type of the request is XML. Returns a Failure if the request is not considered a XML request (see xml_?), or if there was an error parsing the XML.
If you want to forcibly evaluate the request body as XML, ignoring
content type, see forcedBodyAsXml
.
Returns true if the content-type is text/xml or application/xml
Contains request information