com.missiondata.oss.lakeshore.requesthandler
Class HttpRequest
java.lang.Object
com.missiondata.oss.lakeshore.requesthandler.HttpRequest
- All Implemented Interfaces:
- Request
- public class HttpRequest
- extends java.lang.Object
- implements Request
Constructor Summary |
HttpRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
javax.servlet.ServletContext servletContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpRequest
public HttpRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
javax.servlet.ServletContext servletContext)
dontCache
public void dontCache()
- Specified by:
dontCache
in interface Request
getParameterMap
public java.util.Map getParameterMap()
- Specified by:
getParameterMap
in interface Request
sendRedirect
public void sendRedirect(java.lang.String uri)
- Specified by:
sendRedirect
in interface Request
getRequestURI
public java.lang.String getRequestURI()
- Specified by:
getRequestURI
in interface Request
getBasePath
public java.lang.String getBasePath()
- Specified by:
getBasePath
in interface Request
getContextPath
public java.lang.String getContextPath()
- Specified by:
getContextPath
in interface Request
getProtocol
public java.lang.String getProtocol()
- Specified by:
getProtocol
in interface Request
getServerPort
public int getServerPort()
- Specified by:
getServerPort
in interface Request
getServer
public java.lang.String getServer()
- Specified by:
getServer
in interface Request
print
public void print(java.lang.String s)
- Specified by:
print
in interface Request
getParameter
public java.lang.String getParameter(java.lang.String name)
- Specified by:
getParameter
in interface Request
setContentDisposition
public void setContentDisposition(java.lang.String contentDisposition)
- Specified by:
setContentDisposition
in interface Request
getUploadedFile
public UploadedFile getUploadedFile(java.lang.String key)
- Specified by:
getUploadedFile
in interface Request
setContentType
public void setContentType(java.lang.String contentType)
- Specified by:
setContentType
in interface Request
setMimeForName
public void setMimeForName(java.lang.String name)
- Specified by:
setMimeForName
in interface Request
getOutputStream
public java.io.OutputStream getOutputStream()
- Specified by:
getOutputStream
in interface Request
setSessionAttribute
public void setSessionAttribute(java.lang.String key,
java.lang.Object attribute)
- Specified by:
setSessionAttribute
in interface Request
getSessionAttribute
public java.lang.Object getSessionAttribute(java.lang.String key)
- Specified by:
getSessionAttribute
in interface Request
buildParameterMap
protected java.util.Map buildParameterMap(javax.servlet.http.HttpServletRequest httpServletRequest)
getHttpServletRequest
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
getHttpServletResponse
public javax.servlet.http.HttpServletResponse getHttpServletResponse()
getServletContext
public javax.servlet.ServletContext getServletContext()
isUserInRole
public boolean isUserInRole(java.lang.String role)
- Specified by:
isUserInRole
in interface Request