@PublicApi
public interface RequestHeaders
HttpServletResponse
Modifier and Type | Method and Description |
---|---|
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.
|
void setDateHeader(String name, long date)
name
- the name of the header to setdate
- the assigned date valueaddDateHeader(String, long)
void addDateHeader(String name, long date)
name
- the name of the header to setdate
- the additional date valuesetDateHeader(String, long)
void setHeader(String name, String value)
If the header had already been set, the new value overwrites the previous one.
name
- the name of the headervalue
- the header valueaddHeader(String, String)
void addHeader(String name, String value)
This method allows response headers to have multiple values.
name
- the name of the headervalue
- the additional header valuesetHeader(String, String)
void setIntHeader(String name, int value)
containsHeader
method can be used to test for the presence of a header before
setting its value.name
- the name of the headervalue
- the assigned integer valueaddIntHeader(String, int)
void addIntHeader(String name, int value)
name
- the name of the headervalue
- the assigned integer valuesetIntHeader(String, int)
Copyright © 2002-2015 Atlassian. All Rights Reserved.