jp.terasoluna.fw.web.struts.action
クラス ActionServletEx

java.lang.Object
  上位を拡張 javax.servlet.GenericServlet
      上位を拡張 javax.servlet.http.HttpServlet
          上位を拡張 org.apache.struts.action.ActionServlet
              上位を拡張 jp.terasoluna.fw.web.struts.action.ActionServletEx
すべての実装されたインタフェース:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ActionServletEx
extends org.apache.struts.action.ActionServlet

拡張ActionServletクラスです。

ワイルドカードで指定したパスにマッチするStruts設定ファイル(struts-config.xml)をロードします。

[web.xmlでの設定例]
 <servlet-class>jp.terasoluna.fw.supplement.web.struts.action.ActionServletEx</servlet-class>
   <init-param>
     <param-name>config</param-name>
     <param-value>/WEB-INF/**/struts-config*.xml</param-value>
  </init-param>
 

関連項目:
直列化された形式

フィールドの概要
 
クラス org.apache.struts.action.ActionServlet から継承されたフィールド
config, configDigester, convertNull, dataSources, internal, internalName, processor, registrations, servletMapping, servletName
 
コンストラクタの概要
ActionServletEx()
           
 
メソッドの概要
protected  void handleConfigException(String path, Exception e)
           
protected  org.apache.struts.config.ModuleConfig initModuleConfig(String prefix, String paths)
          モジュール設定情報を初期化します。
protected  String parseModuleConfigPath(String locationPattern)
          パスのパターンに該当するパスをカンマ区切りで連結して返す
 
クラス org.apache.struts.action.ActionServlet から継承されたメソッド
addServletMapping, destroy, destroyConfigDigester, destroyInternal, destroyModules, doGet, doPost, getInternal, getModuleConfig, getRequestProcessor, init, initConfigDigester, initInternal, initModuleConfigFactory, initModuleDataSources, initModuleMessageResources, initModulePlugIns, initModulePrefixes, initOther, initServlet, parseModuleConfigFile, process
 
クラス javax.servlet.http.HttpServlet から継承されたメソッド
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
クラス javax.servlet.GenericServlet から継承されたメソッド
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ActionServletEx

public ActionServletEx()
メソッドの詳細

initModuleConfig

protected org.apache.struts.config.ModuleConfig initModuleConfig(String prefix,
                                                                 String paths)
                                                          throws javax.servlet.ServletException
モジュール設定情報を初期化します。

オーバーライド:
クラス org.apache.struts.action.ActionServlet 内の initModuleConfig
例外:
javax.servlet.ServletException
関連項目:
ActionServlet.initModuleConfig(java.lang.String, java.lang.String)

parseModuleConfigPath

protected String parseModuleConfigPath(String locationPattern)
                                throws javax.servlet.UnavailableException
パスのパターンに該当するパスをカンマ区切りで連結して返す

パラメータ:
locationPattern - パスのパターン
戻り値:
パスのパターンに該当するパスの文字列(カンマ区切り)
例外:
javax.servlet.UnavailableException

handleConfigException

protected void handleConfigException(String path,
                                     Exception e)
                              throws javax.servlet.UnavailableException
パラメータ:
path - リソースのパス
e - 例外
例外:
javax.servlet.UnavailableException


Copyright © 2012. All Rights Reserved.