|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xins.common.servlet.container.XINSServletRequest
This class is an implementation of the HTTPServletRequest that can be called localy.
Field Summary |
Fields inherited from interface javax.servlet.http.HttpServletRequest |
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
Constructor Summary | |
XINSServletRequest(String url)
Deprecated. Since XINS 1.5.0. The way the HTTP method is determined is incorrect. Use XINSServletRequest(String,String,String,Map) instead. |
|
XINSServletRequest(String url,
char[] data,
Map headers)
Deprecated. Since XINS 1.5.0. The way the HTTP method is determined is incorrect. Use XINSServletRequest(String,String,String,Map) instead. |
|
XINSServletRequest(String url,
char[] data,
String contentType)
Deprecated. Since XINS 1.5.0. The way the HTTP method is determined is incorrect. Use XINSServletRequest(String,String,String,Map) instead. |
|
XINSServletRequest(String method,
String url,
String data,
Map headers)
Creates a new servlet request with the specified method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XINSServletRequest(String url)
XINSServletRequest(String,String,String,Map)
instead.
url
- the request URL or the list of the parameters (name=value) separated
with comma's.public XINSServletRequest(String url, char[] data, String contentType)
XINSServletRequest(String,String,String,Map)
instead.
url
- the request URL or the list of the parameters (name=value) separated
with comma's.data
- the content of the request.contentType
- the content type of the request.public XINSServletRequest(String url, char[] data, Map headers)
XINSServletRequest(String,String,String,Map)
instead.
url
- the request URL or the list of the parameters (name=value) separated
with ampersands.data
- the content of the request.headers
- the HTTP headers of the request. The key and the value of the Map
is a String.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.data
- the content of the request.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.Method Detail |
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |