rabbit.http
Class Header

java.lang.Object
  extended by rabbit.http.Header
All Implemented Interfaces:
Storable

public class Header
extends Object
implements Storable

This class holds a header value, that is a "type: some text"

Author:
Robert Olofsson

Field Summary
static String CRLF
          The String consisting of \r and \n
 
Constructor Summary
Header()
          Used for externalization
Header(String type, String value)
           
 
Method Summary
 void append(String s)
           
 boolean equals(Object o)
           
 String getType()
           
 String getValue()
           
 int hashCode()
           
 void read(DataInput in)
          Fill in this object with data from the given input.
 void setValue(String newValue)
           
 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

CRLF

public static final String CRLF
The String consisting of \r and \n

See Also:
Constant Field Values
Constructor Detail

Header

public Header()
Used for externalization


Header

public Header(String type,
              String value)
Method Detail

getType

public String getType()

getValue

public String getValue()

setValue

public void setValue(String newValue)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

append

public void append(String s)

write

public void write(DataOutput out)
           throws IOException
Description copied from interface: Storable
Write this object to the given output.

Specified by:
write in interface Storable
Throws:
IOException

read

public void read(DataInput in)
          throws IOException
Description copied from interface: Storable
Fill in this object with data from the given input.

Specified by:
read in interface Storable
Throws:
IOException