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


java.lang.Object
   org.apache.struts.config.ConfigHelper

ConfigHelper
public class ConfigHelper implements ConfigHelperInterface(Code)

NOTE: THIS CLASS IS UNDER ACTIVE DEVELOPMENT. THE CURRENT CODE IS WRITTEN FOR CLARITY NOT EFFICIENCY. NOT EVERY API FUNCTION HAS BEEN IMPLEMENTED YET.

A helper object to expose the Struts shared resources, which are be stored in the application, session, or request contexts, as appropriate.

An instance should be created for each request processed. The methods which return resources from the request or session contexts are not thread-safe.

Provided for use by other servlets in the application so they can easily access the Struts shared resources.

The resources are stored under attributes in the application, session, or request contexts.

The ActionConfig methods simply return the resources from under the context and key used by the Struts ActionServlet when the resources are created.


version:
   $Rev: 471754 $ $Date: 2005-05-14 02:09:06 -0400 (Sat, 14 May 2005)
version:
   $
since:
   Struts 1.1



Constructor Summary
public  ConfigHelper()
    
public  ConfigHelper(ServletContext application, HttpServletRequest request, HttpServletResponse response)
    

Method Summary
public  Stringaction(String path)
    
public  StringgetAction(String path)
    

Return the URL for the specified ActionMapping, otherwise return null.

public  ActionFormgetActionForm()
    
public  ActionForwardgetActionForward(String name)
    

Return the forwarding associated with the specified logical name, if any; otherwise return null.

public  ActionMappinggetActionMapping(String path)
    

Return the mapping associated with the specified request path, if any; otherwise return null.

public  StringgetActionMappingName(String action)
    

Return the form action converted into an action mapping path.

public  StringgetActionMappingURL(String action)
    

Return the form action converted into a server-relative URL.

public  ActionMessagesgetActionMessages()
    
public  StringgetBaseRef()
    

Renders the reference for a HTML element.

public  StringgetEncodeURL(String url)
    

Return the url encoded to maintain the user session, if any.

public  ThrowablegetException()
    

The runtime JspException that may be been thrown by a Struts tag extension, or compatible presentation extension, and placed in the request.

public  ActionFormBeangetFormBean(String name)
    

Return the form bean definition associated with the specified logical name, if any; otherwise return null.

public  StringgetLink(String name)
    

Return the path for the specified forward, otherwise return null.

public  ActionMappinggetMapping()
    

The org.apache.struts.ActionMapping instance for this request.

public  StringgetMessage(String key)
    

Return the localized message for the specified key, otherwise return null.

public  StringgetMessage(String key, Object[] args)
    

Look up and return a message string, based on the specified parameters.

public  MessageResourcesgetMessageResources()
    

The application resources for this application.

public  MultipartRequestWrappergetMultipartRequestWrapper()
    

The multipart object for this request.

public  StringgetOrigRef()
    
public  StringgetServletMapping()
    

