public class scanpage extends PageInfo
servscan threadsafe but will probably in the future
hold all request related information, because we want to extend the model
of offline page generation.| Modifier and Type | Field and Description |
|---|---|
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 |
| Constructor and Description |
|---|
scanpage()
Empty constructor for code not yet fixed, constructing its own scanpage
Should use new constructor if possible.
|
scanpage(JamesServlet servlet,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
sessionsInterface sessions)
Construct a scanpage for a servlet
|
| Modifier and Type | Method and Description |
|---|---|
(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(javax.servlet.http.HttpServletRequest req)
Sets the HttpServletRequest.
|
void |
setRes(javax.servlet.http.HttpServletResponse res)
Sets the HttpServletResponse.
|
void |
setSessionName(String name)
Set the session name.
|
getCloud, getRequest, getResponse, setRequest, setResponse, toStringpublic Vector<String> params
setParamsVector(java.util.Vector<java.lang.String>), or
determined from the page using the PageInfo.req fieldpublic 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
public scanpage()
public scanpage(JamesServlet servlet, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, sessionsInterface sessions)
void CheckEditorReload()
public void setReq(javax.servlet.http.HttpServletRequest req)
public void setRes(javax.servlet.http.HttpServletResponse res)
public String getParam(int num)
num - index of the parameter to retrievepublic 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 headernul 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()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}