public class MockServletConfig extends ObjectSE implements ServletConfigEE
ServletConfigEE インターフェースのモック実装。| コンストラクターと説明 |
|---|
MockServletConfig() デフォルトの MockServletContext で新しい MockServletConfig を作成します。 |
MockServletConfig(ServletContextEE servletContext) 新しい MockServletConfig を作成します。 |
MockServletConfig(ServletContextEE servletContext, StringSE servletName) 新しい MockServletConfig を作成します。 |
MockServletConfig(StringSE servletName) デフォルトの MockServletContext で新しい MockServletConfig を作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | addInitParameter(StringSE name, StringSE value) |
StringSE | getInitParameter(StringSE name) 指定された名前の初期化パラメーターの値を取得します。 |
EnumerationSE<StringSE> | getInitParameterNames() サーブレットの初期化パラメーターの名前を String オブジェクトの Enumeration として、またはサーブレットに初期化パラメーターがない場合は空の Enumeration を返します。 |
ServletContextEE | getServletContext() 呼び出し元が実行されている ServletContextEE への参照を返します。 |
StringSE | getServletName() このサーブレットインスタンスの名前を返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic MockServletConfig()
MockServletContext で新しい MockServletConfig を作成します。public MockServletConfig(StringSE servletName)
MockServletContext で新しい MockServletConfig を作成します。servletName - サーブレットの名前 public MockServletConfig(@Nullable ServletContextEE servletContext)
servletContext - サーブレットが実行される ServletContextpublic MockServletConfig(@Nullable ServletContextEE servletContext, StringSE servletName)
servletContext - サーブレットが実行される ServletContextservletName - サーブレットの名前 public StringSE getServletName()
javax.servlet.ServletConfigEEServletConfigEE の getServletNameEE public ServletContextEE getServletContext()
javax.servlet.ServletConfigEEServletContextEE への参照を返します。ServletConfigEE の getServletContextEE ServletContextEE オブジェクト ServletContextEEpublic StringSE getInitParameter(StringSE name)
javax.servlet.ServletConfigEEServletConfigEE の getInitParameterEE name - 値を取得する初期化パラメーターの名前 String、または初期化パラメーターが存在しない場合は null public EnumerationSE<StringSE> getInitParameterNames()
javax.servlet.ServletConfigEEString オブジェクトの Enumeration として、またはサーブレットに初期化パラメーターがない場合は空の Enumeration を返します。ServletConfigEE の getInitParameterNamesEE String オブジェクトの Enumeration