org.apache.struts.tiles
クラス TilesUtilImpl

java.lang.Object
  拡張org.apache.struts.tiles.TilesUtilImpl
すべての実装インタフェース:
java.io.Serializable
直系の既知のサブクラス:
TilesUtilStrutsImpl

public class TilesUtilImpl
extends java.lang.Object
implements java.io.Serializable

Default implementation of TilesUtil. This class contains default implementation of utilities. This implementation is intended to be used without Struts.

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

フィールドの概要
static java.lang.String DEFINITIONS_FACTORY
          Constant name used to store factory in servlet context
protected  org.apache.commons.logging.Log log
          Commons Logging instance.
 
コンストラクタの概要
TilesUtilImpl()
           
 
メソッドの概要
protected  DefinitionsFactory createDefinitionFactoryInstance(java.lang.String classname)
          Create Definition factory of specified classname.
 DefinitionsFactory createDefinitionsFactory(javax.servlet.ServletContext servletContext, DefinitionsFactoryConfig factoryConfig)
          Create Definition factory from specified configuration object.
 void doForward(java.lang.String uri, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext)
          Do a forward using request dispatcher.
 void doInclude(java.lang.String uri, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext)
          Do an include using request dispatcher.
 void doInclude(java.lang.String uri, javax.servlet.jsp.PageContext pageContext)
          Do an include using PageContext.include().
 DefinitionsFactory getDefinitionsFactory(javax.servlet.ServletRequest request, javax.servlet.ServletContext servletContext)
          Get definition factory from appropriate servlet context.
protected  void makeDefinitionsFactoryAccessible(DefinitionsFactory factory, javax.servlet.ServletContext servletContext)
          Make definition factory accessible to Tags.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

log

protected org.apache.commons.logging.Log log
Commons Logging instance.


DEFINITIONS_FACTORY

public static final java.lang.String DEFINITIONS_FACTORY
Constant name used to store factory in servlet context

関連項目:
定数フィールド値
コンストラクタの詳細

TilesUtilImpl

public TilesUtilImpl()
メソッドの詳細

doForward

public void doForward(java.lang.String uri,
                      javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response,
                      javax.servlet.ServletContext servletContext)
               throws java.io.IOException,
                      javax.servlet.ServletException
Do a forward using request dispatcher. This method is used by the Tiles package anytime a forward is required.

パラメータ:
uri - Uri or Definition name to forward.
request - Current page request.
servletContext - Current servlet context.
例外:
java.io.IOException
javax.servlet.ServletException

doInclude

public void doInclude(java.lang.String uri,
                      javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response,
                      javax.servlet.ServletContext servletContext)
               throws java.io.IOException,
                      javax.servlet.ServletException
Do an include using request dispatcher. This method is used by the Tiles package when an include is required. The Tiles package can use indifferently any form of this method.

パラメータ:
uri - Uri or Definition name to forward.
request - Current page request.
response - Current page response.
servletContext - Current servlet context.
例外:
java.io.IOException
javax.servlet.ServletException

doInclude

public void doInclude(java.lang.String uri,
                      javax.servlet.jsp.PageContext pageContext)
               throws java.io.IOException,
                      javax.servlet.ServletException
Do an include using PageContext.include(). This method is used by the Tiles package when an include is required. The Tiles package can use indifferently any form of this method.

パラメータ:
uri - Uri or Definition name to forward.
pageContext - Current page context.
例外:
java.io.IOException
javax.servlet.ServletException

getDefinitionsFactory

public DefinitionsFactory getDefinitionsFactory(javax.servlet.ServletRequest request,
                                                javax.servlet.ServletContext servletContext)
Get definition factory from appropriate servlet context.

戻り値:
Definitions factory or null if not found.

createDefinitionsFactory

public DefinitionsFactory createDefinitionsFactory(javax.servlet.ServletContext servletContext,
                                                   DefinitionsFactoryConfig factoryConfig)
                                            throws DefinitionsFactoryException
Create Definition factory from specified configuration object. Create an instance of the factory with the class specified in the config object. Then, initialize this factory and finally store the factory in appropriate context by calling makeDefinitionsFactoryAccessible(DefinitionsFactory, ServletContext). Factory creation is done by createDefinitionFactoryInstance(String).

パラメータ:
servletContext - Servlet Context passed to newly created factory.
factoryConfig - Configuration object passed to factory.
戻り値:
newly created factory of type specified in the config object.
例外:
DefinitionsFactoryException - If an error occur while initializing factory

createDefinitionFactoryInstance

protected DefinitionsFactory createDefinitionFactoryInstance(java.lang.String classname)
                                                      throws DefinitionsFactoryException
Create Definition factory of specified classname. Factory class must extend the DefinitionsFactory class. The factory is wrapped appropriately with ComponentDefinitionsFactoryWrapper if it is an instance of the deprecated ComponentDefinitionsFactory class.

パラメータ:
classname - Class name of the factory to create.
戻り値:
newly created factory.
例外:
DefinitionsFactoryException - If an error occur while initializing factory

makeDefinitionsFactoryAccessible

protected void makeDefinitionsFactoryAccessible(DefinitionsFactory factory,
                                                javax.servlet.ServletContext servletContext)
Make definition factory accessible to Tags. Factory is stored in servlet context.

パラメータ:
factory - Factory to be made accessible.
servletContext - Current servlet context.


このドキュメントは、Ja-Jakartaにより訳されました。コメントがある場合は、report@jajakarta.orgまでお願いします。
Copyright (C) 2000-2004 - Apache Software Foundation