org.openmobileis.services.servlet
Class OpenmisHttpServletRequest
java.lang.Object
org.openmobileis.services.servlet.OpenmisHttpServletRequest
- public class OpenmisHttpServletRequest
- extends java.lang.Object
This class wraps HttpServletRequest.
It gives methods to modify the parameters list. It makes the request more flexible.
Its constructor takes a HttpServletRequest, which is the object to be wrapped.
The added methods are the following :
public void addParameter(String key, Object value);
public void addParameters(Hashtable table);
public void removeParameter(String key);
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenmisHttpServletRequest
public OpenmisHttpServletRequest(HttpServletRequest req)
getAuthType
public java.lang.String getAuthType()
getCookies
public Cookie[] getCookies()
getDateHeader
public long getDateHeader(java.lang.String arg0)
getHeader
public java.lang.String getHeader(java.lang.String arg0)
getHeaders
public java.util.Enumeration getHeaders(java.lang.String arg0)
getHeaderNames
public java.util.Enumeration getHeaderNames()
getIntHeader
public int getIntHeader(java.lang.String arg0)
getMethod
public java.lang.String getMethod()
getPathInfo
public java.lang.String getPathInfo()
getPathTranslated
public java.lang.String getPathTranslated()
getContextPath
public java.lang.String getContextPath()
getQueryString
public java.lang.String getQueryString()
getRemoteUser
public java.lang.String getRemoteUser()
isUserInRole
public boolean isUserInRole(java.lang.String arg0)
getUserPrincipal
public java.security.Principal getUserPrincipal()
getRequestedSessionId
public java.lang.String getRequestedSessionId()
getRequestURI
public java.lang.String getRequestURI()
setRequestURI
public void setRequestURI(java.lang.String uri)
getRequestURL
public java.lang.StringBuffer getRequestURL()
getServletPath
public java.lang.String getServletPath()
getSession
public HttpSession getSession(boolean arg0)
getSession
public HttpSession getSession()
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()
isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()
getAttribute
public java.lang.Object getAttribute(java.lang.String arg0)
getAttributeNames
public java.util.Enumeration getAttributeNames()
getCharacterEncoding
public java.lang.String getCharacterEncoding()
setCharacterEncoding
public void setCharacterEncoding(java.lang.String arg0)
throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
getContentLength
public int getContentLength()
getContentType
public java.lang.String getContentType()
getInputStream
public ServletInputStream getInputStream()
throws java.io.IOException
- Throws:
java.io.IOException
getParameter
public java.lang.String getParameter(java.lang.String name)
- The following 4 methods don't call the wrapped HttpServletRequest,
as we use our own parameters table.
getParameterNames
public java.util.Enumeration getParameterNames()
getParameterValues
public java.lang.String[] getParameterValues(java.lang.String arg0)
getParameterMap
public java.util.Map getParameterMap()
getProtocol
public java.lang.String getProtocol()
getScheme
public java.lang.String getScheme()
getServerName
public java.lang.String getServerName()
getServerPort
public int getServerPort()
getReader
public java.io.BufferedReader getReader()
throws java.io.IOException
- Throws:
java.io.IOException
getRemoteAddr
public java.lang.String getRemoteAddr()
getRemoteHost
public java.lang.String getRemoteHost()
setAttribute
public void setAttribute(java.lang.String arg0,
java.lang.Object arg1)
removeAttribute
public void removeAttribute(java.lang.String arg0)
addParameter
public void addParameter(java.lang.String key,
java.lang.Object value)
- The following 3 methods are not part of the Servlet API.
We use them to make the requests more flexible.
addParameters
public void addParameters(java.util.Hashtable table)
removeParameter
public void removeParameter(java.lang.String key)
getLocale
public java.util.Locale getLocale()
getLocales
public java.util.Enumeration getLocales()
isSecure
public boolean isSecure()
getRequestDispatcher
public RequestDispatcher getRequestDispatcher(java.lang.String arg0)
getRealPath
public java.lang.String getRealPath(java.lang.String arg0)
getRemotePort
public int getRemotePort()
getLocalName
public java.lang.String getLocalName()
getLocalAddr
public java.lang.String getLocalAddr()
getLocalPort
public int getLocalPort()
Copyright 2006 OpenMobileIS. All Rights Reserved.