info.dragonlady.scriptlet
クラス ESCylinder

java.lang.Object
  上位を拡張 info.dragonlady.scriptlet.ESCylinder

public class ESCylinder
extends java.lang.Object

Rhino実装クラス
サーバサイドスクリプトの実行部です。
サーバサイドスクリプト内のserverscriptタグを1シリンダとカウントし、
このクラスと1対1の対応となります。

作成者:
nobu

入れ子のクラスの概要
static class ESCylinder.ESHelper
          ヘルパークラスです。
 
メソッドの概要
 void addDocumentObject(DocumentA doc)
          HTML documentオブジェクトをグローバルオブジェクトとして追加
static ESCylinder createInstanse(Scriptlet slet, java.io.Writer writer, java.lang.String charCode)
          シリンダを生成します。
static ESCylinder createInstanse(SmtpParser mail, java.io.Writer writer, java.util.Map<java.lang.String,java.lang.Object> jsObjectMap, DBAccesser dba, Scriptlet scriptlet)
          Javascript on mail用のシリンダを生成します。
 void exit()
          Rhinoの終了宣言
必ず開始宣言と対で呼出すこと!
 java.lang.Object getResult()
          推奨されていません。  
protected  java.lang.String loadScript(java.lang.String importValue, java.lang.String path)
          '@importScript'ディレクティブを解析して追加するスクリプトを読み込む関数
 void process(java.lang.String jsSource, java.lang.String path)
          サーバサイドスクリプト(Rhino)実行処理
protected  java.lang.String scriptImport(java.lang.String jsSource, java.lang.String path)
          '@importScript'ディレクティブを処理する関数
 void setException(ESException e)
          例外発生時の例外オブジェクトをグローバルオブイェクトに追加する関数
 void validate(java.lang.String validateSource)
          要求パラメータの検証を行う。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

createInstanse

public static ESCylinder createInstanse(Scriptlet slet,
                                        java.io.Writer writer,
                                        java.lang.String charCode)
                                 throws java.io.IOException
シリンダを生成します。

パラメータ:
slet:実行されているScriptlet -
例外:
java.io.IOException

createInstanse

public static ESCylinder createInstanse(SmtpParser mail,
                                        java.io.Writer writer,
                                        java.util.Map<java.lang.String,java.lang.Object> jsObjectMap,
                                        DBAccesser dba,
                                        Scriptlet scriptlet)
                                 throws java.io.IOException
Javascript on mail用のシリンダを生成します。

パラメータ:
mail -
writer -
jsObjectMap -
戻り値:
例外:
java.io.IOException

addDocumentObject

public void addDocumentObject(DocumentA doc)
HTML documentオブジェクトをグローバルオブジェクトとして追加

パラメータ:
doc -

setException

public void setException(ESException e)
例外発生時の例外オブジェクトをグローバルオブイェクトに追加する関数

パラメータ:
e:捕捉した例外(ESException) -

validate

public void validate(java.lang.String validateSource)
              throws ESException
要求パラメータの検証を行う。

パラメータ:
validateSource -
例外:
ESException

process

public void process(java.lang.String jsSource,
                    java.lang.String path)
             throws ESException
サーバサイドスクリプト(Rhino)実行処理

パラメータ:
jsSource:サーバサイドスクリプト -
例外:
ESException

scriptImport

protected java.lang.String scriptImport(java.lang.String jsSource,
                                        java.lang.String path)
                                 throws java.io.IOException
'@importScript'ディレクティブを処理する関数

パラメータ:
jsSource:サーバサイドスクリプト -
path:サーバサイドスクリプトの格納パス -
例外:
java.io.IOException

loadScript

protected java.lang.String loadScript(java.lang.String importValue,
                                      java.lang.String path)
                               throws java.io.IOException
'@importScript'ディレクティブを解析して追加するスクリプトを読み込む関数

パラメータ:
importValue:'@importScript'ディレクティブ -
path:サーバサイドスクリプトの格納パス -
例外:
java.io.IOException

getResult

public java.lang.Object getResult()
推奨されていません。 

現在は利用していません。

戻り値:

exit

public void exit()
Rhinoの終了宣言
必ず開始宣言と対で呼出すこと!