com.atlassian.jira.plugin.searchrequestview.RequestHeaders |
![]() |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
This is a subset of the HttpServletResponse that just deals with setting headers.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a response header with the given name and
date-value.
| |||||||||||
Adds a response header with the given name and value.
| |||||||||||
Adds a response header with the given name and
integer value.
| |||||||||||
Sets a response header with the given name and date-value.
| |||||||||||
Sets a response header with the given name and value.
| |||||||||||
Sets a response header with the given name and
integer value.
|
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.
name | the name of the header to set |
---|---|
date | the additional date value |
Adds a response header with the given name and value.
This method allows response headers to have multiple values.
name | the name of the header |
---|---|
value | the additional header value |
Adds a response header with the given name and integer value. This method allows response headers to have multiple values.
name | the name of the header |
---|---|
value | the assigned integer value |
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.
name | the name of the header to set |
---|---|
date | the assigned date 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.
name | the name of the header |
---|---|
value | the header 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.
name | the name of the header |
---|---|
value | the assigned integer value |