public class XINSServletRequest extends Object implements HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
Constructor and Description |
---|
XINSServletRequest(String url)
Creates a new Servlet request.
|
XINSServletRequest(String method,
String url,
String data,
Map headers)
Creates a new servlet request with the specified method.
|
public XINSServletRequest(String url)
url
- the request URL or the list of the parameters (name=value) separated
with comma's. Cannot be null
.public XINSServletRequest(String method, String url, String data, Map headers)
method
- the request method, cannot be null
.url
- the request URL or the list of the parameters (name=value) separated
with ampersands, cannot be null
.data
- the content of the request, can be null
.headers
- the HTTP headers of the request. The key and the value of the Map
is a String. The keys should all be in upper case. Can be null
.public void setCharacterEncoding(String str)
setCharacterEncoding
in interface ServletRequest
public String[] getParameterValues(String str)
getParameterValues
in interface ServletRequest
public String getParameter(String str)
getParameter
in interface ServletRequest
public int getIntHeader(String str)
getIntHeader
in interface HttpServletRequest
public Object getAttribute(String str)
getAttribute
in interface ServletRequest
public long getDateHeader(String str)
getDateHeader
in interface HttpServletRequest
public String getHeader(String str)
getHeader
in interface HttpServletRequest
public Enumeration getHeaders(String str)
getHeaders
in interface HttpServletRequest
public String getRealPath(String str)
getRealPath
in interface ServletRequest
public RequestDispatcher getRequestDispatcher(String str)
getRequestDispatcher
in interface ServletRequest
public boolean isUserInRole(String str)
isUserInRole
in interface HttpServletRequest
public void removeAttribute(String str)
removeAttribute
in interface ServletRequest
public void setAttribute(String str, Object obj)
setAttribute
in interface ServletRequest
public String getQueryString()
getQueryString
in interface HttpServletRequest
public String getProtocol()
getProtocol
in interface ServletRequest
public String getPathTranslated()
getPathTranslated
in interface HttpServletRequest
public String getPathInfo()
getPathInfo
in interface HttpServletRequest
public Enumeration getParameterNames()
getParameterNames
in interface ServletRequest
public Map getParameterMap()
getParameterMap
in interface ServletRequest
public String getMethod()
getMethod
in interface HttpServletRequest
public Enumeration getLocales()
getLocales
in interface ServletRequest
public Locale getLocale()
getLocale
in interface ServletRequest
public Enumeration getAttributeNames()
getAttributeNames
in interface ServletRequest
public String getAuthType()
getAuthType
in interface HttpServletRequest
public String getCharacterEncoding()
getCharacterEncoding
in interface ServletRequest
public int getContentLength()
getContentLength
in interface ServletRequest
public String getContentType()
getContentType
in interface ServletRequest
public String getContextPath()
getContextPath
in interface HttpServletRequest
public Cookie[] getCookies()
getCookies
in interface HttpServletRequest
public Enumeration getHeaderNames()
getHeaderNames
in interface HttpServletRequest
public ServletInputStream getInputStream()
getInputStream
in interface ServletRequest
public BufferedReader getReader()
getReader
in interface ServletRequest
public String getRemoteAddr()
getRemoteAddr
in interface ServletRequest
public String getRemoteHost()
getRemoteHost
in interface ServletRequest
public String getRemoteUser()
getRemoteUser
in interface HttpServletRequest
public String getRequestURI()
getRequestURI
in interface HttpServletRequest
public StringBuffer getRequestURL()
getRequestURL
in interface HttpServletRequest
public String getRequestedSessionId()
getRequestedSessionId
in interface HttpServletRequest
public String getScheme()
getScheme
in interface ServletRequest
public String getServerName()
getServerName
in interface ServletRequest
public int getServerPort()
getServerPort
in interface ServletRequest
public String getServletPath()
getServletPath
in interface HttpServletRequest
public HttpSession getSession()
getSession
in interface HttpServletRequest
public HttpSession getSession(boolean create)
getSession
in interface HttpServletRequest
public Principal getUserPrincipal()
getUserPrincipal
in interface HttpServletRequest
public boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromCookie
in interface HttpServletRequest
public boolean isRequestedSessionIdFromURL()
isRequestedSessionIdFromURL
in interface HttpServletRequest
public boolean isRequestedSessionIdFromUrl()
isRequestedSessionIdFromUrl
in interface HttpServletRequest
public boolean isRequestedSessionIdValid()
isRequestedSessionIdValid
in interface HttpServletRequest
public boolean isSecure()
isSecure
in interface ServletRequest
See http://www.xins.org/.