rabbit.http
Class Header

java.lang.Object
  extended by rabbit.http.Header
All Implemented Interfaces:
Externalizable, Serializable

public class Header
extends Object
implements Externalizable

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

Author:
Robert Olofsson
See Also:
Serialized Form

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 readExternal(ObjectInput in)
           
 void setValue(String newValue)
           
 void writeExternal(ObjectOutput out)
           
 
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)

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException