Class ContentTypeOptionsHeader

java.lang.Object
nablarch.fw.web.handler.secure.ContentTypeOptionsHeader
All Implemented Interfaces:
SecureResponseHeader

public class ContentTypeOptionsHeader extends Object implements SecureResponseHeader
X-Content-Type-Optionsレスポンスヘッダを設定するクラス。
  • Constructor Details

    • ContentTypeOptionsHeader

      public ContentTypeOptionsHeader()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: SecureResponseHeader
      レスポンスヘッダの名前を返す。
      Specified by:
      getName in interface SecureResponseHeader
      Returns:
      レスポンスヘッダの名前
    • getValue

      public String getValue()
      Description copied from interface: SecureResponseHeader
      レスポンスヘッダの値を返す。
      Specified by:
      getValue in interface SecureResponseHeader
      Returns:
      レスポンスヘッダの値
    • isOutput

      public boolean isOutput(HttpResponse response, ServletExecutionContext context)
      常に出力する。
      Specified by:
      isOutput in interface SecureResponseHeader
      Parameters:
      response - レスポンスオブジェクト
      context - Servlet APIの情報を持つコンテキスト
      Returns:
      出力する場合はtrue
    • setOption

      public void setOption(String option)
      X-Content-Type-Optionsレスポンスヘッダに出力する値を設定する。
      Parameters:
      option - X-Content-Type-Optionsレスポンスヘッダに出力する値