|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrabbit.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)
type
- the type of this headervalue
- the actual valueMethod Detail |
---|
public String getType()
public String getValue()
public void setValue(String newValue)
newValue
- the new valuepublic boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void append(String s)
s
- the String to append to the current valuepublic void write(DataOutput out) throws IOException
Storable
write
in interface Storable
out
- the output to write to
IOException
- if writing failspublic void read(DataInput in) throws IOException
Storable
read
in interface Storable
in
- the input to read from
IOException
- if reading fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |