public class Header extends java.lang.Object implements NamedValue<java.lang.String>
Constructor and Description |
---|
Header()
Default constructor.
|
Header(java.lang.String name,
java.lang.String value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Returns the name.
|
java.lang.String |
getValue()
Returns the value.
|
int |
hashCode() |
void |
setName(java.lang.String name)
Sets the name.
|
void |
setValue(java.lang.String value)
Sets the value.
|
java.lang.String |
toString() |
public Header()
public Header(java.lang.String name, java.lang.String value)
name
- The header name.value
- The header value.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getName()
getName
in interface NamedValue<java.lang.String>
public java.lang.String getValue()
getValue
in interface NamedValue<java.lang.String>
public int hashCode()
hashCode
in class java.lang.Object
public void setName(java.lang.String name)
name
- The name.public void setValue(java.lang.String value)
setValue
in interface NamedValue<java.lang.String>
value
- The value.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2024 Restlet.