Java Doc for ScopedRequestImpl.java in  » Library » Apache-beehive-1.0.2-src » org » apache » beehive » netui » pageflow » scoping » internal » 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 » Library » Apache beehive 1.0.2 src » org.apache.beehive.netui.pageflow.scoping.internal 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.servlet.http.HttpServletRequestWrapper
   org.apache.beehive.netui.pageflow.scoping.internal.ScopedRequestImpl

ScopedRequestImpl
public class ScopedRequestImpl extends HttpServletRequestWrapper implements ScopedRequest(Code)
A wrapper around HttpServletRequest, associated with a given scope-key. All calls to setAttribute, getAttribute, removeAttribute, etc. are scoped to this object, while most other functionality delegates to the wrapped HttpServletRequest. Instances of this class also keep track of their own request-URIs, which are independent of the wrapped request-URIs.


Field Summary
final static  StringATTR_PREFIX
    

Constructor Summary
public  ScopedRequestImpl(HttpServletRequest req, String overrideRequestURI, Object scopeKey, ServletContext servletContext, boolean seeOuterRequestAttributes)
    
public  ScopedRequestImpl(HttpServletRequest req, String overrideRequestURI, Object scopeKey, ServletContext context)
    

Method Summary
public  voidaddListenScope(Object scopeKey)
     Adds a scope to "listen" to.
public  voidaddParameter(String name, String value)
     Add a parameter to the request.
public  booleandidRedirect()
    
public  voiddoForward()
    
public  MapfilterParameterMap(Map parameterMap)
    
final public  ObjectgetAttribute(String attrName)
    
final public  ObjectgetAttribute(String attrName, boolean allowOuterRequestAttributes)
    
public  MapgetAttributeMap()
     Get the current map of request attributes.
final public  EnumerationgetAttributeNames()
    
public  StringgetForwardedURI()
    
public  StringgetListenScopeParameter(String paramName)
    
public  StringgetLocalParameter(String paramName)
    
final public  HttpServletRequestgetOuterRequest()
    
public  StringgetParameter(String paramName)
    
public  MapgetParameterMap()
    
public  EnumerationgetParameterNames()
    
public  String[]getParameterValues(String paramName)
    
public  StringgetPathInfo()
    
public  RequestDispatchergetRequestDispatcher(String uri)
    
public  StringgetRequestURI()
    
public  StringBuffergetRequestURL()
    
public  StringgetRequestedSessionId()
    
final public  ObjectgetScopeKey()
    
final public  StringgetScopedName(String baseName)
    
public  StringgetServletPath()
    
public  booleanhasListenScopes()
    
public  voidpersistAttributes()
     Stores the current map of request attributes in the Session.
public  voidregisterOuterAttribute(String attrName)
    
final public  voidremoveAttribute(String attrName)
    
public  voidrenameScope(Object newScopeKey)
    
public static  voidrenameSessionScope(Object oldScopeKey, Object newScopeKey, HttpServletRequest outerRequest)
    
public  voidrestoreAttributes()
     Restores the map of request attributes from a map saved in the Session.
public  voidsetActiveRequest()
     Makes this request listen to specially-prefixed request parameters.
final public  voidsetAttribute(String attrName, Object o)
    
public  voidsetAttributeMap(Map savedAttrs)
     Set/merge the map of request attributes from a given map.
public  voidsetForwardedURI(String uri)
     Simply stores the URI that was being forwarded to.
public  voidsetPathInfo(String pathInfo)
    
public  voidsetRequestURI(String uri)
    
public  voidsetRequestURI(String contextPath, String servletPath)
    

Field Detail
ATTR_PREFIX
final static String ATTR_PREFIX(Code)




Constructor Detail
ScopedRequestImpl
public ScopedRequestImpl(HttpServletRequest req, String overrideRequestURI, Object scopeKey, ServletContext servletContext, boolean seeOuterRequestAttributes)(Code)



