@Internal public class

HttpRequestHeaders

extends Object
implements RequestHeaders
java.lang.Object
   ↳ com.atlassian.jira.plugin.searchrequestview.HttpRequestHeaders

@Internal

This class is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

Summary

Public Constructors
HttpRequestHeaders(HttpServletResponse servletResponse)
Public Methods
void addDateHeader(String name, long date)
Adds a response header with the given name and date-value.
void addHeader(String name, String value)
Adds a response header with the given name and value.
void addIntHeader(String name, int value)
Adds a response header with the given name and integer value.
void setDateHeader(String name, long date)
Sets a response header with the given name and date-value.
void setHeader(String name, String value)
Sets a response header with the given name and value.
void setIntHeader(String name, int value)
Sets a response header with the given name and integer value.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.plugin.searchrequestview.RequestHeaders

Public Constructors

public HttpRequestHeaders (HttpServletResponse servletResponse)

Public Methods

public void addDateHeader (String name, long date)

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.

Parameters
name the name of the header to set
date the additional date value

public void addHeader (String name, String value)

Adds a response header with the given name and value.

This method allows response headers to have multiple values.

Parameters
name the name of the header
value the additional header value

public void addIntHeader (String name, int value)

Adds a response header with the given name and integer value. This method allows response headers to have multiple values.

Parameters
name the name of the header
value the assigned integer value

public void setDateHeader (String name, long date)

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.

Parameters
name the name of the header to set
date the assigned date value

public void setHeader (String name, String value)

Sets a response header with the given name and value.

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

Parameters
name the name of the header
value the header value

public void setIntHeader (String name, int value)

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.

Parameters
name the name of the header
value the assigned integer value