Java Doc for HttpRequestWrapper.java in  » Web-Server » Rimfaxe-Web-Server » org » apache » catalina » connector » 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 » Web Server » Rimfaxe Web Server » org.apache.catalina.connector 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.catalina.connector.RequestWrapper
      org.apache.catalina.connector.HttpRequestWrapper

HttpRequestWrapper
abstract public class HttpRequestWrapper extends RequestWrapper implements HttpRequest(Code)
Abstract convenience class that wraps a Catalina-internal HttpRequest object. By default, all methods are delegated to the wrapped request, but subclasses can override individual methods as required to provide the functionality that they require.
author:
   Craig R. McClanahan
version:
   $Revision: 1.3 $ $Date: 2002/03/18 07:15:39 $



Constructor Summary
public  HttpRequestWrapper(HttpRequest request)
     Construct a wrapper for the specified request.

Method Summary
public  voidaddCookie(Cookie cookie)
     Add a Cookie to the set of Cookies associated with this Request.
public  voidaddHeader(String name, String value)
     Add a Header to the set of Headers associated with this Request.
public  voidaddLocale(Locale locale)
     Add a Locale to the set of preferred Locales for this Request.
public  voidclearCookies()
     Clear the collection of Cookies associated with this Request.
public  voidclearHeaders()
     Clear the collection of Headers associated with this Request.
public  voidclearLocales()
     Clear the collection of Locales associated with this Request.
public  voidsetAuthType(String type)
     Set the authentication type used for this request, if any; otherwise set the type to null.
public  voidsetContextPath(String path)
     Set the context path for this Request.
public  voidsetMethod(String method)
     Set the HTTP request method used for this Request.
public  voidsetPathInfo(String path)
     Set the path information for this Request.
public  voidsetQueryString(String query)
     Set the query string for this Request.
public  voidsetRequestURI(String uri)
     Set the unparsed request URI for this Request.
public  voidsetRequestedSessionCookie(boolean flag)
     Set a flag indicating whether or not the requested session ID for this request came in through a cookie.
public  voidsetRequestedSessionId(String id)
     Set the requested session ID for this request.
public  voidsetRequestedSessionURL(boolean flag)
     Set a flag indicating whether or not the requested session ID for this request came in through a URL.
public  voidsetServletPath(String path)
     Set the servlet path for this Request.
public  voidsetUserPrincipal(Principal principal)
     Set the Principal who has been authenticated for this Request.


Constructor Detail
HttpRequestWrapper
public HttpRequestWrapper(HttpRequest request)(Code)
Construct a wrapper for the specified request.
Parameters:
  request - The request to be wrapped




Method Detail
addCookie
public void addCookie(Cookie cookie)(Code)
Add a Cookie to the set of Cookies associated with this Request.
Parameters:
  cookie - The new cookie



addHeader
public void addHeader(String name, String value)(Code)
Add a Header to the set of Headers associated with this Request.
Parameters:
  name - The new header name
Parameters:
  value - The new header value



addLocale
public void addLocale(Locale locale)(Code)
Add a Locale to the set of preferred Locales for this Request. The first added Locale will be the first one returned by getLocales().
Parameters:
  locale - The new preferred Locale



clearCookies
public void clearCookies()(Code)
Clear the collection of Cookies associated with this Request.



clearHeaders
public void clearHeaders()(Code)
Clear the collection of Headers associated with this Request.



clearLocales
public void clearLocales()(Code)
Clear the collection of Locales associated with this Request.



setAuthType
public void setAuthType(String type)(Code)
Set the authentication type used for this request, if any; otherwise set the type to null. Typical values are "BASIC", "DIGEST", or "SSL".
Parameters:
  type - The authentication type used



setContextPath
public void setContextPath(String path)(Code)
Set the context path for this Request. This will normally be called when the associated Context is mapping the Request to a particular Wrapper.
Parameters:
  path - The context path



setMethod
public void setMethod(String method)(Code)
Set the HTTP request method used for this Request.
Parameters:
  method - The request method



setPathInfo
public void setPathInfo(String path)(Code)
Set the path information for this Request. This will normally be called when the associated Context is mapping the Request to a particular Wrapper.
Parameters:
  path - The path information



setQueryString
public void setQueryString(String query)(Code)
Set the query string for this Request. This will normally be called by the HTTP Connector, when it parses the request headers.
Parameters:
  query - The query string



setRequestURI
public void setRequestURI(String uri)(Code)
Set the unparsed request URI for this Request. This will normally be called by the HTTP Connector, when it parses the request headers.
Parameters:
  uri - The request URI



setRequestedSessionCookie
public void setRequestedSessionCookie(boolean flag)(Code)
Set a flag indicating whether or not the requested session ID for this request came in through a cookie. This is normally called by the HTTP Connector, when it parses the request headers.
Parameters:
  flag - The new flag



setRequestedSessionId
public void setRequestedSessionId(String id)(Code)
Set the requested session ID for this request. This is normally called by the HTTP Connector, when it parses the request headers.
Parameters:
  id - The new session id



setRequestedSessionURL
public void setRequestedSessionURL(boolean flag)(Code)
Set a flag indicating whether or not the requested session ID for this request came in through a URL. This is normally called by the HTTP Connector, when it parses the request headers.
Parameters:
  flag - The new flag



setServletPath
public void setServletPath(String path)(Code)
Set the servlet path for this Request. This will normally be called when the associated Context is mapping the Request to a particular Wrapper.
Parameters:
  path - The servlet path



setUserPrincipal
public void setUserPrincipal(Principal principal)(Code)
Set the Principal who has been authenticated for this Request. This value is also used to calculate the value to be returned by the getRemoteUser() method.
Parameters:
  principal - The user Principal



Fields inherited from org.apache.catalina.connector.RequestWrapper
protected Request request(Code)(Java Doc)

Methods inherited from org.apache.catalina.connector.RequestWrapper
public ServletInputStream createInputStream() throws IOException(Code)(Java Doc)
public void finishRequest() throws IOException(Code)(Java Doc)
public String getAuthorization()(Code)(Java Doc)
public Connector getConnector()(Code)(Java Doc)
public Context getContext()(Code)(Java Doc)
public String getInfo()(Code)(Java Doc)
public ServletRequest getRequest()(Code)(Java Doc)
public Response getResponse()(Code)(Java Doc)
public Socket getSocket()(Code)(Java Doc)
public InputStream getStream()(Code)(Java Doc)
public Request getWrappedRequest()(Code)(Java Doc)
public Wrapper getWrapper()(Code)(Java Doc)
public void recycle()(Code)(Java Doc)
public void setAuthorization(String authorization)(Code)(Java Doc)
public void setConnector(Connector connector)(Code)(Java Doc)
public void setContentLength(int length)(Code)(Java Doc)
public void setContentType(String type)(Code)(Java Doc)
public void setContext(Context context)(Code)(Java Doc)
public void setProtocol(String protocol)(Code)(Java Doc)
public void setRemoteAddr(String remote)(Code)(Java Doc)
public void setResponse(Response response)(Code)(Java Doc)
public void setScheme(String scheme)(Code)(Java Doc)
public void setSecure(boolean secure)(Code)(Java Doc)
public void setServerName(String name)(Code)(Java Doc)
public void setServerPort(int port)(Code)(Java Doc)
public void setSocket(Socket socket)(Code)(Java Doc)
public void setStream(InputStream stream)(Code)(Java Doc)
public void setWrapper(Wrapper wrapper)(Code)(Java Doc)

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.