|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.PageInfo
org.mmbase.util.scanpage
public class scanpage
The scanpage is a container class.
It holds all information that is needed to identify a user, including
servlet objects and MMBase session information.
It was introduced to make servscan threadsafe but will probably in the future
hold all request related information, because we want to extend the model
of offline page generation.
| Field Summary | |
|---|---|
String |
body
|
String |
loadmode
|
String |
mimetype
|
String |
name
|
Vector<String> |
params
The parameters of this page. |
int |
partlevel
|
HttpPost |
poster
Object for accessing values sent by a form using enctype multipart/form-data. |
ProcessorModule |
processor
The processor set for this page. |
String |
querystring
|
boolean |
reload
Indicates whether elements sucha s 'multilevel' should be reloaded, or whether results stored in cache should be used. |
String |
req_line
|
int |
rstatus
|
sessionInfo |
session
The user's MMBase session object, if available. |
String |
sname
The session name. |
String |
wantCache
|
| Fields inherited from class org.mmbase.util.PageInfo |
|---|
req, res |
| Constructor Summary | |
|---|---|
scanpage()
Empty constructor for code not yet fixed, constructing its own scanpage Should use new constructor if possible. |
|
scanpage(JamesServlet servlet,
HttpServletRequest req,
HttpServletResponse res,
sessionsInterface sessions)
Construct a scanpage for a servlet |
|
| Method Summary | |
|---|---|
(package private) void |
CheckEditorReload()
|
scanpage |
duplicate()
Creates a duplicate of this scanpage |
String |
getAddress()
Extract hostname from scanpage, get address and determine the proxies between it. |
String |
getHeader(String name)
Retrieve a HTTP request header, if available |
String |
getParam(int num)
Get the parameter specified. |
Vector<String> |
getParamsVector()
Retrieve all parameters of a page. |
String |
getReferer()
Gets the referrer from the request header. |
String |
getSessionName()
Return the session name. |
String |
getUrl()
Return page URL and parameters |
boolean |
setParamsLine(String paramline)
Manually set the parameterline of a page (as if it was a querystring). |
boolean |
setParamsVector(Vector<String> params)
Manually set the parameters of a page. |
void |
setReq(HttpServletRequest req)
Sets the HttpServletRequest. |
void |
setRes(HttpServletResponse res)
Sets the HttpServletResponse. |
void |
setSessionName(String name)
Set the session name. |
| Methods inherited from class org.mmbase.util.PageInfo |
|---|
getCloud, getRequest, getResponse, setRequest, setResponse, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Vector<String> params
setParamsVector(java.util.Vector) , or
determined from the page using the PageInfo.req field
public ProcessorModule processor
public HttpPost poster
public sessionInfo session
public String sname
public String name
public int rstatus
public String body
public String req_line
public String wantCache
public String mimetype
public String querystring
public int partlevel
public String loadmode
public boolean reload
| Constructor Detail |
|---|
public scanpage()
public scanpage(JamesServlet servlet,
HttpServletRequest req,
HttpServletResponse res,
sessionsInterface sessions)
| Method Detail |
|---|
void CheckEditorReload()
public void setReq(HttpServletRequest req)
public void setRes(HttpServletResponse res)
public String getParam(int num)
num - index of the parameter to retrieve
public boolean setParamsVector(Vector<String> params)
params - a Vector of parameter valuespublic Vector<String> getParamsVector()
Vector of parameter valuespublic boolean setParamsLine(String paramline)
paramline - a string containing teh parametervalues seperated by '+' characterspublic String getHeader(String name)
name - the name of the header
nul if it can not be retrievedpublic String getSessionName()
public void setSessionName(String name)
public String getUrl()
public String getAddress()
public String getReferer()
String with the referer,
null when reqheader is null.public scanpage duplicate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||