|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectinfo.dragonlady.scriptlet.ESEngine
public class ESEngine
サーバサイドスクリプトの初期読み込み、およびシリンダの実行要求を行う、
フレームワークの中核クラス
Scriptletクラスからは、必ずexecuteScript関数を呼出す必要があります。
フィールドの概要 | |
---|---|
protected static java.lang.String |
bodyTagOnloadAttrPt
|
protected java.io.StringWriter |
bufferWriter
|
protected java.lang.String |
contentCharcode
|
protected static java.lang.String |
defaultScriptletCharcode
|
static java.lang.String |
defaultScriptletName
|
protected static java.lang.String |
scriptLoadAttrPt
|
protected static java.lang.String |
serverScriptEndTag
|
protected static java.lang.String |
serverScriptTag
|
protected static java.lang.String |
serverValidationEndTag
|
protected static java.lang.String |
serverValidationTag
|
メソッドの概要 | |
---|---|
protected info.dragonlady.scriptlet.ESEngine.HtmlParser |
craeteHtmlParser(ESCylinder cylinder)
内部非公開クラスHtmlParserを生成する関数 |
protected static java.lang.String |
createOnLoadScript(Scriptlet scriptlet,
java.lang.String fileName,
java.lang.String functionName)
BodyタグのOnLoadイベント用のスクリプトテンプレートを生成する関数 |
protected void |
directoryReflexive(java.lang.String absolutePath,
java.io.File dir)
|
protected static java.lang.String |
escape(java.lang.String target)
HTMLエスケープ |
static void |
exceptionProc(Scriptlet scriptlet,
java.lang.Exception e)
エラー処理時のスクリプトを実行する関数 例外発生時のスクリプトファイル名:サーブレット名_error.ses サーブレット名はweb.xmlに定義されたurl-pattern要素内の値 |
static void |
executeScript(Scriptlet scriptlet)
サーバサイドスクリプトを実行する関数 初期化時のスクリプトファイル名:サーブレット名_init.ses 処理実行時のスクリプトファイル名:サーブレット名_exec.ses 例外発生時のスクリプトファイル名:サーブレット名_error.ses サーブレット名はweb.xmlに定義されたurl-pattern要素内の値 |
java.lang.String |
getContentCharcode()
スクリプトレットの文字コードを応答する デフォルトはUTF-8 |
java.lang.String |
getScriptletDirPath()
スクリプトの格納パスを応答する関数 |
protected void |
initialize(java.lang.String basePath)
このクラスのインスタンス生成時に一度だけ実行される初期化関数 |
protected java.lang.String |
loadScript(java.io.File file)
サーバサイドスクリプトを読み込む関数 |
protected static void |
print(org.w3c.dom.Node node,
java.lang.StringBuffer buffer)
XML(DOM)の文字列表現を作成する。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected static final java.lang.String serverScriptTag
protected static final java.lang.String serverValidationTag
protected static final java.lang.String serverScriptEndTag
protected static final java.lang.String serverValidationEndTag
protected static final java.lang.String bodyTagOnloadAttrPt
protected static final java.lang.String scriptLoadAttrPt
protected static final java.lang.String defaultScriptletCharcode
protected java.lang.String contentCharcode
protected java.io.StringWriter bufferWriter
public static final java.lang.String defaultScriptletName
メソッドの詳細 |
---|
protected final info.dragonlady.scriptlet.ESEngine.HtmlParser craeteHtmlParser(ESCylinder cylinder) throws java.io.IOException
cylinder:生成したシリンダ
- scriptlet:呼び出し元のスクリプトレット
-
java.io.IOException
protected final java.lang.String loadScript(java.io.File file) throws java.io.FileNotFoundException, java.io.IOException
file:サーバサイドスクリプトのファイル
-
java.io.FileNotFoundException
java.io.IOException
protected void initialize(java.lang.String basePath) throws java.io.FileNotFoundException, java.io.IOException
basePath:サーバサイドスクリプトの格納パス
-
java.io.FileNotFoundException
java.io.IOException
protected void directoryReflexive(java.lang.String absolutePath, java.io.File dir) throws java.io.FileNotFoundException, java.io.IOException
absolutePath
- dir
-
java.io.FileNotFoundException
java.io.IOException
protected static java.lang.String createOnLoadScript(Scriptlet scriptlet, java.lang.String fileName, java.lang.String functionName) throws java.util.InvalidPropertiesFormatException, java.io.FileNotFoundException, java.io.IOException
scriptlet
- fileName
- functionName
-
java.util.InvalidPropertiesFormatException
java.io.FileNotFoundException
java.io.IOException
public java.lang.String getContentCharcode()
public static void executeScript(Scriptlet scriptlet) throws ESException
scriptlet:呼び出し元のスクリプトレット
-
ESException
public java.lang.String getScriptletDirPath()
public static void exceptionProc(Scriptlet scriptlet, java.lang.Exception e) throws ESException
scriptlet:呼び出し元のスクリプトレット
- e:スクリプトに渡したい例外オブジェクト
-
ESException
protected static void print(org.w3c.dom.Node node, java.lang.StringBuffer buffer)
node:文字列表現にするDOMオブジェクト
- buffer:文字列表現を格納するバッファ
- protected static java.lang.String escape(java.lang.String target)
target:テキストノードの内容
-
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |