org.springframework.security.web.header
Class Header

java.lang.Object
  extended by org.springframework.security.web.header.Header

public final class Header
extends Object

Represents a Header to be added to the HttpServletResponse


Constructor Summary
Header(String headerName, String... headerValues)
          Creates a new instance
 
Method Summary
 String getName()
          Gets the name of the header.
 List<String> getValues()
          Gets the values of the header.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Header

public Header(String headerName,
              String... headerValues)
Creates a new instance

Parameters:
headerName - the name of the header
headerValues - the values of the header
Method Detail

getName

public String getName()
Gets the name of the header. Cannot be null.

Returns:
the name of the header.

getValues

public List<String> getValues()
Gets the values of the header. Cannot be null, empty, or contain null values.

Returns:
the values of the header

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object