public class MimeHeader {
// Public Constructors
public MimeHeader( String name, String value);
// Public Instance Methods
public String getName( );
public String getValue( );
}
MimeHeader is a simple class that acts as a
container for the name and value of a MIME header. A SOAP message may
have MIME headers associated with its SOAPMessage
object and, if it has any attachments, the
SOAPPart and each
AttachmentPart may have its own MIME headers.
MimeHeader objects are usually grouped together
and stored in a MimeHeaders object.
The getName( ) and getValue( )
methods return the name and value of the MIME header, respectively.
Typical values for these attributes might be
Content-Type and text/xml. A
SOAP message may have multiple headers with the same name but
different values. In this case, each individual name/value pair has
its own MimeHeader object. The
MimeHeaders class provides methods that allow all
of the values for a given header to be retrieved.