|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigHelperInterface
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.
Method Summary | |
---|---|
String |
getAction(String path)
Return the URL for the specified ActionMapping, otherwise return null . |
ActionForm |
getActionForm()
Retrieve and return the ActionForm bean associated
with this mapping, creating and stashing one if necessary. |
ActionForward |
getActionForward(String name)
Return the forwarding associated with the specified logical name, if any; otherwise return null . |
ActionMapping |
getActionMapping(String path)
Return the mapping associated with the specified request path, if any; otherwise return null . |
String |
getActionMappingName(String action)
Return the form action converted into an action mapping path. |
String |
getActionMappingURL(String action)
Return the form action converted into a server-relative URL. |
ActionMessages |
getActionMessages()
The org.apache.struts.action.ActionFormBeans
collection for this application. |
String |
getBaseRef()
Renders the reference for a HTML |
String |
getEncodeURL(String url)
Return the url encoded to maintain the user session, if any. |
Throwable |
getException()
The runtime JspException that may be been thrown by a Struts tag extension, or compatible presentation extension, and placed in the request. |
ActionFormBean |
getFormBean(String name)
Return the form bean definition associated with the specified logical name, if any; otherwise return null . |
String |
getLink(String name)
Return the path for the specified forward, otherwise return null . |
ActionMapping |
getMapping()
The org.apache.struts.ActionMapping instance for this
request. |
String |
getMessage(String key)
Return the localized message for the specified key, otherwise return null . |
String |
getMessage(String key,
Object[] args)
Look up and return a message string, based on the specified parameters. |
MessageResources |
getMessageResources()
The application resources for this application. |
MultipartRequestWrapper |
getMultipartRequestWrapper()
The multipart object for this request. |
String |
getOrigRef()
Renders the reference for a HTML |
String |
getServletMapping()
The path-mapped pattern ( /action/* ) or extension
mapped pattern ((*.do ) used to determine our Action URIs
in this application. |
String |
getToken()
The transaction token stored in this session, if it is used. |
boolean |
isMessage(String key)
Return true if a message string for the specified message key is present for the user's Locale. |
Method Detail |
---|
ActionMessages getActionMessages()
The org.apache.struts.action.ActionFormBeans
collection for this application.
MessageResources getMessageResources()
The application resources for this application.
String getServletMapping()
The path-mapped pattern (/action/*
) or extension
mapped pattern ((*.do
) used to determine our Action URIs
in this application.
String getToken()
The transaction token stored in this session, if it is used.
Throwable getException()
The runtime JspException that may be been thrown by a Struts tag extension, or compatible presentation extension, and placed in the request.
MultipartRequestWrapper getMultipartRequestWrapper()
The multipart object for this request.
ActionMapping getMapping()
The org.apache.struts.ActionMapping
instance for this
request.
boolean isMessage(String key)
Return true if a message string for the specified message key is present for the user's Locale.
key
- Message keyActionForm getActionForm()
Retrieve and return the ActionForm
bean associated
with this mapping, creating and stashing one if necessary. If there is
no form bean associated with this mapping, return null
.
ActionFormBean getFormBean(String name)
Return the form bean definition associated with the specified
logical name, if any; otherwise return null
.
name
- Logical name of the requested form bean definitionActionForward getActionForward(String name)
Return the forwarding associated with the specified logical name,
if any; otherwise return null
.
name
- Logical name of the requested forwardingActionMapping getActionMapping(String path)
Return the mapping associated with the specified request path, if
any; otherwise return null
.
path
- Request path for which a mapping is requestedString getActionMappingName(String action)
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:
:FIXME: Bad assumption =:o)
String getActionMappingURL(String action)
Return the form action converted into a server-relative URL.
String getEncodeURL(String url)
Return the url encoded to maintain the user session, if any.
String getOrigRef()
Renders the reference for a HTML
String getBaseRef()
Renders the reference for a HTML
String getLink(String name)
Return the path for the specified forward, otherwise return
null
.
name
- Name given to local or global forward.String getMessage(String key)
Return the localized message for the specified key, otherwise
return null
.
key
- Message keyString getMessage(String key, Object[] args)
Look up and return a message string, based on the specified parameters.
key
- Message key to be looked up and returnedargs
- Replacement parameters for this messageString getAction(String path)
Return the URL for the specified ActionMapping, otherwise return
null
.
path
- Name given to local or global forward.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |