jp.ne.mki.wedge.run.lib.servlet
クラス AbstractCommonProcessForHTMLGateway

java.lang.Object
  上位を拡張 jp.ne.mki.wedge.run.lib.servlet.AbstractCommonProcessForHTMLGateway
すべての実装されたインタフェース:
HTMLGatewayCommonProcess

public abstract class AbstractCommonProcessForHTMLGateway
extends java.lang.Object
implements HTMLGatewayCommonProcess

HTMLGateway 用共通処理クラスの継承元として、共通処理に必要となる機能を提供します。


フィールドの概要
 
インタフェース jp.ne.mki.wedge.run.interfaces.commonprocess.executer.HTMLGatewayCommonProcess から継承されたフィールド
CANCEL, ERROR, INPUT_ERROR, OK, SKIP, USERERROR
 
コンストラクタの概要
AbstractCommonProcessForHTMLGateway()
           
 
メソッドの概要
 DataInterface createItem(java.lang.String logicalName, java.lang.String physicalName, boolean isColumn, boolean isTemporary)
          アイテムを作成します。
 DataInterface createTemporaryItem(boolean isColumn)
          アイテムを作成します。
 void execOnExecutionEnd(HTMLGatewayExecutionEndCommonProcessRecord record)
          Executionの実行後に共通前後理を行う場合は、このメソッドをオーバーライドして、必要な処理を実装してください。
 void execOnExecutionStart(HTMLGatewayExecutionStartCommonProcessRecord record)
          Executionの実行前に共通前後理を行う場合は、このメソッドをオーバーライドして、必要な処理を実装してください。
 void execOnFinally(HTMLGatewayFinallyCommonProcessRecord record)
          ブラウザからのリクエストに対する処理が終了した時に行う共通処理を実装してください。
 void execOnInit(HTMLGatewayInitCommonProcessRecord record)
          サーブレット(HTMLGateway)が初期化処理中に共通処理を行う場合は、このメソッドをオーバーライドして、必要な処理を実装してください。
 void execOnPreRequest(HTMLGatewayPreRequestCommonProcessRecord record)
          サーブレットリクエスト時に共通前処理を行う場合は、このメソッドをオーバーライドして、必要な処理を実装してください。
 void execOnRequest(HTMLGatewayRequestCommonProcessRecord record)
          サーブレットリクエスト時に共通前処理を行う場合は、このメソッドをオーバーライドして、必要な処理を実装してください。
 void execOnResponse(HTMLGatewayResponseCommonProcessRecord record)
          サーブレットレスポンス時に共通前後理を行う場合は、このメソッドをオーバーライドして、必要な処理を実装してください。
 void execOnTransactionEnd(HTMLGatewayTransactionEndCommonProcessRecord record)
          Transactionの実行後に共通前後理を行う場合は、このメソッドをオーバーライドして、必要な処理を実装してください。
 void execOnTransactionStart(HTMLGatewayTransactionStartCommonProcessRecord record)
          Transactionの実行前に共通前後理を行う場合は、このメソッドをオーバーライドして、必要な処理を実装してください。
 int executeLogicClass(java.lang.String className, java.lang.String parameter, java.util.List<DataInterface> inRecord, java.util.List<DataInterface> outRecord)
          ロジッククラスを実行します。
 int executeTransaction(java.lang.String serverPackageName, java.lang.String serverTransactionName, java.util.List<DataInterface> inRecord, java.util.List<DataInterface> outRecord, boolean doDefaultCheck)
          トランザクションを実行します。
 int getCommonProcessStatus()
          共通処理インターフェースの返り値を取得します。
 boolean isSkipExecution()
          Executionの実行処理をSKIPするかどうかを判定します。
 boolean isSkipResponse()
          HTMLの出力処理をSKIPするかどうかを判定します。
 boolean isSkipServerTransaction()
          Transactionの実行処理をSKIPするかどうかを判定します。
 void setCommonProcessStatus(int status)
          共通処理インターフェースの処理から、返り値を返したいときに実行してください。
 void setErrorHtml(java.lang.String htmlName)
          推奨されていません。 setHtml(String)を使用してください。
 void setExecution(jp.ne.mki.wedge.run.servlet.htmlgateway.execution.Hexecution execution)
           
 void setExecutionName(java.lang.String executionName)
          Execution名を設定します。
 void setFrameName(java.lang.String frameName)
          フレーム名を設定します。
 void setHtml(java.lang.String htmlName)
          出力HTML名を設定します。
 void setManager(jp.ne.mki.wedge.run.servlet.htmlgateway.HTMLGatewayManager manager)
          エンジンから呼ばれるメソッドです。
 void setSkipExecution(boolean bool)
          この設定をtrueとすると、Executionの実行がSKIPされます。
 void setSkipResponse(boolean bool)
          この設定をtrueとすると、HTMLの出力処理をSKIPします。
 void setSkipServerTransaction(boolean bool)
          この設定をtrueとすると、Transactionの実行がSKIPされます。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

AbstractCommonProcessForHTMLGateway

public AbstractCommonProcessForHTMLGateway()
メソッドの詳細

setSkipResponse

public final void setSkipResponse(boolean bool)
この設定をtrueとすると、HTMLの出力処理をSKIPします。

定義:
インタフェース HTMLGatewayCommonProcess 内の setSkipResponse

setSkipExecution

public final void setSkipExecution(boolean bool)
この設定をtrueとすると、Executionの実行がSKIPされます。 execOnExecutionStartで実行してください。

定義:
インタフェース HTMLGatewayCommonProcess 内の setSkipExecution
パラメータ:
bool -

setSkipServerTransaction

public final void setSkipServerTransaction(boolean bool)
この設定をtrueとすると、Transactionの実行がSKIPされます。 execOnTransactionStartで実行してください。

定義:
インタフェース HTMLGatewayCommonProcess 内の setSkipServerTransaction
パラメータ:
bool -

isSkipResponse

public final boolean isSkipResponse()
HTMLの出力処理をSKIPするかどうかを判定します。

定義:
インタフェース HTMLGatewayCommonProcess 内の isSkipResponse
戻り値:

isSkipExecution

public final boolean isSkipExecution()
Executionの実行処理をSKIPするかどうかを判定します。

定義:
インタフェース HTMLGatewayCommonProcess 内の isSkipExecution
戻り値:

isSkipServerTransaction

public final boolean isSkipServerTransaction()
Transactionの実行処理をSKIPするかどうかを判定します。

定義:
インタフェース HTMLGatewayCommonProcess 内の isSkipServerTransaction
戻り値:

setCommonProcessStatus

public final void setCommonProcessStatus(int status)
共通処理インターフェースの処理から、返り値を返したいときに実行してください。

定義:
インタフェース HTMLGatewayCommonProcess 内の setCommonProcessStatus
パラメータ:
status -

getCommonProcessStatus

public final int getCommonProcessStatus()
共通処理インターフェースの返り値を取得します。

定義:
インタフェース HTMLGatewayCommonProcess 内の getCommonProcessStatus
戻り値:

setManager

public final void setManager(jp.ne.mki.wedge.run.servlet.htmlgateway.HTMLGatewayManager manager)
エンジンから呼ばれるメソッドです。 使用しているManagerへの参照を設定します。

定義:
インタフェース HTMLGatewayCommonProcess 内の setManager
パラメータ:
manager -

setExecution

public final void setExecution(jp.ne.mki.wedge.run.servlet.htmlgateway.execution.Hexecution execution)
定義:
インタフェース HTMLGatewayCommonProcess 内の setExecution

execOnInit

public void execOnInit(HTMLGatewayInitCommonProcessRecord record)
                throws java.lang.Exception
サーブレット(HTMLGateway)が初期化処理中に共通処理を行う場合は、このメソッドをオーバーライドして、必要な処理を実装してください。

