|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
info.dragonlady.scriptlet.SecureServlet
public class SecureServlet
処理シーケンスの妥当性検証を実装した、javax.servlet.http.HttpServletの継承クラスです。 Scriptletクラスの基底クラスで、このクラスを直接継承することはありません。
フィールドの概要 | |
---|---|
protected java.lang.String |
charset
|
static int |
CONTEXT_ACCESS_SEQUENCE
|
static int |
CORRECT_SEQUENCE
|
protected DBAccesser |
dbaccesser
|
protected java.lang.String |
dbConfigPath
|
protected java.lang.String |
defaultScriptClassName
|
protected java.lang.String |
extendName
|
static int |
IGNORE_SEQUENCE
|
static int |
INVALID_SEQUENCE
|
protected java.lang.String |
scriptletPath
|
protected static java.lang.String |
SEQUENCE_KEY
|
protected int |
sequenceId
|
protected static java.lang.String |
SITEMAP_KEY
|
protected java.lang.String |
sitemapPath
|
protected org.w3c.dom.Document |
sitemapXML
|
static java.lang.String |
WILD_CARD_SEQUENCE
|
コンストラクタの概要 | |
---|---|
SecureServlet()
|
メソッドの概要 | |
---|---|
protected Scriptlet |
buildScriptlet()
Scriptletを解決します。 |
protected boolean |
checkSitemap(java.lang.String sessionSeqVal,
java.lang.String sequenceValue)
サイトマップXMLにてシーケンスの検証を行なう |
protected java.lang.String |
getCharSet()
HttpServletResponse#setContentTypeに指定する、 CharSetの値を応答します。 |
protected java.lang.String |
getContentType()
HttpServletResponse#setContentTypeに指定する、 ContentTypeの値を応答します。 |
DBAccesser |
getDBAccessObject()
|
protected java.lang.String |
getFingerprintForSequence()
遷移画面でのシーケンス検証のため自分自身のフィンガープリントを作成する。 |
java.lang.String |
getInitSequence()
初期シーケンス(Scriptlet)のverifySequence()にて、 チェックする文字列を応答する。 |
protected java.lang.String |
getRelativePath()
相対パスを取得する。 |
javax.servlet.http.HttpServletRequest |
getRequest()
HttpServletRequestクラスのインスタンスを応答します。 |
javax.servlet.http.HttpServletResponse |
getResponse()
HttpServletResponseクラスのインスタンスを応答します。 |
java.lang.String |
getScriptExtName()
設定ファイルに指定した、スクリプトレットの拡張子を応答する。 |
java.lang.String |
getScriptletPath()
スクリプトレットのパスを取得します。 |
protected java.lang.String |
getSequence()
現在設定されているシーケンスオブジェクトを取得する関数 |
javax.servlet.http.HttpSession |
getSession()
HttpSessionクラスのインスタンスを応答します。 |
protected void |
initialize()
|
protected void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) |
void |
setCharSet(java.lang.String code)
文字コードを変更します。 |
protected void |
setSequence()
次のシーケンスに移行した際、正しいシーケンスであるためのフィンガープリントを設定します。 |
protected void |
setupDBObject()
|
protected void |
setupSiteMap()
サイトマップXMLを解析します。 |
boolean |
useDBObject()
DBアクセスオブジェクトが利用可能か検証する。 |
protected int |
verifySequence()
正当なシーケンスで要求されているか検証します。 |
クラス javax.servlet.http.HttpServlet から継承されたメソッド |
---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
クラス javax.servlet.GenericServlet から継承されたメソッド |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected static final java.lang.String SEQUENCE_KEY
protected static final java.lang.String SITEMAP_KEY
protected int sequenceId
protected java.lang.String charset
protected java.lang.String scriptletPath
protected java.lang.String sitemapPath
protected java.lang.String dbConfigPath
protected org.w3c.dom.Document sitemapXML
protected java.lang.String defaultScriptClassName
protected DBAccesser dbaccesser
protected java.lang.String extendName
public static final int CORRECT_SEQUENCE
public static final int CONTEXT_ACCESS_SEQUENCE
public static final int IGNORE_SEQUENCE
public static final int INVALID_SEQUENCE
public static final java.lang.String WILD_CARD_SEQUENCE
コンストラクタの詳細 |
---|
public SecureServlet()
メソッドの詳細 |
---|
protected void setupSiteMap() throws SystemErrorException
SystemErrorException
protected void setupDBObject() throws SystemErrorException
SystemErrorException
public boolean useDBObject()
public DBAccesser getDBAccessObject()
protected void initialize() throws IllegalAccessException, SystemErrorException
IllegalAccessException
SystemErrorException
protected Scriptlet buildScriptlet() throws SystemErrorException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
SystemErrorException
java.lang.ClassNotFoundException
IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalAccessException
protected final void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.io.IOException, javax.servlet.ServletException
HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
javax.servlet.http.HttpServlet
内の service
java.io.IOException
javax.servlet.ServletException
protected boolean checkSitemap(java.lang.String sessionSeqVal, java.lang.String sequenceValue)
sessionSeqVal
- sequenceValue
-
protected int verifySequence() throws IllegalAccessException
servlet
-
IllegalAccessException
protected void setSequence()
servlet
- protected java.lang.String getSequence()
protected java.lang.String getFingerprintForSequence()
protected java.lang.String getRelativePath()
public java.lang.String getInitSequence() throws IllegalAccessException
IllegalAccessException
public javax.servlet.http.HttpSession getSession()
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
protected java.lang.String getCharSet()
public void setCharSet(java.lang.String code)
code
- public java.lang.String getScriptletPath()
protected java.lang.String getContentType()
public java.lang.String getScriptExtName()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |