Package org.restlet.data
Class Header
java.lang.Object
org.restlet.data.Header
- All Implemented Interfaces:
NamedValue<String>
Represents an HTTP header.
- Author:
- Jerome Louvel
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Header
public Header()Default constructor. -
Header
Constructor.- Parameters:
name- The header name.value- The header value.
-
-
Method Details
-
equals
-
getName
Returns the name.- Specified by:
getNamein interfaceNamedValue<String>- Returns:
- The name.
-
getValue
Returns the value.- Specified by:
getValuein interfaceNamedValue<String>- Returns:
- The value.
-
hashCode
public int hashCode() -
setName
Sets the name.- Parameters:
name- The name.
-
setValue
Sets the value.- Specified by:
setValuein interfaceNamedValue<String>- Parameters:
value- The value.
-
toString
-