deegree 2.2 (2008/12/22 11:33 build-3038-official)

org.deegree.enterprise.servlet
Class ServletRequestWrapper

java.lang.Object
  extended by javax.servlet.ServletRequestWrapper
      extended by javax.servlet.http.HttpServletRequestWrapper
          extended by org.deegree.enterprise.servlet.ServletRequestWrapper
All Implemented Interfaces:
HttpServletRequest, ServletRequest

public class ServletRequestWrapper
extends HttpServletRequestWrapper

TODO describe function and usage of the class here.

Version:
$Revision: 9338 $, $Date: 23.05.2007 18:09:52$
Author:
Andreas Poth, last edited by: $Author: mays$

Field Summary
(package private) static ResourceBundle RESOURCE_BUNDLE
           
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
ServletRequestWrapper(HttpServletRequest request)
           
 
Method Summary
 ServletInputStream getInputStream()
           
 String getParameter(String key)
           
 Map getParameterMap()
           
 String[] getParameterValues(String arg0)
           
 String getQueryString()
           
 BufferedReader getReader()
           
 Principal getUserPrincipal()
           
 void setInputStreamAsByteArray(byte[] b)
          sets the content of the inputstream returned by the
 void setParameter(Map<String,String> param)
           
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterNames, 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, getContentLength, getContentType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterNames, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Field Detail

RESOURCE_BUNDLE

static final ResourceBundle RESOURCE_BUNDLE
Constructor Detail

ServletRequestWrapper

public ServletRequestWrapper(HttpServletRequest request)
Parameters:
request -
Method Detail

getParameterMap

public Map getParameterMap()
Specified by:
getParameterMap in interface ServletRequest
Overrides:
getParameterMap in class ServletRequestWrapper

getParameter

public String getParameter(String key)
Specified by:
getParameter in interface ServletRequest
Overrides:
getParameter in class ServletRequestWrapper

getParameterValues

public String[] getParameterValues(String arg0)
Specified by:
getParameterValues in interface ServletRequest
Overrides:
getParameterValues in class ServletRequestWrapper

setParameter

public void setParameter(Map<String,String> param)
Parameters:
param -

getQueryString

public String getQueryString()
Specified by:
getQueryString in interface HttpServletRequest
Overrides:
getQueryString in class HttpServletRequestWrapper

setInputStreamAsByteArray

public void setInputStreamAsByteArray(byte[] b)
sets the content of the inputstream returned by the

Parameters:
b -
See Also:
and the, method as a byte array. Calling this method will override the content that may has been read from the HttpServletRequest that has been passed to the constructor

getReader

public BufferedReader getReader()
                         throws IOException
Specified by:
getReader in interface ServletRequest
Overrides:
getReader in class ServletRequestWrapper
Throws:
IOException

getInputStream

public ServletInputStream getInputStream()
                                  throws IOException
Specified by:
getInputStream in interface ServletRequest
Overrides:
getInputStream in class ServletRequestWrapper
Throws:
IOException
See Also:
ServletRequest.getInputStream()

getUserPrincipal

public Principal getUserPrincipal()
Specified by:
getUserPrincipal in interface HttpServletRequest
Overrides:
getUserPrincipal in class HttpServletRequestWrapper

deegree 2.2 (2008/12/22 11:33 build-3038-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net