ScopedRequestImpl
public ScopedRequestImpl(HttpServletRequest req, String overrideRequestURI, Object scopeKey, ServletContext context)(Code)
ScopedRequestImpl.ScopedRequestImpl(HttpServletRequest,String,Object,ServletContext,boolean)




Method Detail
addListenScope
public void addListenScope(Object scopeKey)(Code)
Adds a scope to "listen" to. This scope will see all request parameters from a ScopedRequest of the given scope.



addParameter
public void addParameter(String name, String value)(Code)
Add a parameter to the request.
Parameters:
  name - the parameter name.
Parameters:
  value - the parameter value.



didRedirect
public boolean didRedirect()(Code)
ScopedResponseImpl.didRedirect



doForward
public void doForward()(Code)



filterParameterMap
public Map filterParameterMap(Map parameterMap)(Code)



getAttribute
final public Object getAttribute(String attrName)(Code)



getAttribute
final public Object getAttribute(String attrName, boolean allowOuterRequestAttributes)(Code)



getAttributeMap
public Map getAttributeMap()(Code)
Get the current map of request attributes.



getAttributeNames
final public Enumeration getAttributeNames()(Code)



getForwardedURI
public String getForwardedURI()(Code)



getListenScopeParameter
public String getListenScopeParameter(String paramName)(Code)
Get the parameter from the listen scoped requests
Parameters:
  paramName - value of the parameter



getLocalParameter
public String getLocalParameter(String paramName)(Code)
Get the parameter from the scoped request only (don't check in listen scoped requests)
Parameters:
  paramName - value of the parameter



getOuterRequest
final public HttpServletRequest getOuterRequest()(Code)



getParameter
public String getParameter(String paramName)(Code)



getParameterMap
public Map getParameterMap()(Code)



getParameterNames
public Enumeration getParameterNames()(Code)



getParameterValues
public String[] getParameterValues(String paramName)(Code)



getPathInfo
public String getPathInfo()(Code)



getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String uri)(Code)



getRequestURI
public String getRequestURI()(Code)



getRequestURL
public StringBuffer getRequestURL()(Code)



getRequestedSessionId
public String getRequestedSessionId()(Code)



getScopeKey
final public Object getScopeKey()(Code)



getScopedName
final public String getScopedName(String baseName)(Code)



getServletPath
public String getServletPath()(Code)



hasListenScopes
public boolean hasListenScopes()(Code)
see if this scoped request is listening to any other scoped request true if has listen scopes



persistAttributes
public void persistAttributes()(Code)
Stores the current map of request attributes in the Session. ScopedRequestImpl.getAttributeMap



registerOuterAttribute
public void registerOuterAttribute(String attrName)(Code)



removeAttribute
final public void removeAttribute(String attrName)(Code)



renameScope
public void renameScope(Object newScopeKey)(Code)



renameSessionScope
public static void renameSessionScope(Object oldScopeKey, Object newScopeKey, HttpServletRequest outerRequest)(Code)



restoreAttributes
public void restoreAttributes()(Code)
Restores the map of request attributes from a map saved in the Session. ScopedRequestImpl.setAttributeMap



setActiveRequest
public void setActiveRequest()(Code)
Makes this request listen to specially-prefixed request parameters.



setAttribute
final public void setAttribute(String attrName, Object o)(Code)



setAttributeMap
public void setAttributeMap(Map savedAttrs)(Code)
Set/merge the map of request attributes from a given map. Do not call this method with a null Map.
Parameters:
  savedAttrs - the Map of attributes to set or merge withthe current map of request attributes



setForwardedURI
public void setForwardedURI(String uri)(Code)
Simply stores the URI that was being forwarded to.
Parameters:
  uri -



setPathInfo
public void setPathInfo(String pathInfo)(Code)



setRequestURI
public void setRequestURI(String uri)(Code)



setRequestURI
public void setRequestURI(String contextPath, String servletPath)(Code)



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.