Java Doc for ApplicationHttpRequest.java in  » Sevlet-Container » tomcat-catalina » org » apache » catalina » core » 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 » tomcat catalina » org.apache.catalina.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.servlet.http.HttpServletRequestWrapper
   org.apache.catalina.core.ApplicationHttpRequest

ApplicationHttpRequest
class ApplicationHttpRequest extends HttpServletRequestWrapper (Code)
Wrapper around a javax.servlet.http.HttpServletRequest that transforms an application request object (which might be the original one passed to a servlet, or might be based on the 2.3 javax.servlet.http.HttpServletRequestWrapper class) back into an internal org.apache.catalina.HttpRequest.

WARNING: Due to Java's lack of support for multiple inheritance, all of the logic in ApplicationRequest is duplicated in ApplicationHttpRequest. Make sure that you keep these two classes in synchronization when making changes!
author:
   Craig R. McClanahan
author:
   Remy Maucherat
version:
   $Revision: 1.21 $ $Date: 2004/03/12 19:45:43 $


Inner Class :protected class AttributeNamesEnumerator implements Enumeration

Field Summary
protected  Contextcontext
     The context for this request.
protected  StringcontextPath
     The context path for this request.
protected  booleancrossContext
     If this request is cross context, since this changes session accesss behavior.
protected  ObjectdispatcherType
     The current dispatcher type.
final protected static  Stringinfo
     Descriptive information about this implementation.
protected  Mapparameters
     The request parameters for this request.
protected  StringpathInfo
     The path information for this request.
protected  StringqueryString
     The query string for this request.
protected  ObjectrequestDispatcherPath
     The current request dispatcher path.
protected  StringrequestURI
     The request URI for this request.
protected  StringservletPath
     The servlet path for this request.
protected  Sessionsession
     The currently active session for this request.
protected static  StringManagersm
     The string manager for this package.
protected  Object[]specialAttributes
     Special attributes.
final protected static  Stringspecials
     The set of attribute names that are special for request dispatchers.

Constructor Summary
public  ApplicationHttpRequest(HttpServletRequest request, Context context, boolean crossContext)
     Construct a new wrapped request around the specified servlet request.

Method Summary
 MapcopyMap(Map orig)
     Perform a shallow copy of the specified Map, and return the result.
public  ObjectgetAttribute(String name)
     Override the getAttribute() method of the wrapped request.
public  EnumerationgetAttributeNames()
     Override the getAttributeNames() method of the wrapped request.
public  StringgetContextPath()
     Override the getContextPath() method of the wrapped request.
public  StringgetInfo()
     Return descriptive information about this implementation.
public  StringgetParameter(String name)
     Override the getParameter() method of the wrapped request.
public  MapgetParameterMap()
     Override the getParameterMap() method of the wrapped request.
public  EnumerationgetParameterNames()
     Override the getParameterNames() method of the wrapped request.
public  String[]getParameterValues(String name)
     Override the getParameterValues() method of the wrapped request.
public  StringgetPathInfo()
     Override the getPathInfo() method of the wrapped request.
public  StringgetQueryString()
     Override the getQueryString() method of the wrapped request.
public  RequestDispatchergetRequestDispatcher(String path)
     Return a RequestDispatcher that wraps the resource at the specified path, which may be interpreted as relative to the current request path.
public  StringgetRequestURI()
     Override the getRequestURI() method of the wrapped request.
public  StringgetServletPath()
     Override the getServletPath() method of the wrapped request.
public  HttpSessiongetSession()
     Return the session associated with this Request, creating one if necessary.
public  HttpSessiongetSession(boolean create)
     Return the session associated with this Request, creating one if necessary and requested.
protected  intgetSpecial(String name)
     Get a special attribute.
protected  booleanisSpecial(String name)
    
protected  String[]mergeValues(Object values1, Object values2)
     Merge the two sets of parameter values into a single String array.
 voidparseParameters()
     Parses the parameters of this request.
public  voidrecycle()
    
public  voidremoveAttribute(String name)
     Override the removeAttribute() method of the wrapped request.
