パッケージ jakarta.servlet
クラス ServletSecurityElement
java.lang.ObjectSE
jakarta.servlet.HttpConstraintElement
jakarta.servlet.ServletSecurityElement
ServletSecurity アノテーション値の Java クラス表現。- 導入:
- Servlet 3.0
コンストラクター概要
コンストラクターコンストラクター説明デフォルトのHttpConstraintElement値をデフォルトの Constraint 要素として使用し、HTTP メソッド固有の制約要素を使用せずにインスタンスを構築します。ServletSecurityElement(ServletSecurity annotation) ServletSecurityアノテーション値からインスタンスを構築します。ServletSecurityElement(HttpConstraintElement constraint) デフォルトの Constraint 要素を使用し、HTTP メソッド固有の制約要素を使用せずにインスタンスを構築します。ServletSecurityElement(HttpConstraintElement constraint, CollectionSE<HttpMethodConstraintElement> methodConstraints) デフォルトの Constraint 要素と HTTP メソッド固有の制約要素のコレクションを使用してインスタンスを構築します。ServletSecurityElement(CollectionSE<HttpMethodConstraintElement> methodConstraints) デフォルトのHttpConstraintElement値をデフォルトの Constraint 要素として使用し、HTTP メソッド固有の制約要素のコレクションを使用してインスタンスを構築します。方法の概要
修飾子と型メソッド説明HTTP メソッド固有の制約要素の(おそらく空の)コレクションを取得します。HttpMethodConstraints によって指定された HTTP メソッド名のセットを取得します。クラス jakarta.servlet.HttpConstraintElement から継承されたメソッド
getEmptyRoleSemantic, getRolesAllowed, getTransportGuarantee
コンストラクターの詳細
ServletSecurityElement
public ServletSecurityElement()デフォルトのHttpConstraintElement値をデフォルトの Constraint 要素として使用し、HTTP メソッド固有の制約要素を使用せずにインスタンスを構築します。ServletSecurityElement
デフォルトの Constraint 要素を使用し、HTTP メソッド固有の制約要素を使用せずにインスタンスを構築します。- パラメーター:
constraint- HttpConstraintElement は、methodConstraints で表現されるもの以外のすべての HTTP メソッドに適用されます。
ServletSecurityElement
デフォルトのHttpConstraintElement値をデフォルトの Constraint 要素として使用し、HTTP メソッド固有の制約要素のコレクションを使用してインスタンスを構築します。- パラメーター:
methodConstraints- HTTP メソッド固有の制約要素のコレクション- 例外:
IllegalArgumentExceptionSE- 重複するメソッド名が検出された場合
ServletSecurityElement
public ServletSecurityElement(HttpConstraintElement constraint, CollectionSE<HttpMethodConstraintElement> methodConstraints) デフォルトの Constraint 要素と HTTP メソッド固有の制約要素のコレクションを使用してインスタンスを構築します。- パラメーター:
constraint- HttpConstraintElement は、methodConstraints で表現されるもの以外のすべての HTTP メソッドに適用されます。methodConstraints- HTTP メソッド固有の制約要素のコレクション。- 例外:
IllegalArgumentExceptionSE- 重複するメソッド名が検出された場合
ServletSecurityElement
ServletSecurityアノテーション値からインスタンスを構築します。- パラメーター:
annotation- アノテーション値- 例外:
IllegalArgumentExceptionSE- 重複するメソッド名が検出された場合
方法の詳細
getHttpMethodConstraints
HTTP メソッド固有の制約要素の(おそらく空の)コレクションを取得します。許可されている場合、返された
Collectionへの変更は、このServletSecurityElementに影響してはなりません。- 戻り値:
- HttpMethodConstraintElement オブジェクトの(おそらく空の)コレクション
getMethodNames
HttpMethodConstraints によって指定された HTTP メソッド名のセットを取得します。許可されている場合、返された
Collectionへの変更は、このServletSecurityElementに影響してはなりません。- 戻り値:
- コレクション文字列メソッド名