jp.terasoluna.fw.web.struts
Class ModuleUtil

java.lang.Object
  extended by jp.terasoluna.fw.web.struts.ModuleUtil

public class ModuleUtil
extends java.lang.Object

Utility related to ModuleConfig.


Constructor Summary
ModuleUtil()
           
 
Method Summary
static org.apache.struts.config.ModuleConfig getModuleConfig(javax.servlet.http.HttpServletRequest request)
          Returns ModuleConfig instance related to the request.
static java.lang.String getPrefix(javax.servlet.http.HttpServletRequest request)
          Returns prefix path for each module related to the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleUtil

public ModuleUtil()
Method Detail

getModuleConfig

public static org.apache.struts.config.ModuleConfig getModuleConfig(javax.servlet.http.HttpServletRequest request)
Returns the ModuleConfig instance related to the request.

Parameters:
request - Request information
Returns:
ModuleConfig instance. Returns null when the "request" argument is null or when unable to fetch the module configuration from the request and servlet context.

getPrefix

public static java.lang.String getPrefix(javax.servlet.http.HttpServletRequest request)
Returns prefix path for each module related to the request.

Parameters:
request - Request information
Returns:
Module prefix. Returns null when "request" argument is null or when the result of getModuleConfig is null.