Java Doc for ServletRequestWrapper.java in  » Sevlet-Container » apache-tomcat-6.0.14 » javax » servlet » Java Source Code / Java DocumentationJava Source Code and Java Documentation

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 geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Sevlet Container » apache tomcat 6.0.14 » javax.servlet 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.servlet.ServletRequestWrapper

All known Subclasses:   org.apache.catalina.core.ApplicationRequest,  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.