定義:
インタフェース HTMLGatewayCommonProcess 内の execOnInit
パラメータ:
record - 共通処理レコード
例外:
java.io.IOException - IOエラーが発生
java.lang.Exception
関連項目:
HTMLGatewayCommonProcess.execOnInit(jp.ne.mki.wedge.run.interfaces.commonprocess.record.HTMLGatewayInitCommonProcessRecord)

execOnPreRequest

public void execOnPreRequest(HTMLGatewayPreRequestCommonProcessRecord record)
                      throws java.lang.Exception
サーブレットリクエスト時に共通前処理を行う場合は、このメソッドをオーバーライドして、必要な処理を実装してください。 このメソッドは execOnRequest よりも早いタイミングで呼び出されます。

定義:
インタフェース HTMLGatewayCommonProcess 内の execOnPreRequest
パラメータ:
record - 共通処理レコード
例外:
java.io.IOException - IOエラーが発生
java.lang.Exception
関連項目:
HTMLGatewayCommonProcess.execOnRequest(jp.ne.mki.wedge.run.interfaces.commonprocess.record.HTMLGatewayRequestCommonProcessRecord)

execOnRequest

public void execOnRequest(HTMLGatewayRequestCommonProcessRecord record)
                   throws java.lang.Exception
サーブレットリクエスト時に共通前処理を行う場合は、このメソッドをオーバーライドして、必要な処理を実装してください。

定義:
インタフェース HTMLGatewayCommonProcess 内の execOnRequest
パラメータ:
record - 共通処理レコード
例外:
java.io.IOException - IOエラーが発生
java.lang.Exception
関連項目:
HTMLGatewayCommonProcess.execOnRequest(jp.ne.mki.wedge.run.interfaces.commonprocess.record.HTMLGatewayRequestCommonProcessRecord)

execOnResponse

public void execOnResponse(HTMLGatewayResponseCommonProcessRecord record)
                    throws java.lang.Exception
サーブレットレスポンス時に共通前後理を行う場合は、このメソッドをオーバーライドして、必要な処理を実装してください。

定義:
インタフェース HTMLGatewayCommonProcess 内の execOnResponse
パラメータ:
record - 共通処理レコード
例外:
java.io.IOException - IOエラーが発生
java.lang.Exception
関連項目:
HTMLGatewayCommonProcess.execOnResponse(jp.ne.mki.wedge.run.interfaces.commonprocess.record.HTMLGatewayResponseCommonProcessRecord)

execOnExecutionStart

public void execOnExecutionStart(HTMLGatewayExecutionStartCommonProcessRecord record)
                          throws java.lang.Exception
Executionの実行前に共通前後理を行う場合は、このメソッドをオーバーライドして、必要な処理を実装してください。

定義:
インタフェース HTMLGatewayCommonProcess 内の execOnExecutionStart
パラメータ:
record - 共通処理レコード
例外:
java.io.IOException - IOエラーが発生
java.lang.Exception

execOnExecutionEnd

public void execOnExecutionEnd(HTMLGatewayExecutionEndCommonProcessRecord record)
                        throws java.lang.Exception
Executionの実行後に共通前後理を行う場合は、このメソッドをオーバーライドして、必要な処理を実装してください。

定義:
インタフェース HTMLGatewayCommonProcess 内の execOnExecutionEnd
パラメータ:
record - 共通処理レコード
例外:
java.io.IOException - IOエラーが発生
java.lang.Exception

execOnTransactionStart

public void execOnTransactionStart(HTMLGatewayTransactionStartCommonProcessRecord record)
                            throws java.lang.Exception
Transactionの実行前に共通前後理を行う場合は、このメソッドをオーバーライドして、必要な処理を実装してください。

定義:
インタフェース HTMLGatewayCommonProcess 内の execOnTransactionStart
パラメータ:
record - 共通処理レコード
例外:
java.io.IOException - IOエラーが発生
java.lang.Exception

execOnTransactionEnd

public void execOnTransactionEnd(HTMLGatewayTransactionEndCommonProcessRecord record)
                          throws java.lang.Exception
