MimeHeaders

   
MimeHeader javax.xml.soap

SAAJ 1.1; JWSDP 1.0, J2EE 1.4
 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.


   


Java Web Services in a Nutshell
Java Web Services in a Nutshell
ISBN: 0596003994
EAN: 2147483647
Year: 2003
Pages: 257
Authors: Kim Topley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net