Java Doc for WebRequestContext.java in  » Forum » JForum-2.1.8 » net » jforum » context » web » 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 » Forum » JForum 2.1.8 » net.jforum.context.web 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.servlet.http.HttpServletRequestWrapper
   net.jforum.context.web.WebRequestContext

All known Subclasses:   net.jforum.http.FakeActionServletRequest,
WebRequestContext
public class WebRequestContext extends HttpServletRequestWrapper implements RequestContext(Code)

author:
   Rafael Steil
version:
   $Id: WebRequestContext.java,v 1.14 2007/09/25 23:38:48 rafaelsteil Exp $



Constructor Summary
public  WebRequestContext(HttpServletRequest superRequest)
     Default constructor.

Method Summary
public  voidaddOrReplaceParameter(String name, Object value)
    
public  voidaddParameter(String name, Object value)
    
public  voidchangeAction(String newAction)
    
public  StringgetAction()
     Gets the action of the current request. An Action is the parameter name which specifies what next action should be done by the system.
public  StringgetContextPath()
    
public  intgetIntParameter(String parameter)
     Gets an parameter that is a number.
public  StringgetModule()
     Gets the module of the current request. A Module is the parameter name which specifies what module the user is requesting.
public  ObjectgetObjectParameter(String parameter)
     Gets some request parameter as Object. This method may be used when you have to get some value of a multipart/form-data request, like a image of file.
public  ObjectgetObjectRequestParameter(String parameter)
    
public  StringgetParameter(String parameter)
    
public  String[]getParameterValues(String name)
    
public  StringgetRemoteAddr()
    
public  SessionContextgetSessionContext(boolean create)
    
public  SessionContextgetSessionContext()
    


Constructor Detail
WebRequestContext
public WebRequestContext(HttpServletRequest superRequest) throws IOException(Code)
Default constructor.
Parameters:
  superRequest - Original HttpServletRequest instance
throws:
  IOException -




Method Detail
addOrReplaceParameter
public void addOrReplaceParameter(String name, Object value)(Code)



addParameter
public void addParameter(String name, Object value)(Code)



changeAction
public void changeAction(String newAction)(Code)



getAction
public String getAction()(Code)
Gets the action of the current request. An Action is the parameter name which specifies what next action should be done by the system. It may be add or edit a post, editing the groups, whatever. In the URL, the Action can the represented in two forms:

http://www.host.com/webapp/servletName?module=groups&action=list

or

http://www.host.com/webapp/servletName/groups/list

In both situations, the action's name is "list". String representing the action name




getContextPath
public String getContextPath()(Code)

See Also:   javax.servlet.http.HttpServletRequestWrapper.getContextPath



getIntParameter
public int getIntParameter(String parameter)(Code)
Gets an parameter that is a number. A call to Integer#parseInt(String) is made to do the conversion
Parameters:
  parameter - The parameter name to get the value int



getModule
public String getModule()(Code)
Gets the module of the current request. A Module is the parameter name which specifies what module the user is requesting. It may be the group administration, the topics or anything else configured module. In the URL, the Module can the represented in two forms:

http://www.host.com/webapp/servletName?module=groups&action=list

or

http://www.host.com/webapp/servletName/groups/list

In both situations, the module's name is "groups". String representing the module name




getObjectParameter
public Object getObjectParameter(String parameter)(Code)
Gets some request parameter as Object. This method may be used when you have to get some value of a multipart/form-data request, like a image of file.

Parameters:
  parameter - String Object



getObjectRequestParameter
public Object getObjectRequestParameter(String parameter)(Code)



getParameter
public String getParameter(String parameter)(Code)

See Also:   javax.servlet.ServletRequest.getParameter(java.lang.String)



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

See Also:   javax.servlet.ServletRequestWrapper.getParameterValues(java.lang.String)



getRemoteAddr
public String getRemoteAddr()(Code)

See Also:   javax.servlet.ServletRequestWrapper.getRemoteAddr



getSessionContext
public SessionContext getSessionContext(boolean create)(Code)



getSessionContext
public SessionContext getSessionContext()(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.