org.csapi.jr.se.mmm
Class GenericHeaderField

java.lang.Object
  extended byorg.csapi.jr.se.mmm.GenericHeaderField
All Implemented Interfaces:
java.io.Serializable

public final class GenericHeaderField
extends java.lang.Object
implements java.io.Serializable

Specifies the name and value of a header field.

See Also:
Serialized Form

Constructor Summary
GenericHeaderField()
          Creates a new GenericHeaderField instance.
GenericHeaderField(java.lang.String _fieldName, java.lang.String _fieldValue)
          Creates a new GenericHeaderField instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is 'equal to' this one.
 java.lang.String getFieldName()
          This method returns a fieldName.
 java.lang.String getFieldValue()
          This method returns a fieldValue.
 int hashCode()
          Returns a hashcode value for the object.
 void setFieldName(java.lang.String fieldName)
          This method sets a fieldName.
 void setFieldValue(java.lang.String fieldValue)
          This method sets a fieldValue.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericHeaderField

public GenericHeaderField()
Creates a new GenericHeaderField instance.


GenericHeaderField

public GenericHeaderField(java.lang.String _fieldName,
                          java.lang.String _fieldValue)
Creates a new GenericHeaderField instance.

Parameters:
_fieldName - Contains the field name of an RFC822 header field.
_fieldValue - Contains the field body of a RFC822 header field.
Method Detail

getFieldName

public java.lang.String getFieldName()
This method returns a fieldName.

Returns:
a String value

getFieldValue

public java.lang.String getFieldValue()
This method returns a fieldValue.

Returns:
a String value

setFieldName

public void setFieldName(java.lang.String fieldName)
This method sets a fieldName.


setFieldValue

public void setFieldValue(java.lang.String fieldValue)
This method sets a fieldValue.


equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is 'equal to' this one.


hashCode

public int hashCode()
Returns a hashcode value for the object.