Class Header
- java.lang.Object
-
- org.springframework.security.web.header.Header
-
public final class Header extends java.lang.ObjectRepresents a Header to be added to theHttpServletResponse
-
-
Constructor Summary
Constructors Constructor Description Header(java.lang.String headerName, java.lang.String... headerValues)Creates a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetName()Gets the name of the header.java.util.List<java.lang.String>getValues()Gets the values of the header.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name of the header. Cannot benull.- Returns:
- the name of the header.
-
getValues
public java.util.List<java.lang.String> getValues()
Gets the values of the header. Cannot be null, empty, or contain null values.- Returns:
- the values of the header
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-