|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.util.ModuleUtils
public class ModuleUtils
General purpose utility methods related to module processing.
| Constructor Summary | |
|---|---|
protected |
ModuleUtils()
Constructor for ModuleUtils. |
| Method Summary | |
|---|---|
static ModuleUtils |
getInstance()
Returns the Singleton instance of TagUtils. |
ModuleConfig |
getModuleConfig(HttpServletRequest request)
Return the current ModuleConfig object stored in request, if it exists, null otherwise. |
ModuleConfig |
getModuleConfig(HttpServletRequest request,
ServletContext context)
Return the ModuleConfig object is it exists, null otherwise. |
ModuleConfig |
getModuleConfig(String prefix,
HttpServletRequest request,
ServletContext context)
Return the desired ModuleConfig object stored in context, if it exists, otherwise return the current ModuleConfig |
ModuleConfig |
getModuleConfig(String prefix,
ServletContext context)
Return the desired ModuleConfig object stored in context, if it exists, null otherwise. |
String |
getModuleName(HttpServletRequest request,
ServletContext context)
Get the module name to which the specified request belong. |
String |
getModuleName(String matchPath,
ServletContext context)
Get the module name to which the specified uri belong. |
String[] |
getModulePrefixes(ServletContext context)
Return the list of module prefixes that are defined for this web application. |
void |
selectModule(HttpServletRequest request,
ServletContext context)
Select the module to which the specified request belongs, and add corresponding request attributes to this request. |
void |
selectModule(String prefix,
HttpServletRequest request,
ServletContext context)
Select the module to which the specified request belongs, and add corresponding request attributes to this request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ModuleUtils()
| Method Detail |
|---|
public static ModuleUtils getInstance()
public ModuleConfig getModuleConfig(HttpServletRequest request)
selectModule(HttpServletRequest, ServletContext) .
request - The servlet request we are processing
public ModuleConfig getModuleConfig(String prefix,
ServletContext context)
prefix - The module prefix of the desired modulecontext - The ServletContext for this web application
public ModuleConfig getModuleConfig(String prefix,
HttpServletRequest request,
ServletContext context)
prefix - The module prefix of the desired modulerequest - The servlet request we are processingcontext - The ServletContext for this web application
public ModuleConfig getModuleConfig(HttpServletRequest request,
ServletContext context)
request - The servlet request we are processingcontext - The ServletContext for this web application
public String getModuleName(HttpServletRequest request,
ServletContext context)
request - The servlet request we are processingcontext - The ServletContext for this web application
public String getModuleName(String matchPath,
ServletContext context)
matchPath - The uri from which we want the module name.context - The ServletContext for this web application
public String[] getModulePrefixes(ServletContext context)
context - The ServletContext for this web application.
public void selectModule(HttpServletRequest request,
ServletContext context)
request - The servlet request we are processingcontext - The ServletContext for this web application
public void selectModule(String prefix,
HttpServletRequest request,
ServletContext context)
prefix - The module prefix of the desired modulerequest - The servlet request we are processingcontext - The ServletContext for this web application
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||