Java Doc for ServletRequestWrapper.java in  » 6.0-JDK-Core » Servlet-API-by-tomcat » javax » servlet » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » Servlet API by tomcat » javax.servlet 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.servlet.ServletRequestWrapper

All known Subclasses:   javax.servlet.http.HttpServletRequestWrapper,
ServletRequestWrapper
public class ServletRequestWrapper implements ServletRequest(Code)
Provides a convenient implementation of the ServletRequest interface that can be subclassed by developers wishing to adapt the request to a Servlet. This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped request object.
since:
   v 2.3
See Also:   javax.servlet.ServletRequest



Constructor Summary
public  ServletRequestWrapper(ServletRequest request)
     Creates a ServletRequest adaptor wrapping the given request object.

Method Summary
public  ObjectgetAttribute(String name)
     The default behavior of this method is to call getAttribute(String name) on the wrapped request object.
public  EnumerationgetAttributeNames()
     The default behavior of this method is to return getAttributeNames() on the wrapped request object.
public  StringgetCharacterEncoding()
     The default behavior of this method is to return getCharacterEncoding() on the wrapped request object.
public  intgetContentLength()
     The default behavior of this method is to return getContentLength() on the wrapped request object.
public  StringgetContentType()
     The default behavior of this method is to return getContentType() on the wrapped request object.
public  ServletInputStreamgetInputStream()
     The default behavior of this method is to return getInputStream() on the wrapped request object.
public  StringgetLocalAddr()
     The default behavior of this method is to return getLocalAddr() on the wrapped request object.
public  StringgetLocalName()
     The default behavior of this method is to return getLocalName() on the wrapped request object.
public  intgetLocalPort()
     The default behavior of this method is to return getLocalPort() on the wrapped request object.
public  LocalegetLocale()
     The default behavior of this method is to return getLocale() on the wrapped request object.
public  EnumerationgetLocales()
     The default behavior of this method is to return getLocales() on the wrapped request object.
public  StringgetParameter(String name)
     The default behavior of this method is to return getParameter(String name) on the wrapped request object.
public  MapgetParameterMap()
     The default behavior of this method is to return getParameterMap() on the wrapped request object.
public  EnumerationgetParameterNames()
     The default behavior of this method is to return getParameterNames() on the wrapped request object.
public  String[]getParameterValues(String name)
     The default behavior of this method is to return getParameterValues(String name) on the wrapped request object.
public  StringgetProtocol()
     The default behavior of this method is to return getProtocol() on the wrapped request object.
public  BufferedReadergetReader()
     The default behavior of this method is to return getReader() on the wrapped request object.
public  StringgetRealPath(String path)
     The default behavior of this method is to return getRealPath(String path) on the wrapped request object.
public  StringgetRemoteAddr()
     The default behavior of this method is to return getRemoteAddr() on the wrapped request object.
public  StringgetRemoteHost()
     The default behavior of this method is to return getRemoteHost() on the wrapped request object.
public  intgetRemotePort()
     The default behavior of this method is to return getRemotePort() on the wrapped request object.
public  ServletRequestgetRequest()
     Return the wrapped request object.
public  RequestDispatchergetRequestDispatcher(String path)
     The default behavior of this method is to return getRequestDispatcher(String path) on the wrapped request object.
public  StringgetScheme()
     The default behavior of this method is to return getScheme() on the wrapped request object.
public  StringgetServerName()
     The default behavior of this method is to return getServerName() on the wrapped request object.
public  intgetServerPort()
     The default behavior of this method is to return getServerPort() on the wrapped request object.
public  booleanisSecure()
     The default behavior of this method is to return isSecure() on the wrapped request object.
public  voidremoveAttribute(String name)
     The default behavior of this method is to call removeAttribute(String name) on the wrapped request object.
public  voidsetAttribute(String name, Object o)
     The default behavior of this method is to return setAttribute(String name, Object o) on the wrapped request object.
public  voidsetCharacterEncoding(String enc)
     The default behavior of this method is to set the character encoding on the wrapped request object.
public  voidsetRequest(ServletRequest request)
     Sets the request object being wrapped.


