Class HttpRequestHeaders

java.lang.Object
com.atlassian.jira.plugin.searchrequestview.HttpRequestHeaders
All Implemented Interfaces:
RequestHeaders

@Internal public class HttpRequestHeaders extends Object implements RequestHeaders
  • Constructor Details

    • HttpRequestHeaders

      public HttpRequestHeaders(jakarta.servlet.http.HttpServletResponse servletResponse)
  • Method Details

    • setDateHeader

      public void setDateHeader(String name, long date)
      Description copied from interface: RequestHeaders
      Sets a response header with the given name and date-value. The date is specified in terms of milliseconds since the epoch. If the header had already been set, the new value overwrites the previous one.
      Specified by:
      setDateHeader in interface RequestHeaders
      Parameters:
      name - the name of the header to set
      date - the assigned date value
      See Also:
    • addDateHeader

      public void addDateHeader(String name, long date)
      Description copied from interface: RequestHeaders
      Adds a response header with the given name and date-value. The date is specified in terms of milliseconds since the epoch. This method allows response headers to have multiple values.
      Specified by:
      addDateHeader in interface RequestHeaders
      Parameters:
      name - the name of the header to set
      date - the additional date value
      See Also:
    • setHeader

      public void setHeader(String name, String value)
      Description copied from interface: RequestHeaders
      Sets a response header with the given name and value.

      If the header had already been set, the new value overwrites the previous one.

      Specified by:
      setHeader in interface RequestHeaders
      Parameters:
      name - the name of the header
      value - the header value
      See Also:
    • addHeader

      public void addHeader(String name, String value)
      Description copied from interface: RequestHeaders
      Adds a response header with the given name and value.

      This method allows response headers to have multiple values.

      Specified by:
      addHeader in interface RequestHeaders
      Parameters:
      name - the name of the header
      value - the additional header value
      See Also:
    • setIntHeader

      public void setIntHeader(String name, int value)
      Description copied from interface: RequestHeaders
      Sets a response header with the given name and integer value. If the header had already been set, the new value overwrites the previous one. The containsHeader method can be used to test for the presence of a header before setting its value.
      Specified by:
      setIntHeader in interface RequestHeaders
      Parameters:
      name - the name of the header
      value - the assigned integer value
      See Also:
    • addIntHeader

      public void addIntHeader(String name, int value)
      Description copied from interface: RequestHeaders
      Adds a response header with the given name and integer value. This method allows response headers to have multiple values.
      Specified by:
      addIntHeader in interface RequestHeaders
      Parameters:
      name - the name of the header
      value - the assigned integer value
      See Also: