Defines an object to provide HTTP client request information to a service.
A PHRUTS_HttpServiceRequest object provides data including parameters names and values, and attributes.
Located in /connector/PHRUTS_HttpServiceRequest.php (line 36)
The attributes associated with this request, keyed by attribute name.
The set of cookies associated with this request.
Preferred PHRUTS_Locale that the client will accept content in.
Current PHRUTS_HttpSession associated with this request.
Returns the value of the named attribute as an object, or null if no attribute of the given name exists.
Returns an array containing the names of the attributes available to this request.
This method returns an empty array if the request has no attributes available to it.
Returns the name of the authentication scheme used to protect the service.
If the service is not authenticated null is returned.
Same as the value of the CGI variable AUTH_TYPE.
Returns the MIME type of the body of the request, or null if the type is not known.
Same as the value of the CGI variable CONTENT_TYPE.
Returns an array containing all of the Cookie objects the client sent with this request.
This method returns null if no cookies were sent.
Returns the value of the specified request header as a string.
The header name is case sensitive. You can use this method with any request header.
Returns an array of all the header names this request contains.
If the request has no headers, this method returns an empty enumeration.
Returns the preferred PHRUTS_Locale that the client will accept content in, based on the Accept-Language header.
If the client request doesn't provide an Accept-Language header, this method returns the default locale for the server.
Returns the name of the HTTP method with which this request was made, for exemple, GET, POST or PUT.
Same as the value of the CGI variable REQUEST_METHOD.
Returns the value of a request parameter as a string or null if the parameter does not exist.
Request parameters are extra information sent with the request. The parameters are contained in the query string or posted form data.
Returns an array of string containing the names of the parameters contained in this request.
If the request has no parameters, the method returns an empty array.
Returns the name and version of the protocol the request uses in the form protocol/majorVersion.minorVersion.
For example "HTTP/1.1". The value returned is the same as the value of the CGI variable SERVER_PROTOCOL.
Returns the query string that is contained in the request URL after the path.
This method returns null if the URL does not have a query string. Same as the value of the CGI variable QUERY_STRING.
Returns the Internet Protocol (IP) address of the client or last proxy that sent the request.
Same as the value of the CGI variable REMOTE_ADDR.
Returns the Internet Protocol (IP) source port of the client or last proxy that sent the request.
Returns the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated.
Whether the user name is sent with each subsequent request depends on the browser and type of authentication. Same as the value of the CGI variable REMOTE_USER.
Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request.
For example:
Reconstructs the URL the client used to make the request.
The returned URL contains a protocol, server name, port number, and server path, but it does not include query string parameters. This method is useful for creating redirect messages and for reporting errors.
Returns the name of the scheme used to make this request: "http" or "https".
Returns the host name of the server to which the request was sent.
Returns the port number to which this request was sent.
Returns the current PHRUTS_HttpSession associated with this request or, if there is no current session and create is true, returns a new session.
If create is false and the request has no valid PHRUTS_HttpSession this method returns null.
To make sur the session is properly maintained, you must call this method before the response is committed.
Returns a boolean indicating whether this request was made using a secure channel (HTTPS).
Returns a boolean indicating whether the authenticated user is included in the specified logical "role".
Roles and role membership can be defined using deployment descriptors. If the user has not been authenticated, the method returns false.
Removes an attribute from this request.
Stores an attribute in this request.
Attributes are reset between requests.
If the object passed in is null, the effect is the same as calling removeAttribute.
String identifier for Basic authentication.
String identifier for Client Certificate authentication.
String identifier for Digest authentication.
String identifier for Form authentication.
Documentation generated on Sat, 31 May 2008 15:46:07 +0200 by phpDocumentor 1.4.1