protected  booleanremoveSpecial(String name)
     Remove a special attribute.
public  voidsetAttribute(String name, Object value)
     Override the setAttribute() method of the wrapped request.
 voidsetContextPath(String contextPath)
     Set the context path for this request.
 voidsetPathInfo(String pathInfo)
     Set the path information for this request.
 voidsetQueryParams(String queryString)
     Save query parameters for this request.
 voidsetQueryString(String queryString)
     Set the query string for this request.
 voidsetRequest(HttpServletRequest request)
     Set the request that we are wrapping.
 voidsetRequestURI(String requestURI)
     Set the request URI for this request.
 voidsetServletPath(String servletPath)
     Set the servlet path for this request.
protected  booleansetSpecial(String name, Object value)
     Set a special attribute.

Field Detail
context
protected Context context(Code)
The context for this request.



contextPath
protected String contextPath(Code)
The context path for this request.



crossContext
protected boolean crossContext(Code)
If this request is cross context, since this changes session accesss behavior.



dispatcherType
protected Object dispatcherType(Code)
The current dispatcher type.



info
final protected static String info(Code)
Descriptive information about this implementation.



parameters
protected Map parameters(Code)
The request parameters for this request. This is initialized from the wrapped request, but updates are allowed.



pathInfo
protected String pathInfo(Code)
The path information for this request.



queryString
protected String queryString(Code)
The query string for this request.



requestDispatcherPath
protected Object requestDispatcherPath(Code)
The current request dispatcher path.



requestURI
protected String requestURI(Code)
The request URI for this request.



servletPath
protected String servletPath(Code)
The servlet path for this request.



session
protected Session session(Code)
The currently active session for this request.



sm
protected static StringManager sm(Code)
The string manager for this package.



specialAttributes
protected Object[] specialAttributes(Code)
Special attributes.



specials
final protected static String specials(Code)
The set of attribute names that are special for request dispatchers.




Constructor Detail
ApplicationHttpRequest
public ApplicationHttpRequest(HttpServletRequest request, Context context, boolean crossContext)(Code)
Construct a new wrapped request around the specified servlet request.
Parameters:
  request - The servlet request being wrapped




Method Detail
copyMap
Map copyMap(Map orig)(Code)
Perform a shallow copy of the specified Map, and return the result.
Parameters:
  orig - Origin Map to be copied



getAttribute
public Object getAttribute(String name)(Code)
Override the getAttribute() method of the wrapped request.
Parameters:
  name - Name of the attribute to retrieve



getAttributeNames
public Enumeration getAttributeNames()(Code)
Override the getAttributeNames() method of the wrapped request.



getContextPath
public String getContextPath()(Code)
Override the getContextPath() method of the wrapped request.



getInfo
public String getInfo()(Code)
Return descriptive information about this implementation.



getParameter
public String getParameter(String name)(Code)
Override the getParameter() method of the wrapped request.
Parameters:
  name - Name of the requested parameter



getParameterMap
public Map getParameterMap()(Code)
Override the getParameterMap() method of the wrapped request.



getParameterNames
public Enumeration getParameterNames()(Code)
Override the getParameterNames() method of the wrapped request.



getParameterValues
public String[] getParameterValues(String name)(Code)
Override the getParameterValues() method of the wrapped request.
Parameters:
  name - Name of the requested parameter



getPathInfo
public String getPathInfo()(Code)
Override the getPathInfo() method of the wrapped request.



getQueryString
public String getQueryString()(Code)
Override the getQueryString() method of the wrapped request.



getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String path)(Code)
Return a RequestDispatcher that wraps the resource at the specified path, which may be interpreted as relative to the current request path.
Parameters:
  path - Path of the resource to be wrapped



getRequestURI
public String getRequestURI()(Code)
Override the getRequestURI() method of the wrapped request.



getServletPath
public String getServletPath()(Code)
Override the getServletPath() method of the wrapped request.



getSession
public HttpSession getSession()(Code)
Return the session associated with this Request, creating one if necessary.



