|
||||||||||
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 java.lang.String |
CRLF
The String consisting of \r and \n |
Constructor Summary | |
---|---|
Header()
Used for externalization. |
|
Header(java.lang.String type,
java.lang.String value)
Create a new header |
Method Summary | |
---|---|
void |
append(java.lang.String s)
Update the value by appending the given string to it. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getType()
Get the type of this header. |
java.lang.String |
getValue()
Get the value of this header. |
int |
hashCode()
|
void |
read(java.io.DataInput in)
Fill in this object with data from the given input. |
void |
setValue(java.lang.String newValue)
Set the value of this header to the new value given. |
void |
write(java.io.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 java.lang.String CRLF
Constructor Detail |
---|
public Header()
public Header(java.lang.String type, java.lang.String value)
type
- the type of this headervalue
- the actual valueMethod Detail |
---|
public java.lang.String getType()
public java.lang.String getValue()
public void setValue(java.lang.String newValue)
newValue
- the new valuepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void append(java.lang.String s)
s
- the String to append to the current valuepublic void write(java.io.DataOutput out) throws java.io.IOException
Storable
write
in interface Storable
out
- the output to write to
java.io.IOException
- if writing failspublic void read(java.io.DataInput in) throws java.io.IOException
Storable
read
in interface Storable
in
- the input to read from
java.io.IOException
- if reading fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |