|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PublicApi public interface RequestHeaders
This is a subset of the HttpServletResponse that just deals with setting headers.
HttpServletResponse
Method Summary | |
---|---|
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. |
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |