org.apache.axis
Class Part

java.lang.Object
  |
  +--org.apache.axis.Part
Direct Known Subclasses:
AttachmentPart, SOAPPart

public abstract class Part
extends java.lang.Object


Constructor Summary
Part(Message parent)
          Fill in the Message field.
 
Method Summary
 void addMimeHeader(java.lang.String header, java.lang.String value)
          Add the specified MIME header, as per JAXM.
 java.lang.String getContentId()
          Content ID.
 java.lang.String getContentLocation()
          Content location.
abstract  java.lang.String getContentType()
          Content type.
 java.util.Iterator getMatchingMimeHeaders(java.lang.String[] match)
          Get all headers that match
 Message getMessage()
          Get the Message for this Part.
 java.lang.String getMimeHeader(java.lang.String header)
          Get the specified MIME header.
static java.lang.String getNewContentIdValue()
           
 java.util.Iterator getNonMatchingMimeHeaders(java.lang.String[] match)
          Get all headers that do not match
 void setContentLocation(java.lang.String loc)
          Set content location.
 void setMessage(Message msg)
          Set the Message for this Part.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Part

public Part(Message parent)
Fill in the Message field. (Of course this can only be called by subclass constructors since Part itself is abstract.)
Method Detail

addMimeHeader

public void addMimeHeader(java.lang.String header,
                          java.lang.String value)
Add the specified MIME header, as per JAXM.

getMimeHeader

public java.lang.String getMimeHeader(java.lang.String header)
Get the specified MIME header.

getMessage

public Message getMessage()
Get the Message for this Part.

setMessage

public void setMessage(Message msg)
Set the Message for this Part.

getContentLocation

public java.lang.String getContentLocation()
Content location.

setContentLocation

public void setContentLocation(java.lang.String loc)
Set content location.

getContentId

public java.lang.String getContentId()
Content ID.

getMatchingMimeHeaders

public java.util.Iterator getMatchingMimeHeaders(java.lang.String[] match)
Get all headers that match

getNonMatchingMimeHeaders

public java.util.Iterator getNonMatchingMimeHeaders(java.lang.String[] match)
Get all headers that do not match

getContentType

public abstract java.lang.String getContentType()
Content type.

getNewContentIdValue

public static java.lang.String getNewContentIdValue()


Copyright © 2001 Apache XML Project. All Rights Reserved.