org.melati.util
Class DelegatedHttpServletRequest

Package class diagram package DelegatedHttpServletRequest
java.lang.Object
  extended by org.melati.util.DelegatedHttpServletRequest
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest
Direct Known Subclasses:
HttpServletRequestWrap, ReconstructedHttpServletRequest

public class DelegatedHttpServletRequest
extends Object
implements javax.servlet.http.HttpServletRequest

Enables Melati to compile, without warnings, with the Servlet API versions 2.0 to 2.5. However the database listener and admin tests rely upon 2.4 features.


Field Summary
protected  javax.servlet.http.HttpServletRequest peer
           
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
DelegatedHttpServletRequest(javax.servlet.http.HttpServletRequest peer)
           
 
Method Summary
 Object getAttribute(String a)
          
 Enumeration<String> getAttributeNames()
          
 String getAuthType()
          
 String getCharacterEncoding()
          
 int getContentLength()
          
 String getContentType()
          
 String getContextPath()
          
 javax.servlet.http.Cookie[] getCookies()
          
 long getDateHeader(String a)
          
 String getHeader(String a)
          
 Enumeration<String> getHeaderNames()
          
 Enumeration<String> getHeaders(String name)
          
 javax.servlet.ServletInputStream getInputStream()
          
 int getIntHeader(String a)
          
 String getLocalAddr()
          
 Locale getLocale()
          
 Enumeration<Locale> getLocales()
          
 String getLocalName()
          
 int getLocalPort()
          
 String getMethod()
          
 String getParameter(String a)
          
 Map<String,String[]> getParameterMap()
          
 Enumeration<String> getParameterNames()
          
 String[] getParameterValues(String a)
          
 String getPathInfo()
          
 String getPathTranslated()
          
 String getProtocol()
          
 String getQueryString()
          
 BufferedReader getReader()
          
 String getRealPath(String a)
          Deprecated. Servlet API 2.1
 String getRemoteAddr()
          
 String getRemoteHost()
          
 int getRemotePort()
          
 String getRemoteUser()
          
 javax.servlet.RequestDispatcher getRequestDispatcher(String arg)
          
 String getRequestedSessionId()
          
 String getRequestURI()
          
 StringBuffer getRequestURL()
          
 String getScheme()
          
 String getServerName()
          
 int getServerPort()
          
 String getServletPath()
          
 javax.servlet.http.HttpSession getSession()
          
 javax.servlet.http.HttpSession getSession(boolean a)
          
 Principal getUserPrincipal()
          
 boolean isRequestedSessionIdFromCookie()
          
 boolean isRequestedSessionIdFromUrl()
          Deprecated. Servlet API 2.1
 boolean isRequestedSessionIdFromURL()
          
 boolean isRequestedSessionIdValid()
          
 boolean isSecure()
          
 boolean isUserInRole(String a)
          
 void removeAttribute(String arg)
          
 void setAttribute(String arg1, Object arg2)
          
 void setCharacterEncoding(String s)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

peer

protected javax.servlet.http.HttpServletRequest peer
Constructor Detail

DelegatedHttpServletRequest

public DelegatedHttpServletRequest(javax.servlet.http.HttpServletRequest peer)
Parameters:
peer -
Method Detail

getAuthType

public String getAuthType()

Specified by:
getAuthType in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getAuthType()

getCookies

public javax.servlet.http.Cookie[] getCookies()

Specified by:
getCookies in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getCookies()

getDateHeader

public long getDateHeader(String a)

Specified by:
getDateHeader in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getDateHeader(java.lang.String)

getHeader

public String getHeader(String a)

Specified by:
getHeader in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getHeader(java.lang.String)

getHeaderNames

public Enumeration<String> getHeaderNames()

Specified by:
getHeaderNames in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getHeaderNames()

getIntHeader

public int getIntHeader(String a)

Specified by:
getIntHeader in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getIntHeader(java.lang.String)

getMethod

public String getMethod()

Specified by:
getMethod in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getMethod()

getPathInfo

public String getPathInfo()

Specified by:
getPathInfo in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getPathInfo()

getPathTranslated

public String getPathTranslated()

Specified by:
getPathTranslated in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getPathTranslated()

getQueryString

public String getQueryString()

Specified by:
getQueryString in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getQueryString()

getRemoteUser

public String getRemoteUser()

Specified by:
getRemoteUser in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getRemoteUser()

getRequestURI

public String getRequestURI()

Specified by:
getRequestURI in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getRequestURI()

getRequestedSessionId

public String getRequestedSessionId()

Specified by:
getRequestedSessionId in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getRequestedSessionId()

getServletPath

public String getServletPath()

Specified by:
getServletPath in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getServletPath()

getSession

public javax.servlet.http.HttpSession getSession(boolean a)

Specified by:
getSession in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getSession(boolean)

isRequestedSessionIdValid

public boolean isRequestedSessionIdValid()

Specified by:
isRequestedSessionIdValid in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.isRequestedSessionIdValid()

getAttribute

public Object getAttribute(String a)

Specified by:
getAttribute in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getAttribute(java.lang.String)

getCharacterEncoding

public String getCharacterEncoding()

