org.ros.internal.transport
Class ConnectionHeader

java.lang.Object
  extended by org.ros.internal.transport.ConnectionHeader

public class ConnectionHeader
extends java.lang.Object


Method Summary
static java.util.Map<java.lang.String,java.lang.String> decode(org.jboss.netty.buffer.ChannelBuffer buffer)
          Decodes a header that came over the wire into a Map of fields and values.
static org.jboss.netty.buffer.ChannelBuffer encode(java.util.Map<java.lang.String,java.lang.String> header)
          Encodes a header Map of fields and values for transmission over the wire.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decode

public static java.util.Map<java.lang.String,java.lang.String> decode(org.jboss.netty.buffer.ChannelBuffer buffer)
Decodes a header that came over the wire into a Map of fields and values.

Parameters:
buffer - the incoming ChannelBuffer containing the header
Returns:
a Map of header fields and values

encode

public static org.jboss.netty.buffer.ChannelBuffer encode(java.util.Map<java.lang.String,java.lang.String> header)
Encodes a header Map of fields and values for transmission over the wire.

Parameters:
header - a Map of header fields and values
Returns:
a ChannelBuffer containing the encoded header for wire transmission