The path-mapped pattern (/action/*) or extension mapped pattern ((*.do) used to determine our Action URIs in this application.

public  StringgetToken()
    

The transaction token stored in this session, if it is used.

public  booleanisMessage(String key)
    

Return true if a message string for the specified message key is present for the user's Locale.

public  Stringlink(String name)
    
public  Stringmessage(String key)
    
public  Stringmessage(String key, Object[] args)
    
public  voidsetApplication(ServletContext application)
    

Set the application associated with this instance.

public  voidsetForward(ActionForward forward)
     Set the forward associated with this instance.
public  voidsetRequest(HttpServletRequest request)
    

Set the request associated with this object.

public  voidsetResources(ServletContext application, HttpServletRequest request, HttpServletResponse response)
    

Set the application and request for this object instance.

public  voidsetResponse(HttpServletResponse response)
    

Set the response associated with this isntance.

public  voidsetSession(HttpSession session)
    

Set the session associated with this instance.



Constructor Detail
ConfigHelper
public ConfigHelper()(Code)



ConfigHelper
public ConfigHelper(ServletContext application, HttpServletRequest request, HttpServletResponse response)(Code)




Method Detail
action
public String action(String path)(Code)

Wrapper for getAction(String)


Parameters:
  path - Name given to local or global forward.



getAction
public String getAction(String path)(Code)

Return the URL for the specified ActionMapping, otherwise return null.


Parameters:
  path - Name given to local or global forward.



getActionForm
public ActionForm getActionForm()(Code)



getActionForward
public ActionForward getActionForward(String name)(Code)

Return the forwarding associated with the specified logical name, if any; otherwise return null.


Parameters:
  name - Logical name of the requested forwarding



getActionMapping
public ActionMapping getActionMapping(String path)(Code)

Return the mapping associated with the specified request path, if any; otherwise return null.


Parameters:
  path - Request path for which a mapping is requested



getActionMappingName
public String getActionMappingName(String action)(Code)

Return the form action converted into an action mapping path. The value of the action property is manipulated as follows in computing the name of the requested mapping:

  • Any filename extension is removed (on the theory that extension mapping is being used to select the controller servlet).
  • If the resulting value does not start with a slash, then a slash is prepended.



getActionMappingURL
public String getActionMappingURL(String action)(Code)

Return the form action converted into a server-relative URL.




getActionMessages
public ActionMessages getActionMessages()(Code)



getBaseRef
public String getBaseRef()(Code)

Renders the reference for a HTML element.




getEncodeURL
public String getEncodeURL(String url)(Code)

Return the url encoded to maintain the user session, if any.




getException
public Throwable getException()(Code)

The runtime JspException that may be been thrown by a Struts tag extension, or compatible presentation extension, and placed in the request.




getFormBean
public ActionFormBean getFormBean(String name)(Code)

Return the form bean definition associated with the specified logical name, if any; otherwise return null.


Parameters:
  name - Logical name of the requested form bean definition



getLink
public String getLink(String name)(Code)

Return the path for the specified forward, otherwise return null.


Parameters:
  name - Name given to local or global forward.



getMapping
public ActionMapping getMapping()(Code)

The org.apache.struts.ActionMapping instance for this request.




getMessage
public String getMessage(String key)(Code)

Return the localized message for the specified key, otherwise return null.


Parameters:
  key - Message key



getMessage
public String getMessage(String key, Object[] args)(Code)

Look up and return a message string, based on the specified parameters.


Parameters:
  key - Message key to be looked up and returned
Parameters:
  args - Replacement parameters for this message



getMessageResources
public MessageResources getMessageResources()(Code)

The application resources for this application.




getMultipartRequestWrapper
public MultipartRequestWrapper getMultipartRequestWrapper()(Code)

The multipart object for this request.




getOrigRef
public String getOrigRef()(Code)

Renders the reference for a HTML element




getServletMapping
public String getServletMapping()(Code)

The path-mapped pattern (/action/*) or extension mapped pattern ((*.do) used to determine our Action URIs in this application.




getToken
public String getToken()(Code)

The transaction token stored in this session, if it is used.




isMessage
public boolean isMessage(String key)(Code)

Return true if a message string for the specified message key is present for the user's Locale.


Parameters:
  key - Message key



link
public String link(String name)(Code)

Wrapper for getLink(String)


Parameters:
  name - Name given to local or global forward.



message
public String message(String key)(Code)

Wrapper for getMessage(String)


Parameters:
  key - Message key



message
public String message(String key, Object[] args)(Code)

Wrapper for getMessage(String,Object[])


Parameters:
  key - Message key to be looked up and returned
Parameters:
  args - Replacement parameters for this message



setApplication
public void setApplication(ServletContext application)(Code)

Set the application associated with this instance. [servlet.getServletContext()]




setForward
public void setForward(ActionForward forward)(Code)
Set the forward associated with this instance.



setRequest
public void setRequest(HttpServletRequest request)(Code)

Set the request associated with this object. Session object is also set or cleared.




setResources
public void setResources(ServletContext application, HttpServletRequest request, HttpServletResponse response)(Code)

Set the application and request for this object instance. The ServletContext can be set by any servlet in the application. The request should be the instant request. Most of the other methods retrieve their own objects by reference to the application, request, or session attributes. Do not call other methods without setting these first! This is also called by the convenience constructor.


Parameters:
  application - - The associated ServletContext.
Parameters:
  request - - The associated HTTP request.
Parameters:
  response - - The associated HTTP response.



setResponse
public void setResponse(HttpServletResponse response)(Code)

Set the response associated with this isntance. Session object is also set or cleared.




setSession
public void setSession(HttpSession session)(Code)

Set the session associated with this instance.




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.