Class HttpRequestHeaders
java.lang.Object
com.atlassian.jira.plugin.searchrequestview.HttpRequestHeaders
- All Implemented Interfaces:
RequestHeaders
-
Constructor Summary
ConstructorsConstructorDescriptionHttpRequestHeaders(jakarta.servlet.http.HttpServletResponse servletResponse) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDateHeader(String name, long date) Adds a response header with the given name and date-value.voidAdds a response header with the given name and value.voidaddIntHeader(String name, int value) Adds a response header with the given name and integer value.voidsetDateHeader(String name, long date) Sets a response header with the given name and date-value.voidSets a response header with the given name and value.voidsetIntHeader(String name, int value) Sets a response header with the given name and integer value.
-
Constructor Details
-
HttpRequestHeaders
public HttpRequestHeaders(jakarta.servlet.http.HttpServletResponse servletResponse)
-
-
Method Details
-
setDateHeader
Description copied from interface:RequestHeadersSets 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:
setDateHeaderin interfaceRequestHeaders- Parameters:
name- the name of the header to setdate- the assigned date value- See Also:
-
addDateHeader
Description copied from interface:RequestHeadersAdds 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:
addDateHeaderin interfaceRequestHeaders- Parameters:
name- the name of the header to setdate- the additional date value- See Also:
-
setHeader
Description copied from interface:RequestHeadersSets 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:
setHeaderin interfaceRequestHeaders- Parameters:
name- the name of the headervalue- the header value- See Also:
-
addHeader
Description copied from interface:RequestHeadersAdds a response header with the given name and value.This method allows response headers to have multiple values.
- Specified by:
addHeaderin interfaceRequestHeaders- Parameters:
name- the name of the headervalue- the additional header value- See Also:
-
setIntHeader
Description copied from interface:RequestHeadersSets a response header with the given name and integer value. If the header had already been set, the new value overwrites the previous one. ThecontainsHeadermethod can be used to test for the presence of a header before setting its value.- Specified by:
setIntHeaderin interfaceRequestHeaders- Parameters:
name- the name of the headervalue- the assigned integer value- See Also:
-
addIntHeader
Description copied from interface:RequestHeadersAdds a response header with the given name and integer value. This method allows response headers to have multiple values.- Specified by:
addIntHeaderin interfaceRequestHeaders- Parameters:
name- the name of the headervalue- the assigned integer value- See Also:
-