|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rabbit.http.Header
public class Header
This class holds a single header value, that is a "type: some text"
Field Summary | |
---|---|
static String |
CRLF
The String consisting of \r and \n |
Constructor Summary | |
---|---|
Header()
Used for externalization. |
|
Header(String type,
String value)
Create a new header |
Method Summary | |
---|---|
void |
append(String s)
Update the value by appending the given string to it. |
boolean |
equals(Object o)
|
String |
getType()
Get the type of this header. |
String |
getValue()
Get the value of this header. |
int |
hashCode()
|
void |
read(DataInput in)
Fill in this object with data from the given input. |
void |
setValue(String newValue)
Set the value of this header to the new value given. |
void |
write(DataOutput out)
Write this object to the given output. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CRLF
Constructor Detail |
---|
public Header()
public Header(String type, String value)
Method Detail |
---|
public String getType()
public String getValue()
public void setValue(String newValue)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void append(String s)
public void write(DataOutput out) throws IOException
Storable
write
in interface Storable
IOException
public void read(DataInput in) throws IOException
Storable
read
in interface Storable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |