com.hyper9.simdk.ws
Class HttpServletRequestEx
java.lang.Object
javax.servlet.ServletRequestWrapper
javax.servlet.http.HttpServletRequestWrapper
com.hyper9.simdk.ws.HttpServletRequestEx
- All Implemented Interfaces:
- javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest
public class HttpServletRequestEx
- extends javax.servlet.http.HttpServletRequestWrapper
A mutable HttpServletRequest.
- Author:
- akutz
Fields inherited from interface javax.servlet.http.HttpServletRequest |
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper |
getContextPath, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURL, getServletPath, getSession, getSession, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid |
Methods inherited from class javax.servlet.ServletRequestWrapper |
getAttribute, getAttributeNames, getCharacterEncoding, getContentType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.ServletRequest |
getAttribute, getAttributeNames, getCharacterEncoding, getContentType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding |
HttpServletRequestEx
public HttpServletRequestEx(javax.servlet.http.HttpServletRequest request)
HttpServletRequestEx
public HttpServletRequestEx(javax.servlet.ServletRequest request)
setContent
public void setContent(String toSet)
getAuthType
public String getAuthType()
- Specified by:
getAuthType
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getAuthType
in class javax.servlet.http.HttpServletRequestWrapper
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipal
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getUserPrincipal
in class javax.servlet.http.HttpServletRequestWrapper
setUserPrincipal
public void setUserPrincipal(Principal toSet)
getRoleNames
public List<String> getRoleNames()
setRoleNames
public void setRoleNames(List<String> toSet)
isUserInRole
public boolean isUserInRole(String role)
- Specified by:
isUserInRole
in interface javax.servlet.http.HttpServletRequest
- Overrides:
isUserInRole
in class javax.servlet.http.HttpServletRequestWrapper
getHeaders
public HashMap<String,String> getHeaders()
setHeaders
public void setHeaders(HashMap<String,String> toSet)
getHeader
public String getHeader(String name)
- Specified by:
getHeader
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getHeader
in class javax.servlet.http.HttpServletRequestWrapper
getDateHeader
public long getDateHeader(String name)
- Specified by:
getDateHeader
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getDateHeader
in class javax.servlet.http.HttpServletRequestWrapper
getHeaderNames
public Enumeration getHeaderNames()
- Specified by:
getHeaderNames
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getHeaderNames
in class javax.servlet.http.HttpServletRequestWrapper
getIntHeader
public int getIntHeader(String name)
- Specified by:
getIntHeader
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getIntHeader
in class javax.servlet.http.HttpServletRequestWrapper
getHeaders
public Enumeration getHeaders(String name)
- Specified by:
getHeaders
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getHeaders
in class javax.servlet.http.HttpServletRequestWrapper
getCookies
public javax.servlet.http.Cookie[] getCookies()
- Specified by:
getCookies
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getCookies
in class javax.servlet.http.HttpServletRequestWrapper
addCookie
public void addCookie(javax.servlet.http.Cookie cookie)
removeAllCookies
public void removeAllCookies(String name)
getRequestURI
public String getRequestURI()
- Specified by:
getRequestURI
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getRequestURI
in class javax.servlet.http.HttpServletRequestWrapper
setRequestURI
public void setRequestURI(String toSet)
getContentLength
public int getContentLength()
- Specified by:
getContentLength
in interface javax.servlet.ServletRequest
- Overrides:
getContentLength
in class javax.servlet.ServletRequestWrapper
getInputStream
public javax.servlet.ServletInputStream getInputStream()
throws IOException
- Specified by:
getInputStream
in interface javax.servlet.ServletRequest
- Overrides:
getInputStream
in class javax.servlet.ServletRequestWrapper
- Throws:
IOException
getReader
public BufferedReader getReader()
throws IOException
- Specified by:
getReader
in interface javax.servlet.ServletRequest
- Overrides:
getReader
in class javax.servlet.ServletRequestWrapper
- Throws:
IOException
getContent
public String getContent()
throws IOException
- Throws:
IOException
Copyright © 2009-2010 Hyper9. All Rights Reserved.