Wombat::Request - internal request interface
This interface extends Servlet::ServletRequest to provide fields and methods accessible only to the container.
Return the Application within which this Request is being processed.
Set the Application within which this Request is being processed. This must be called as soon as the appropriate Application is identified, because it enables parsing of the request URI.
Parameters:
the Wombat::Application within which the Request is being processed
Return the authorization credentials sent with this Request.
Sets the authorization credentials sent with this Request.
the authorization credentials
Return the Connector through which this Request was received.
Set the Connector through which this request was received.
the Wombat::Connector that received the request
Return the input handle associated with this Request. Usually the Socket and Handle for the Request are the same object, but this is not required.
Set the input handle ssociated with this Request.
the IO::Handle associated with this Request
Return the ServletRequest which acts as a facade for this Request to servlet applications.
Return the Response with which this Request is associated.
Set the Response with which this Request is associated.
the Wombat::Response with which this Request is associated
Return the Socket (if any) through which this Request was received. This should only be used to access underlying state information about the Socket, such as the SSL information of a IO::Socket::SSL.
Set the Socket (if any) through which this Request was received.
the IO::Socket through which this Request was received
Returns the Wrapper within which this Request is being processed.
Set the Wrapper within which this Request is being processed. This must be called as soon as the appropriate Wrapper is identified, and before the Request is ultimately passed to an application servlet.
the Wombat::Wrapper associated with this Request
Add a locale to the set of preferred Locales for this Request.
the locale to add
Add a named parameter with one or more values to this Request.
the name of the parameter to add
a list of one or more parameter values, scalar or undef
undef
Clear the list of locales for this Request.
Clear the set of parameters for this Request.
Create and return a Servlet::ServletInputHandle to read the content associated with this Request.
Throws:
if an input or output error occurs
Perform whatever actions are required to flush and close the input handle or reader.
Set the length, in bytes, of the request body provided by the input handle.
the content length in bytes
Set the MIME type of the body of the body of the request.
the MIME type
Set the name and version of the protocol used for the request in the form protocol/majorVersion.minorVersion.
the name and version of the protocol
Set the remote IP address associated with this Request. This value will be used to resolve the name of the remote host if necessary.
the remote IP address
Set the name of the scheme used to make this request, for example http, https, or ftp.
the name of the scheme
Set a value indicating whether or not the request was made using a secure channel.
a boolean value
Set the host name of the server which received this request.
the host name
Set the port number on which this request was received.
the port number
Release all object references and initialize instances variables in preparation for use or reuse of this object.
IO::Handle, IO::Socket, Servlet::ServletRequest, Servlet::ServletServletInputHandle, Servlet::Util::Exception, Wombat::Application, Wombat::Connector, Wombat::Response, Wombat::Wrapper
Brian Moseley, bcm@maz.org
To install Wombat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wombat
CPAN shell
perl -MCPAN -e shell install Wombat
For more information on module installation, please visit the detailed CPAN module installation guide.