rabbit.http
Class Header
java.lang.Object
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 |
CRLF
public static final String CRLF
- The String consisting of \r and \n
- See Also:
- Constant Field Values
Header
public Header()
- Used for externalization
Header
public Header(String type,
String value)
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