|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.opencms.core.CmsExportRequest
Implementation of the I_CmsRequest interface which is used to request pages during a static export.
| Constructor Summary | |
CmsExportRequest(javax.servlet.http.HttpServletRequest req)
|
|
CmsExportRequest(String webAppUrl,
String servletUrl)
|
|
| 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()
Methods to get the data from the original request. |
String |
getServerName()
Methods to get the data from the original request. |
int |
getServerPort()
Methods to get the data from the original request. |
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 |
setParameters(Hashtable parameters)
sets the parameters for this static export. |
void |
setRequestedResource(String res)
Set the name returned by getRequestedResource(). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CmsExportRequest(javax.servlet.http.HttpServletRequest req)
public CmsExportRequest(String webAppUrl,
String servletUrl)
| Method Detail |
public byte[] getFile(String name)
I_CmsRequest
getFile in interface I_CmsRequestname - The name of the uploaded file.
public Enumeration getFileNames()
I_CmsRequest
getFileNames in interface I_CmsRequestpublic Object getOriginalRequest()
I_CmsRequest
getOriginalRequest in interface I_CmsRequestpublic void setOriginalRequest(Object request)
I_CmsRequest
setOriginalRequest in interface I_CmsRequestpublic int getOriginalRequestType()
I_CmsRequest
getOriginalRequestType in interface I_CmsRequestpublic String getParameter(String name)
I_CmsRequest
getParameter in interface I_CmsRequestname - The name of the parameter.
public Enumeration getParameterNames()
I_CmsRequest
getParameterNames in interface I_CmsRequestpublic String[] getParameterValues(String key)
I_CmsRequest
getParameterValues in interface I_CmsRequestpublic void setParameters(Hashtable parameters)
parameters - The Hashtable with the parameters (contains String[])public String getRequestedResource()
I_CmsRequest
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.
getRequestedResource in interface I_CmsRequestpublic void setRequestedResource(String res)
I_CmsRequest
setRequestedResource in interface I_CmsRequestres - The name to set the requested resource name topublic String getWebAppUrl()
getWebAppUrl in interface I_CmsRequestpublic String getServletUrl()
getServletUrl in interface I_CmsRequestpublic String getServerName()
getServerName in interface I_CmsRequestpublic int getServerPort()
getServerPort in interface I_CmsRequestpublic String getScheme()
getScheme in interface I_CmsRequest
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||