Package muntjac :: Package terminal :: Package gwt :: Package server :: Module abstract_communication_manager :: Class IRequest
[hide private]
[frames] | no frames]

Class IRequest

source code

object --+
         |
        IRequest
Known Subclasses:

Generic interface of a (HTTP or Portlet) request to the application.

This is a wrapper interface that allows AbstractCommunicationManager to use a unified API.


Author: peholmst

Instance Methods [hide private]
 
getSession(self)
Gets a Session wrapper implementation representing the session for which this request was sent.
source code
 
isRunningInPortlet(self)
Are the applications in this session running in a portlet or directly as servlets.
source code
 
getParameter(self, name)
Get the named HTTP or portlet request parameter.
source code
 
getContentLength(self)
Returns the length of the request content that can be read from the input stream returned by getInputStream.
source code
 
getInputStream(self)
Returns an input stream from which the request content can be read.
source code
 
getRequestID(self)
Returns the request identifier that identifies the target Muntjac window for the request.
source code
 
getAttribute(self, name) source code
 
setAttribute(self, name, value) source code
 
getWrappedRequest(self)
Gets the underlying request object.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getSession(self)

source code 

Gets a Session wrapper implementation representing the session for which this request was sent.

Multiple Muntjac applications can be associated with a single session.

Returns:
Session

isRunningInPortlet(self)

source code 

Are the applications in this session running in a portlet or directly as servlets.

Returns:
true if in a portlet

getContentLength(self)

source code 

Returns the length of the request content that can be read from the input stream returned by getInputStream.

Returns:
content length in bytes

getInputStream(self)

source code 

Returns an input stream from which the request content can be read. The request content length can be obtained with getContentLength without reading the full stream contents.

Raises:
  • IOException

getRequestID(self)

source code 

Returns the request identifier that identifies the target Muntjac window for the request.

Returns:
String identifier for the request target window

getWrappedRequest(self)

source code 

Gets the underlying request object. The request is typically either a ServletRequest or a PortletRequest.

Returns:
wrapped request object