org.mmbase.util
Class PageInfo

java.lang.Object
  extended by org.mmbase.util.PageInfo
Direct Known Subclasses:
scanpage

public class PageInfo
extends Object

The PageInfo is a container class. Needed for the ProcessorInterface.

Since:
MMBase 1.8
Version:
$Id: PageInfo.java 34900 2009-05-01 16:29:42Z michiel $
Author:
Pierre van Rooden

Field Summary
 HttpServletRequest req
          The request object associated with the current page.
 HttpServletResponse res
          The response object associated with the current page.
 
Constructor Summary
protected PageInfo()
          Empty constructor, needed for call from scanpage
  PageInfo(HttpServletRequest request, HttpServletResponse response)
           
  PageInfo(HttpServletRequest request, HttpServletResponse response, Cloud cloud)
          Creates a pagecontext with a user's request information.
 
Method Summary
 Cloud getCloud()
           
 HttpServletRequest getRequest()
          Returns the HttpServletRequest object for this request.
 HttpServletResponse getResponse()
          Returns the HttpServletResponse object for this request.
protected  void setRequest(HttpServletRequest request)
          Sets the HttpServletRequest object for this request.
protected  void setResponse(HttpServletResponse response)
          Sets the HttpServletResponse object for this request.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

req

public HttpServletRequest req
The request object associated with the current page. Not a very good name - and should not be public, but needed for backward compatibility witH SCAN


res

public HttpServletResponse res
The response object associated with the current page. Not a very good name - and should not be public, but needed for backward compatibility witH SCAN

Constructor Detail

PageInfo

protected PageInfo()
Empty constructor, needed for call from scanpage


PageInfo

public PageInfo(HttpServletRequest request,
                HttpServletResponse response,
                Cloud cloud)
Creates a pagecontext with a user's request information.

Parameters:
request - the HttpServletRequest object for this request
response - the HttpServletResponse object for this request

PageInfo

public PageInfo(HttpServletRequest request,
                HttpServletResponse response)
Method Detail

getRequest

public HttpServletRequest getRequest()
Returns the HttpServletRequest object for this request.

Returns:
a HttpServletRequest object, or null if none is available

setRequest

protected void setRequest(HttpServletRequest request)
Sets the HttpServletRequest object for this request.

Parameters:
request - a HttpServletRequest object, or null if none is available

getResponse

public HttpServletResponse getResponse()
Returns the HttpServletResponse object for this request.

Returns:
a HttpServletResponse object, or null if none is available

setResponse

protected void setResponse(HttpServletResponse response)
Sets the HttpServletResponse object for this request.

Parameters:
response - a HttpServletResponse object, or null if none is available

getCloud

public Cloud getCloud()

toString

public String toString()
Overrides:
toString in class Object


MMBase 2.0-SNAPSHOT - null