Class CMSRequest
java.lang.Object
com.netscape.cms.servlet.common.CMSRequest
-
Field Summary
Fields inherited from interface com.netscape.certsrv.common.ICMSRequest
ERROR, EXCEPTION, PENDING, REJECTED, SUCCESS, SVC_PENDING, UNAUTHORIZED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetError()getExtData(String type) javax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponsejavax.servlet.ServletConfigjavax.servlet.ServletContextvoidsetError(EBaseException error) voidvoidsetErrorDescription(String descr) voidsetExtData(String type, String value) voidsetHttpParams(IArgBlock httpParams) set the HTTP parametersvoidsetHttpReq(javax.servlet.http.HttpServletRequest httpReq) set the HTTP Request object associated with this sessionvoidsetHttpResp(javax.servlet.http.HttpServletResponse httpResp) set the HTTP Response object which is used to create the HTTP response which is sent back to the uservoidsetIRequest(IRequest request) set the Request aobject associated with this sessionvoidset default CMS status according to IRequest status.voidvoidvoidvoidsetServletConfig(javax.servlet.ServletConfig servletConfig) set the servlet configuration.voidsetServletContext(javax.servlet.ServletContext servletContext) voidSet request status.
-
Constructor Details
-
CMSRequest
public CMSRequest()Constructor
-
-
Method Details
-
setHttpParams
set the HTTP parameters -
setIRequest
set the Request aobject associated with this session -
setHttpReq
public void setHttpReq(javax.servlet.http.HttpServletRequest httpReq) set the HTTP Request object associated with this session -
setHttpResp
public void setHttpResp(javax.servlet.http.HttpServletResponse httpResp) set the HTTP Response object which is used to create the HTTP response which is sent back to the user -
setServletConfig
public void setServletConfig(javax.servlet.ServletConfig servletConfig) set the servlet configuration. The servlet configuration is read from the WEB-APPS/web.xml file under the <servlet> XML definition. The parameters are delimited by init-param param-name/param-value options as described in the servlet documentation. -
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext) -
setStatus
Set request status.- Parameters:
status- request status. Allowed values are UNAUTHORIZED, SUCCESS, REJECTED, PENDING, ERROR, SVC_PENDING- Throws:
IllegalArgumentException- if status is not one of the above values
-
setError
-
setError
-
setErrorDescription
-
setResult
-
setResult
-
getHttpParams
-
getHttpReq
public javax.servlet.http.HttpServletRequest getHttpReq() -
getHttpResp
public javax.servlet.http.HttpServletResponse getHttpResp() -
getServletConfig
public javax.servlet.ServletConfig getServletConfig() -
getServletContext
public javax.servlet.ServletContext getServletContext() -
getIRequest
-
getStatus
-
getError
-
getErrorDescr
-
getResult
-
getResult
-
setReason
-
getReason
-
setExtData
-
getExtData
-
getPolicyMessages
-
setIRequestStatus
set default CMS status according to IRequest status.- Throws:
EBaseException
-