com.ngMAT.servlet
クラス EZServlet

com.ngMAT.servlet.EZServlet
すべての実装インタフェース:
ngmObjectFunction, java.io.Serializable

public abstract class EZServlet
implements ngmObjectFunction

最も典型的なサーブレットアプリケーションのフレームワークを提供する。一般的に、WEBアプリケーション を構築するプロジェクトにおいて、プロジェクトのフレームワークのベースとして利用できる。 アプリケーションサーブレットはEZServletを直接継承せず、そのプロジェクトフレームワークを継承すべき である。 This class supports most general servlet applicatio framework. You can use this as a base class of your framework for your projects. Application servlet classes shuoldn't directly extends this class, EZServlet, but your projects' framework class.

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

インタフェース com.ngMAT.Common.ngmObjectFunction から継承したフィールド
C_BACKSLASH, C_BLOCK_CLOSE, C_BLOCK_OPEN, C_COMMA, C_CR, C_DOUBLE_QUATATION, C_EQUAL, C_LF, C_SINGLE_QUATATION, C_SPACE, C_TAB, S_BACKSLASH, S_BLOCK_CLOSE, S_BLOCK_OPEN, S_COMMA, S_CR, S_CRLF, S_DOUBLE_QUATATION, S_EQUAL, S_LF, S_SINGLE_QUATATION, S_SPACE, S_TAB
 
コンストラクタの概要
EZServlet()
           
 
メソッドの概要
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          calls doIt (HttpServletRequest, HttpServletResponse).
 void doIt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          doGet(HttpServletRequest, HttpServletResponse), doPost(HttpServletRequest, HttpServletResponse) から呼び出され、ブラウザからのリクエストに対する標準的な処理フローを定義する。
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          calls doIt (HttpServletRequest, HttpServletResponse).
 Log getLog()
           
 java.util.Properties getProperties()
           
 java.lang.String getProperty(java.lang.String name)
           
 void init(javax.servlet.ServletConfig sc)
          サーブレットコンテナによりロードされた直後に呼ばれ、EZServletおよび、アプリケーション サーブレットの初期化を行う。
abstract  void processApplication(EZServletContext context)
          アプリケーションサーブレットの主処理として、アプリケーションサーブレット内で実装する必要がある。
 void setLog(Log log)
           
 void setNgmObject(ngmObjectFunction o)
           
 void setProperties(java.util.Properties prop)
           
 

コンストラクタの詳細

EZServlet

public EZServlet()
メソッドの詳細

getProperties

public java.util.Properties getProperties()
定義:
インタフェース ngmObjectFunction 内の getProperties

setProperties

public void setProperties(java.util.Properties prop)
定義:
インタフェース ngmObjectFunction 内の setProperties

getProperty

public java.lang.String getProperty(java.lang.String name)
定義:
インタフェース ngmObjectFunction 内の getProperty

getLog

public Log getLog()
定義:
インタフェース ngmObjectFunction 内の getLog

setLog

public void setLog(Log log)
定義:
インタフェース ngmObjectFunction 内の setLog

setNgmObject

public void setNgmObject(ngmObjectFunction o)
定義:
インタフェース ngmObjectFunction 内の setNgmObject

init

public final void init(javax.servlet.ServletConfig sc)
                throws javax.servlet.ServletException
サーブレットコンテナによりロードされた直後に呼ばれ、EZServletおよび、アプリケーション サーブレットの初期化を行う。このメソッドはオーバライドできない。 Servlet containers calls this method and initializes EZServlet and your servlet. You cannot override this method.
関連項目:
initApplication()

doPost

public final void doPost(javax.servlet.http.HttpServletRequest req,
                         javax.servlet.http.HttpServletResponse res)
calls doIt (HttpServletRequest, HttpServletResponse).

doGet

public final void doGet(javax.servlet.http.HttpServletRequest req,
                        javax.servlet.http.HttpServletResponse res)
calls doIt (HttpServletRequest, HttpServletResponse).

doIt

public final void doIt(javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse res)
doGet(HttpServletRequest, HttpServletResponse), doPost(HttpServletRequest, HttpServletResponse) から呼び出され、ブラウザからのリクエストに対する標準的な処理フローを定義する。
アプリケーション処理に必要なコンテキストを準備し、アプリケーションの主処理を呼び出す。 アプリケーション内でエラーが発生したことを検知した場合は、エラーページブラウザに返す。 このメソッドはオーバライドできない。 Called from doGet (HttpServletRequest, HttpServletResponse) or doPost(HttpServletRequest, HttpServletResponse). This methods defines very standard process flow to respond to requests from browsers.
Prepares application contexts and calls your application processn method. And when some exceptions caught, sends error page HTML to browsers. Your cannot override this method.
関連項目:
(EZServletContect)

processApplication

public abstract void processApplication(EZServletContext context)
アプリケーションサーブレットの主処理として、アプリケーションサーブレット内で実装する必要がある。 パラメタとして、プロパティ"EZServlet.Context.Class"で指定されたcontextクラスのオブジェクトが渡される。 You have to implement this method in your application as an application process. This method will receive a context object specified with property "EZServlet.Context.Class".


バグや機能要求の報告
最新の情報
Copyright 2000 - ngMAT Corporation