Specified by:
getCharacterEncoding in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getCharacterEncoding()

getContentLength

public int getContentLength()

Specified by:
getContentLength in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getContentLength()

getContentType

public String getContentType()

Specified by:
getContentType in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getContentType()

getInputStream

public javax.servlet.ServletInputStream getInputStream()
                                                throws IOException

Specified by:
getInputStream in interface javax.servlet.ServletRequest
Throws:
IOException
See Also:
ServletRequest.getInputStream()

getParameter

public String getParameter(String a)

Specified by:
getParameter in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getParameter(java.lang.String)

getParameterNames

public Enumeration<String> getParameterNames()

Specified by:
getParameterNames in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getParameterNames()

getParameterValues

public String[] getParameterValues(String a)

Specified by:
getParameterValues in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getParameterValues(java.lang.String)

getProtocol

public String getProtocol()

Specified by:
getProtocol in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getProtocol()

getReader

public BufferedReader getReader()
                         throws IOException

Specified by:
getReader in interface javax.servlet.ServletRequest
Throws:
IOException
See Also:
ServletRequest.getReader()

getRemoteAddr

public String getRemoteAddr()

Specified by:
getRemoteAddr in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getRemoteAddr()

getRemoteHost

public String getRemoteHost()

Specified by:
getRemoteHost in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getRemoteHost()

getScheme

public String getScheme()

Specified by:
getScheme in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getScheme()

getServerName

public String getServerName()

Specified by:
getServerName in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getServerName()

getServerPort

public int getServerPort()

Specified by:
getServerPort in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getServerPort()

isRequestedSessionIdFromCookie

public boolean isRequestedSessionIdFromCookie()

Specified by:
isRequestedSessionIdFromCookie in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.isRequestedSessionIdFromCookie()

isRequestedSessionIdFromUrl

public boolean isRequestedSessionIdFromUrl()
Deprecated. Servlet API 2.1

Specified by:
isRequestedSessionIdFromUrl in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.isRequestedSessionIdFromUrl()

getRealPath

public String getRealPath(String a)
Deprecated. Servlet API 2.1

Specified by:
getRealPath in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getRealPath(java.lang.String)

getUserPrincipal

public Principal getUserPrincipal()

Specified by:
getUserPrincipal in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getUserPrincipal()

getContextPath

public String getContextPath()

Specified by:
getContextPath in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getContextPath()

getHeaders

public Enumeration<String> getHeaders(String name)

Specified by:
getHeaders in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getHeaders(java.lang.String)

getSession

public javax.servlet.http.HttpSession getSession()

Specified by:
getSession in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getSession()

isRequestedSessionIdFromURL

public boolean isRequestedSessionIdFromURL()

Specified by:
isRequestedSessionIdFromURL in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.isRequestedSessionIdFromURL()

isUserInRole

public boolean isUserInRole(String a)

Specified by:
isUserInRole in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.isUserInRole(java.lang.String)

getAttributeNames

public Enumeration<String> getAttributeNames()

Specified by:
getAttributeNames in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getAttributeNames()

getLocale

public Locale getLocale()

Specified by:
getLocale in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getLocale()

getLocales

public Enumeration<Locale> getLocales()

Specified by:
getLocales in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getLocales()

getRequestDispatcher

public javax.servlet.RequestDispatcher getRequestDispatcher(String arg)

Specified by:
getRequestDispatcher in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getRequestDispatcher(java.lang.String)

isSecure

public boolean isSecure()

Specified by:
isSecure in interface javax.servlet.ServletRequest
See Also:
ServletRequest.isSecure()

removeAttribute

public void removeAttribute(String arg)

Specified by:
removeAttribute in interface javax.servlet.ServletRequest
See Also:
ServletRequest.removeAttribute(java.lang.String)

setAttribute

public void setAttribute(String arg1,
                         Object arg2)

Specified by:
setAttribute in interface javax.servlet.ServletRequest
See Also:
ServletRequest.setAttribute(java.lang.String, java.lang.Object)

getRequestURL

public StringBuffer getRequestURL()

Specified by:
getRequestURL in interface javax.servlet.http.HttpServletRequest
See Also:
HttpServletRequest.getRequestURL()

setCharacterEncoding

public void setCharacterEncoding(String s)
                          throws UnsupportedEncodingException

Specified by:
setCharacterEncoding in interface javax.servlet.ServletRequest
Throws:
UnsupportedEncodingException
See Also:
ServletRequest.setCharacterEncoding(java.lang.String)

getParameterMap

public Map<String,String[]> getParameterMap()

Specified by:
getParameterMap in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getParameterMap()

getLocalAddr

public String getLocalAddr()

Specified by:
getLocalAddr in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getLocalAddr()

getLocalName

public String getLocalName()

Specified by:
getLocalName in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getLocalName()

getLocalPort

public int getLocalPort()

Specified by:
getLocalPort in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getLocalPort()

getRemotePort

public int getRemotePort()

Specified by:
getRemotePort in interface javax.servlet.ServletRequest
See Also:
ServletRequest.getRemotePort()


Copyright © 2000-2010 PanEris. All Rights Reserved.