Java Doc for ServletActionContext.java in  » Web-Framework » struts-1.3.8 » org » apache » struts » chain » contexts » 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 Framework » struts 1.3.8 » org.apache.struts.chain.contexts 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.struts.chain.contexts.ContextWrapper
      org.apache.struts.chain.contexts.ActionContextBase
         org.apache.struts.chain.contexts.WebActionContext
            org.apache.struts.chain.contexts.ServletActionContext

ServletActionContext
public class ServletActionContext extends WebActionContext (Code)

Implement ActionContext interface while making Servlet API-specific values available.




Constructor Summary
public  ServletActionContext(ServletWebContext context)
    

Instantiate this composite by wrapping a ServletWebContext.

public  ServletActionContext(ServletContext context, HttpServletRequest request, HttpServletResponse response)
    

Instantiate this Context for a given ServletContext, HttpServletRequest, and HttpServletResponse.


Method Summary
public  voidaddErrors(ActionMessages errors)
    
public  voidaddMessages(ActionMessages messages)
    
public  StringgenerateToken()
    
public  ActionServletgetActionServlet()
    

Return the ActionServlet for this context.

public  ServletContextgetContext()
    

Return the ServletContext for this context.

public  ActionMessagesgetErrors()
    
public  MessageResourcesgetMessageResources()
    
public  MessageResourcesgetMessageResources(String key)
    
public  ActionMessagesgetMessages()
    
public  HttpServletRequestgetRequest()
    

Return the HttpServletRequest for this context.

public  HttpServletResponsegetResponse()
    

Return the HttpServletResponse for this context.

public  booleanisTokenValid(boolean reset)
    
public  voidrelease()
    
public  voidresetToken()
    
public  voidsaveErrors(ActionMessages errors)
    
public  voidsaveMessages(ActionMessages messages)
    
public  voidsaveToken()
    
protected  ServletWebContextservletWebContext()
    

Provide the ServletWebContext for this composite.

public  voidsetActionConfig(ActionConfig actionConfig)
    
public  voidsetActionServlet(ActionServlet servlet)
    

Set the ActionServlet instance for this context.

public  voidsetMessageResources(MessageResources resources)
    
public  voidsetMessageResources(String key, MessageResources resources)
    

Store the mesasage resources for the current module under the given request attribute key.



Constructor Detail
ServletActionContext
public ServletActionContext(ServletWebContext context)(Code)

Instantiate this composite by wrapping a ServletWebContext.


Parameters:
  context - The ServletWebContext to wrap



ServletActionContext
public ServletActionContext(ServletContext context, HttpServletRequest request, HttpServletResponse response)(Code)

Instantiate this Context for a given ServletContext, HttpServletRequest, and HttpServletResponse.


Parameters:
  context - The instant ServletContext
Parameters:
  request - The instant HttpServletRequest
Parameters:
  response - The instant HttpServletResponse




Method Detail
addErrors
public void addErrors(ActionMessages errors)(Code)



addMessages
public void addMessages(ActionMessages messages)(Code)



generateToken
public String generateToken()(Code)



getActionServlet
public ActionServlet getActionServlet()(Code)

Return the ActionServlet for this context.

Our ActionServlet



getContext
public ServletContext getContext()(Code)

Return the ServletContext for this context.

Our ServletContext



getErrors
public ActionMessages getErrors()(Code)



getMessageResources
public MessageResources getMessageResources()(Code)



getMessageResources
public MessageResources getMessageResources(String key)(Code)



getMessages
public ActionMessages getMessages()(Code)



getRequest
public HttpServletRequest getRequest()(Code)

Return the HttpServletRequest for this context.

Our HttpServletRequest



getResponse
public HttpServletResponse getResponse()(Code)

Return the HttpServletResponse for this context.

Our HttpServletResponse



isTokenValid
public boolean isTokenValid(boolean reset)(Code)



release
public void release()(Code)



resetToken
public void resetToken()(Code)



saveErrors
public void saveErrors(ActionMessages errors)(Code)



saveMessages
public void saveMessages(ActionMessages messages)(Code)



saveToken
public void saveToken()(Code)



servletWebContext
protected ServletWebContext servletWebContext()(Code)

Provide the ServletWebContext for this composite.

Our ServletWebContext



setActionConfig
public void setActionConfig(ActionConfig actionConfig)(Code)



setActionServlet
public void setActionServlet(ActionServlet servlet)(Code)

Set the ActionServlet instance for this context.


Parameters:
  servlet - Our ActionServlet instance



setMessageResources
public void setMessageResources(MessageResources resources)(Code)



setMessageResources
public void setMessageResources(String key, MessageResources resources)(Code)

Store the mesasage resources for the current module under the given request attribute key.


Parameters:
  key - Request attribute key
Parameters:
  resources - Message resouces to store



Methods inherited from org.apache.struts.chain.contexts.WebActionContext
public Map getApplicationScope()(Code)(Java Doc)
public Boolean getCancelled()(Code)(Java Doc)
public Map getHeader()(Code)(Java Doc)
public Map getHeaderValues()(Code)(Java Doc)
public Map getInitParam()(Code)(Java Doc)
public ModuleConfig getModuleConfig()(Code)(Java Doc)
public Map getParam()(Code)(Java Doc)
public Map getParamValues()(Code)(Java Doc)
public Map getParameterMap()(Code)(Java Doc)
public Map getRequestScope()(Code)(Java Doc)
public Map getSessionScope()(Code)(Java Doc)
public void release()(Code)(Java Doc)
public void setCancelled(Boolean cancelled)(Code)(Java Doc)
public void setModuleConfig(ModuleConfig moduleConfig)(Code)(Java Doc)
protected WebContext webContext()(Code)(Java Doc)

