com.ibm.wbi.protocol.http
Class ParseMimeObject

java.lang.Object
  |
  +--com.ibm.wbi.protocol.http.ParseMimeObject

public final class ParseMimeObject
extends java.lang.Object

Encapsulates a parsed MIME object from the ParseMime object.


Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
ParseMimeObject(java.lang.String s)
          Construct a new parse MIME object with the specified key and no initial values.
ParseMimeObject(java.lang.String s, java.util.Vector v)
          Construct a new parse MIME object with the specified key and values.
 
Method Summary
 void addValue(java.lang.String value)
          Add a value.
 java.lang.String getFirst()
          Get the first value.
 java.lang.String getKey()
          Get the key.
 java.util.Vector getVector()
          Get all the values in a vector.
 void setVector(java.util.Vector vec)
          Set the values to the values in the vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

ParseMimeObject

public ParseMimeObject(java.lang.String s)
Construct a new parse MIME object with the specified key and no initial values.
Parameters:
s - Key.

ParseMimeObject

public ParseMimeObject(java.lang.String s,
                       java.util.Vector v)
Construct a new parse MIME object with the specified key and values.
Parameters:
s - Key.
v - The values.
Method Detail

getKey

public java.lang.String getKey()
Get the key.
Returns:
The key.

addValue

public void addValue(java.lang.String value)
Add a value.
Parameters:
value - The value to add.

getFirst

public java.lang.String getFirst()
Get the first value.
Returns:
The first value.

getVector

public java.util.Vector getVector()
Get all the values in a vector.
Returns:
Values vector.

setVector

public void setVector(java.util.Vector vec)
Set the values to the values in the vector.
Parameters:
vec - The values vector.