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


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
Part()
          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
 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 setContentId(java.lang.String newCid)
          Sets Content-Id of this part.
 void setContentLocation(java.lang.String loc)
          Set content location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

Part

public Part()
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.

getContentLocation

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

setContentLocation

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

setContentId

public void setContentId(java.lang.String newCid)
Sets Content-Id of this part. "cid:" prefix will be added if one wan't already defined.
Parameters:
newCid - new Content-Id

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.