edu.neu.ccs.demeterf.http.classes
Class MsgHead

java.lang.Object
  extended by edu.neu.ccs.demeterf.http.classes.MsgHead

public class MsgHead
extends java.lang.Object

Representation of MsgHead


Nested Class Summary
static class MsgHead.key
          Field Class for MsgHead.key
static class MsgHead.value
          Field Class for MsgHead.value
 
Constructor Summary
MsgHead(ident key, ident value)
          Construct a(n) MsgHead Instance
MsgHead(java.lang.String k, java.lang.String v)
          Create a MsgHeader from key/value Strings
 
Method Summary
 boolean equals(java.lang.Object o)
          Is the given object Equal to this MsgHead?
 ident getKey()
          Getter for field MsgHead.key
 ident getValue()
          Getter for field MsgHead.value
static MsgHead parse(java.io.InputStream inpt)
          Parse an instance of MsgHead from the given Stream
static MsgHead parse(java.io.Reader inpt)
          Parse an instance of MsgHead from the given Reader
static MsgHead parse(java.lang.String inpt)
          Parse an instance of MsgHead from the given String
 java.lang.String toString()
          DGP method from Class PrintToString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MsgHead

public MsgHead(ident key,
               ident value)
Construct a(n) MsgHead Instance


MsgHead

public MsgHead(java.lang.String k,
               java.lang.String v)
Create a MsgHeader from key/value Strings

Method Detail

equals

public boolean equals(java.lang.Object o)
Is the given object Equal to this MsgHead?

Overrides:
equals in class java.lang.Object

parse

public static MsgHead parse(java.lang.String inpt)
                     throws ParseException
Parse an instance of MsgHead from the given String

Throws:
ParseException

parse

public static MsgHead parse(java.io.InputStream inpt)
                     throws ParseException
Parse an instance of MsgHead from the given Stream

Throws:
ParseException

parse

public static MsgHead parse(java.io.Reader inpt)
                     throws ParseException
Parse an instance of MsgHead from the given Reader

Throws:
ParseException

toString

public java.lang.String toString()
DGP method from Class PrintToString

Overrides:
toString in class java.lang.Object

getValue

public ident getValue()
Getter for field MsgHead.value


getKey

public ident getKey()
Getter for field MsgHead.key