Package nablarch.fw.web.handler.secure
Class ContentTypeOptionsHeader
java.lang.Object
nablarch.fw.web.handler.secure.ContentTypeOptionsHeader
- All Implemented Interfaces:
SecureResponseHeader
X-Content-Type-Optionsレスポンスヘッダを設定するクラス。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
レスポンスヘッダの名前を返す。getValue()
レスポンスヘッダの値を返す。boolean
isOutput
(HttpResponse response, ServletExecutionContext context) 常に出力する。void
X-Content-Type-Optionsレスポンスヘッダに出力する値を設定する。
-
Constructor Details
-
ContentTypeOptionsHeader
public ContentTypeOptionsHeader()
-
-
Method Details
-
getName
Description copied from interface:SecureResponseHeader
レスポンスヘッダの名前を返す。- Specified by:
getName
in interfaceSecureResponseHeader
- Returns:
- レスポンスヘッダの名前
-
getValue
Description copied from interface:SecureResponseHeader
レスポンスヘッダの値を返す。- Specified by:
getValue
in interfaceSecureResponseHeader
- Returns:
- レスポンスヘッダの値
-
isOutput
常に出力する。- Specified by:
isOutput
in interfaceSecureResponseHeader
- Parameters:
response
- レスポンスオブジェクトcontext
- Servlet APIの情報を持つコンテキスト- Returns:
- 出力する場合は
true
-
setOption
X-Content-Type-Optionsレスポンスヘッダに出力する値を設定する。- Parameters:
option
- X-Content-Type-Optionsレスポンスヘッダに出力する値
-