Class Header
- java.lang.Object
-
- org.springframework.security.web.header.Header
-
public final class Header extends java.lang.Object
Represents 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 boolean
equals(java.lang.Object obj)
java.lang.String
getName()
Gets the name of the header.java.util.List<java.lang.String>
getValues()
Gets the values of the header.int
hashCode()
java.lang.String
toString()
-
-
-
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 obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-