Constructor Detail
ServletRequestWrapper
public ServletRequestWrapper(ServletRequest request)(Code)
Creates a ServletRequest adaptor wrapping the given request object.
throws:
  java.lang.IllegalArgumentException - if the request is null




Method Detail
getAttribute
public Object getAttribute(String name)(Code)
The default behavior of this method is to call getAttribute(String name) on the wrapped request object.



getAttributeNames
public Enumeration getAttributeNames()(Code)
The default behavior of this method is to return getAttributeNames() on the wrapped request object.



getCharacterEncoding
public String getCharacterEncoding()(Code)
The default behavior of this method is to return getCharacterEncoding() on the wrapped request object.



getContentLength
public int getContentLength()(Code)
The default behavior of this method is to return getContentLength() on the wrapped request object.



getContentType
public String getContentType()(Code)
The default behavior of this method is to return getContentType() on the wrapped request object.



getInputStream
public ServletInputStream getInputStream() throws IOException(Code)
The default behavior of this method is to return getInputStream() on the wrapped request object.



getLocalAddr
public String getLocalAddr()(Code)
The default behavior of this method is to return getLocalAddr() on the wrapped request object.
since:
   2.4



getLocalName
public String getLocalName()(Code)
The default behavior of this method is to return getLocalName() on the wrapped request object.
since:
   2.4



getLocalPort
public int getLocalPort()(Code)
The default behavior of this method is to return getLocalPort() on the wrapped request object.
since:
   2.4



getLocale
public Locale getLocale()(Code)
The default behavior of this method is to return getLocale() on the wrapped request object.



getLocales
public Enumeration getLocales()(Code)
The default behavior of this method is to return getLocales() on the wrapped request object.



getParameter
public String getParameter(String name)(Code)
The default behavior of this method is to return getParameter(String name) on the wrapped request object.



getParameterMap
public Map getParameterMap()(Code)
The default behavior of this method is to return getParameterMap() on the wrapped request object.



getParameterNames
public Enumeration getParameterNames()(Code)
The default behavior of this method is to return getParameterNames() on the wrapped request object.



getParameterValues
public String[] getParameterValues(String name)(Code)
The default behavior of this method is to return getParameterValues(String name) on the wrapped request object.



getProtocol
public String getProtocol()(Code)
The default behavior of this method is to return getProtocol() on the wrapped request object.



getReader
public BufferedReader getReader() throws IOException(Code)
The default behavior of this method is to return getReader() on the wrapped request object.



getRealPath
public String getRealPath(String path)(Code)
The default behavior of this method is to return getRealPath(String path) on the wrapped request object.



getRemoteAddr
public String getRemoteAddr()(Code)
The default behavior of this method is to return getRemoteAddr() on the wrapped request object.



getRemoteHost
public String getRemoteHost()(Code)
The default behavior of this method is to return getRemoteHost() on the wrapped request object.



getRemotePort
public int getRemotePort()(Code)
The default behavior of this method is to return getRemotePort() on the wrapped request object.
since:
   2.4



getRequest
public ServletRequest getRequest()(Code)
Return the wrapped request object.



getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String path)(Code)
The default behavior of this method is to return getRequestDispatcher(String path) on the wrapped request object.



getScheme
public String getScheme()(Code)
The default behavior of this method is to return getScheme() on the wrapped request object.



getServerName
public String getServerName()(Code)
The default behavior of this method is to return getServerName() on the wrapped request object.



getServerPort
public int getServerPort()(Code)
The default behavior of this method is to return getServerPort() on the wrapped request object.



isSecure
public boolean isSecure()(Code)
The default behavior of this method is to return isSecure() on the wrapped request object.



removeAttribute
public void removeAttribute(String name)(Code)
The default behavior of this method is to call removeAttribute(String name) on the wrapped request object.



setAttribute
public void setAttribute(String name, Object o)(Code)
The default behavior of this method is to return setAttribute(String name, Object o) on the wrapped request object.



setCharacterEncoding
public void setCharacterEncoding(String enc) throws java.io.UnsupportedEncodingException(Code)
The default behavior of this method is to set the character encoding on the wrapped request object.



setRequest
public void setRequest(ServletRequest request)(Code)
Sets the request object being wrapped.
throws:
  java.lang.IllegalArgumentException - if the request is null.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.