|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface defines an OpenCms request, a generic request object that is used by OpenCms and provides methods to read the data included in the request.
Implementations of this interface use an existing request (e.g. HttpServletRequest) to initialize an I_CmsRequest.
| Method Summary | |
byte[] |
getFile(String name)
Returns the content of an uploaded file. |
Enumeration |
getFileNames()
Returns the names of all uploaded files in this request. |
Object |
getOriginalRequest()
Returns the original request that was used to create the CmsRequest. |
int |
getOriginalRequestType()
Returns the type of the request that was used to create the CmsRequest. |
String |
getParameter(String name)
Returns the value of a named parameter as a String. |
Enumeration |
getParameterNames()
Returns all parameter names as an Enumeration of String objects. |
String[] |
getParameterValues(String key)
Returns all parameter values of a parameter key. |
String |
getRequestedResource()
This funtion returns the name of the requested resource. |
String |
getScheme()
|
String |
getServerName()
Methods to get the data from the original request. |
int |
getServerPort()
|
String |
getServletUrl()
Gets the part of the Url that describes the current servlet of this Web-Application. |
String |
getWebAppUrl()
Returns the part of the Url that descibes the Web-Application. |
void |
setOriginalRequest(Object request)
Sets the original request to another value |
void |
setRequestedResource(String resourceName)
Set the name returned by getRequestedResource(). |
| Method Detail |
public byte[] getFile(String name)
name - The name of the uploaded file.
public Enumeration getFileNames()
public Object getOriginalRequest()
public void setOriginalRequest(Object request)
public int getOriginalRequestType()
public String getParameter(String name)
name - The name of the parameter.
public Enumeration getParameterNames()
public String[] getParameterValues(String key)
public String getRequestedResource()
For a http request, the name of the resource is extracted as follows:
http://{servername}/{servletpath}/{path to the cms resource}
In the following example:
http://my.work.server/servlet/opencms/system/def/explorer
the requested resource is /system/def/explorer.
public void setRequestedResource(String resourceName)
resourceName - The name to set the requested resource name topublic String getWebAppUrl()
public String getServletUrl()
public String getServerName()
public String getScheme()
public int getServerPort()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||