All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.doit.muffin.Message

java.lang.Object
   |
   +----org.doit.muffin.Message

public abstract class Message
extends Object
Abstract class to represent message headers.

Author:
Mark Boyns

Constructor Index

 o Message()

Method Index

 o appendHeaderField(String, String)
 o appendHeaderField(String, String, int)
 o containsHeaderField(String)
Return whether or not a header exists.
 o getHeaderField(String)
 o getHeaderField(String, int)
 o getHeaders()
 o getHeaderValueCount(String)
 o headerCount()
 o removeHeaderField(String)
 o setHeaderField(String, int)
 o setHeaderField(String, int, int)
 o setHeaderField(String, String)
 o setHeaderField(String, String, int)
 o setStatusLine(String)
Set the Status line.
 o toString()
 o toString(String)
Return a string represenation of the headers.

Constructors

 o Message
 public Message()

Methods

 o headerCount
 public int headerCount()
 o setStatusLine
 public void setStatusLine(String l)
Set the Status line.

 o getHeaderValueCount
 public int getHeaderValueCount(String name)
 o getHeaderField
 public String getHeaderField(String name)
 o getHeaderField
 public String getHeaderField(String name,
                              int index)
 o setHeaderField
 public void setHeaderField(String name,
                            String value)
 o setHeaderField
 public void setHeaderField(String name,
                            String value,
                            int index)
 o setHeaderField
 public void setHeaderField(String name,
                            int value)
 o setHeaderField
 public void setHeaderField(String name,
                            int value,
                            int index)
 o appendHeaderField
 public void appendHeaderField(String name,
                               String value)
 o appendHeaderField
 public void appendHeaderField(String name,
                               String value,
                               int index)
 o removeHeaderField
 public void removeHeaderField(String name)
 o containsHeaderField
 public boolean containsHeaderField(String name)
Return whether or not a header exists.

Parameters:
name - header name
 o getHeaders
 public Enumeration getHeaders()
 o toString
 public String toString()
Overrides:
toString in class Object
 o toString
 public String toString(String sep)
Return a string represenation of the headers.


All Packages  Class Hierarchy  This Package  Previous  Next  Index