Fields inherited from org.apache.struts.chain.contexts.ActionContextBase
final public static String ACTION_CONFIG_KEY(Code)(Java Doc)
final public static String ACTION_FORM_KEY(Code)(Java Doc)
final public static String ACTION_KEY(Code)(Java Doc)
final public static String CANCEL_KEY(Code)(Java Doc)
final public static String ERROR_ACTION_MESSAGES_KEY(Code)(Java Doc)
final public static String EXCEPTION_KEY(Code)(Java Doc)
final public static String FORWARD_CONFIG_KEY(Code)(Java Doc)
final public static String INCLUDE_KEY(Code)(Java Doc)
final public static String LOCALE_KEY(Code)(Java Doc)
final public static String MESSAGE_ACTION_MESSAGES_KEY(Code)(Java Doc)
final public static String MESSAGE_RESOURCES_KEY(Code)(Java Doc)
final public static String MODULE_CONFIG_KEY(Code)(Java Doc)
final public static String TOKEN_KEY(Code)(Java Doc)
final public static String TRANSACTION_TOKEN_KEY(Code)(Java Doc)
final public static String VALID_KEY(Code)(Java Doc)
protected TokenProcessor token(Code)(Java Doc)

Methods inherited from org.apache.struts.chain.contexts.ActionContextBase
public void addActionMessages(String key, ActionMessages messages)(Code)(Java Doc)
public void addErrors(ActionMessages errors)(Code)(Java Doc)
public void addMessages(ActionMessages messages)(Code)(Java Doc)
public ActionForm findOrCreateActionForm(String formName, String scopeName) throws IllegalAccessException, InstantiationException(Code)(Java Doc)
public ActionForm findOrCreateActionForm(String formName, String scopeName, ModuleConfig moduleConfig) throws IllegalAccessException, InstantiationException(Code)(Java Doc)
public String generateToken()(Code)(Java Doc)
public Action getAction()(Code)(Java Doc)
public ActionConfig getActionConfig()(Code)(Java Doc)
public ActionForm getActionForm()(Code)(Java Doc)
abstract public Map getApplicationScope()(Code)(Java Doc)
public Boolean getCancelled()(Code)(Java Doc)
public ActionMessages getErrors()(Code)(Java Doc)
public Exception getException()(Code)(Java Doc)
public Boolean getFormValid()(Code)(Java Doc)
public ForwardConfig getForwardConfig()(Code)(Java Doc)
public String getInclude()(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
public Log getLogger()(Code)(Java Doc)
public MessageResources getMessageResources()(Code)(Java Doc)
public MessageResources getMessageResources(String key)(Code)(Java Doc)
public ActionMessages getMessages()(Code)(Java Doc)
public ModuleConfig getModuleConfig()(Code)(Java Doc)
abstract public Map getRequestScope()(Code)(Java Doc)
public Map getScope(String scopeName)(Code)(Java Doc)
abstract public Map getSessionScope()(Code)(Java Doc)
protected String getTokenGeneratorId()(Code)(Java Doc)
public boolean isTokenValid()(Code)(Java Doc)
public boolean isTokenValid(boolean reset)(Code)(Java Doc)
public void release()(Code)(Java Doc)
public void resetToken()(Code)(Java Doc)
public void saveActionMessages(String key, ActionMessages messages)(Code)(Java Doc)
public void saveActionMessages(String scopeId, String key, ActionMessages messages)(Code)(Java Doc)
public void saveErrors(ActionMessages errors)(Code)(Java Doc)
public void saveMessages(ActionMessages messages)(Code)(Java Doc)
public void saveMessages(String scope, ActionMessages messages)(Code)(Java Doc)
public void saveToken()(Code)(Java Doc)
public void setAction(Action action)(Code)(Java Doc)
public void setActionConfig(ActionConfig config)(Code)(Java Doc)
public void setActionForm(ActionForm form)(Code)(Java Doc)
public void setCancelled(Boolean cancelled)(Code)(Java Doc)
public void setException(Exception e)(Code)(Java Doc)
public void setFormValid(Boolean valid)(Code)(Java Doc)
public void setForwardConfig(ForwardConfig forward)(Code)(Java Doc)
public void setInclude(String include)(Code)(Java Doc)
public void setLocale(Locale locale)(Code)(Java Doc)
public void setLogger(Log logger)(Code)(Java Doc)
public void setMessageResources(MessageResources messageResources)(Code)(Java Doc)
public void setModuleConfig(ModuleConfig config)(Code)(Java Doc)

Methods inherited from org.apache.struts.chain.contexts.ContextWrapper
public void clear()(Code)(Java Doc)
public boolean containsKey(Object o)(Code)(Java Doc)
public boolean containsValue(Object o)(Code)(Java Doc)
public Set entrySet()(Code)(Java Doc)
public Object get(Object key)(Code)(Java Doc)
protected Context getBaseContext()(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
public Set keySet()(Code)(Java Doc)
public Object put(Object key, Object value)(Code)(Java Doc)
public void putAll(Map map)(Code)(Java Doc)
public Object remove(Object key)(Code)(Java Doc)
public int size()(Code)(Java Doc)
public Collection values()(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.