|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.security.web.header.writers.StaticHeadersWriter
public class StaticHeadersWriter
HeaderWriter
implementation which writes the same Header
instance.
Constructor Summary | |
---|---|
StaticHeadersWriter(List<Header> headers)
Creates a new instance |
|
StaticHeadersWriter(String headerName,
String... headerValues)
Creates a new instance with a single header |
Method Summary | |
---|---|
String |
toString()
|
void |
writeHeaders(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Create a Header instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StaticHeadersWriter(List<Header> headers)
headers
- the Header
instances to usepublic StaticHeadersWriter(String headerName, String... headerValues)
headerName
- the name of the headerheaderValues
- the values for the headerMethod Detail |
---|
public void writeHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
HeaderWriter
Header
instance.
writeHeaders
in interface HeaderWriter
request
- the requestresponse
- the responsepublic String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |