public class ConnectionHeader
extends java.lang.Object
Constructor and Description |
---|
ConnectionHeader() |
Modifier and Type | Method and Description |
---|---|
void |
addField(java.lang.String name,
java.lang.String value) |
static ConnectionHeader |
decode(org.jboss.netty.buffer.ChannelBuffer buffer)
Decodes a header that came over the wire into a
Map of fields and
values. |
org.jboss.netty.buffer.ChannelBuffer |
encode()
Encodes this
ConnectionHeader for transmission over the wire. |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getField(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.String> |
getFields() |
boolean |
hasField(java.lang.String name) |
int |
hashCode() |
void |
merge(ConnectionHeader other) |
void |
mergeFields(java.util.Map<java.lang.String,java.lang.String> other) |
java.lang.String |
toString() |
public static ConnectionHeader decode(org.jboss.netty.buffer.ChannelBuffer buffer)
Map
of fields and
values.buffer
- the incoming ChannelBuffer
containing the headerMap
of header fields and valuespublic org.jboss.netty.buffer.ChannelBuffer encode()
ConnectionHeader
for transmission over the wire.ChannelBuffer
containing the encoded header for wire
transmissionpublic void merge(ConnectionHeader other)
public void mergeFields(java.util.Map<java.lang.String,java.lang.String> other)
public void addField(java.lang.String name, java.lang.String value)
public java.util.Map<java.lang.String,java.lang.String> getFields()
public boolean hasField(java.lang.String name)
public java.lang.String getField(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object