getSession
public HttpSession getSession(boolean create)(Code)
Return the session associated with this Request, creating one if necessary and requested.
Parameters:
  create - Create a new session if one does not exist



getSpecial
protected int getSpecial(String name)(Code)
Get a special attribute. the special attribute pos, or -1 if it is not a special attribute



isSpecial
protected boolean isSpecial(String name)(Code)
Is this attribute name one of the special ones that is added only for included servlets?
Parameters:
  name - Attribute name to be tested



mergeValues
protected String[] mergeValues(Object values1, Object values2)(Code)
Merge the two sets of parameter values into a single String array.
Parameters:
  values1 - First set of values
Parameters:
  values2 - Second set of values



parseParameters
void parseParameters()(Code)
Parses the parameters of this request. If parameters are present in both the query string and the request content, they are merged.



recycle
public void recycle()(Code)
Recycle this request



removeAttribute
public void removeAttribute(String name)(Code)
Override the removeAttribute() method of the wrapped request.
Parameters:
  name - Name of the attribute to remove



removeSpecial
protected boolean removeSpecial(String name)(Code)
Remove a special attribute. true if the attribute was a special attribute, false otherwise



setAttribute
public void setAttribute(String name, Object value)(Code)
Override the setAttribute() method of the wrapped request.
Parameters:
  name - Name of the attribute to set
Parameters:
  value - Value of the attribute to set



setContextPath
void setContextPath(String contextPath)(Code)
Set the context path for this request.
Parameters:
  contextPath - The new context path



setPathInfo
void setPathInfo(String pathInfo)(Code)
Set the path information for this request.
Parameters:
  pathInfo - The new path info



setQueryParams
void setQueryParams(String queryString)(Code)
Save query parameters for this request.
Parameters:
  queryString - The query string containing parameters for thisrequest



setQueryString
void setQueryString(String queryString)(Code)
Set the query string for this request.
Parameters:
  queryString - The new query string



setRequest
void setRequest(HttpServletRequest request)(Code)
Set the request that we are wrapping.
Parameters:
  request - The new wrapped request



setRequestURI
void setRequestURI(String requestURI)(Code)
Set the request URI for this request.
Parameters:
  requestURI - The new request URI



setServletPath
void setServletPath(String servletPath)(Code)
Set the servlet path for this request.
Parameters:
  servletPath - The new servlet path



setSpecial
protected boolean setSpecial(String name, Object value)(Code)
Set a special attribute. true if the attribute was a special attribute, false otherwise



Methods inherited from javax.servlet.http.HttpServletRequestWrapper
public String getAuthType()(Code)(Java Doc)
public String getContextPath()(Code)(Java Doc)
public Cookie[] getCookies()(Code)(Java Doc)
public long getDateHeader(String name)(Code)(Java Doc)
public String getHeader(String name)(Code)(Java Doc)
public Enumeration getHeaderNames()(Code)(Java Doc)
public Enumeration getHeaders(String name)(Code)(Java Doc)
public int getIntHeader(String name)(Code)(Java Doc)
public String getMethod()(Code)(Java Doc)
public String getPathInfo()(Code)(Java Doc)
public String getPathTranslated()(Code)(Java Doc)
public String getQueryString()(Code)(Java Doc)
public String getRemoteUser()(Code)(Java Doc)
public String getRequestURI()(Code)(Java Doc)
public StringBuffer getRequestURL()(Code)(Java Doc)
public String getRequestedSessionId()(Code)(Java Doc)
public String getServletPath()(Code)(Java Doc)
public HttpSession getSession(boolean create)(Code)(Java Doc)
public HttpSession getSession()(Code)(Java Doc)
public java.security.Principal getUserPrincipal()(Code)(Java Doc)
public boolean isRequestedSessionIdFromCookie()(Code)(Java Doc)
public boolean isRequestedSessionIdFromURL()(Code)(Java Doc)
public boolean isRequestedSessionIdFromUrl()(Code)(Java Doc)
public boolean isRequestedSessionIdValid()(Code)(Java Doc)
public boolean isUserInRole(String role)(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.