Transactionの実行後に共通前後理を行う場合は、このメソッドをオーバーライドして、必要な処理を実装してください。

定義:
インタフェース HTMLGatewayCommonProcess 内の execOnTransactionEnd
パラメータ:
record - 共通処理レコード
例外:
java.io.IOException - IOエラーが発生
java.lang.Exception

execOnFinally

public void execOnFinally(HTMLGatewayFinallyCommonProcessRecord record)
                   throws java.lang.Exception
ブラウザからのリクエストに対する処理が終了した時に行う共通処理を実装してください。
この処理を実装すると、クライアントからのリクエストに対する処理中に例外が発生した時も必ず呼び出されます。

定義:
インタフェース HTMLGatewayCommonProcess 内の execOnFinally
パラメータ:
record - 共通処理レコード
例外:
java.io.IOException - IOエラーが発生
java.lang.Exception
関連項目:
HTMLGatewayCommonProcess.execOnFinally(jp.ne.mki.wedge.run.interfaces.commonprocess.record.HTMLGatewayFinallyCommonProcessRecord)

executeTransaction

public final int executeTransaction(java.lang.String serverPackageName,
                                    java.lang.String serverTransactionName,
                                    java.util.List<DataInterface> inRecord,
                                    java.util.List<DataInterface> outRecord,
                                    boolean doDefaultCheck)
                             throws java.lang.Exception
トランザクションを実行します。

パラメータ:
serverPackageName - サーバパッケージの物理名
serverTransactionName - トランザクションの物理名
inRecord - トランザクション送信アイテム
outRecord - トランザクション受信アイテム
doDefaultCheck - 標準チェックの有無
戻り値:
トランザクションの実行結果
例外:
java.lang.Exception

executeLogicClass

public final int executeLogicClass(java.lang.String className,
                                   java.lang.String parameter,
                                   java.util.List<DataInterface> inRecord,
                                   java.util.List<DataInterface> outRecord)
                            throws java.lang.Exception
ロジッククラスを実行します。

パラメータ:
className - ロジッククラスのクラス名( パッケージ名を含む )
parameter - パラメータ
inRecord - ロジッククラスの入力アイテムセット
outRecord - ロジッククラスの出力アイテムセット
戻り値:
ロジッククラスの実行結果
例外:
java.lang.Exception

setFrameName

public final void setFrameName(java.lang.String frameName)
フレーム名を設定します。 このメソッドは execOnPreRequest でのみ使用できます。

パラメータ:
frameName - フレーム名

setExecutionName

public final void setExecutionName(java.lang.String executionName)
Execution名を設定します。 このメソッドは execOnPreRequest でのみ使用できます。

パラメータ:
executionName - Execution名

setHtml

public final void setHtml(java.lang.String htmlName)
出力HTML名を設定します。

パラメータ:
htmlName - HTML物理名

setErrorHtml

public final void setErrorHtml(java.lang.String htmlName)
推奨されていません。 setHtml(String)を使用してください。

エラー時出力HTML名を設定します。

パラメータ:
htmlName - HTML物理名

createTemporaryItem

public final DataInterface createTemporaryItem(boolean isColumn)
アイテムを作成します。 作成されたアイテムには 適当な物理名と論理名が設定されます。

パラメータ:
isColumn - COLTEXTアイテムを作成するときはtrueとしてください。
戻り値:
作成したアイテムのインスタンスを返します。

createItem

public final DataInterface createItem(java.lang.String logicalName,
                                      java.lang.String physicalName,
                                      boolean isColumn,
                                      boolean isTemporary)
アイテムを作成します。

パラメータ:
logicalName - 論理名
physicalName - 物理名
isColumn - COLTEXTアイテムを作成するときはtrueとしてください。
isTemporary - trueとすると作成したアイテムを 一時的な値の格納を目的とするアイテムとして作成されます。 falseとすると 実インスタンスとして作成されます。この場合は HTMLRegisterから参照したり、 manager.getDataInterface(String)でアイテムを取得することが可能です。
戻り値:
作成したアイテムのインスタンスを返します。