com.ibm.commerce.messaging.outboundservice
Class ContentPart

java.lang.Object
  |
  +--com.ibm.commerce.messaging.outboundservice.ContentPart
All Implemented Interfaces:
java.io.Serializable

public class ContentPart
extends java.lang.Object
implements java.io.Serializable

An object that represents a portion of a message that can be sent by a transport.

See Also:
Serialized Form

Constructor Summary
ContentPart()
          Construct the ContentPart object.
 
Method Summary
 java.lang.String getName()
          Returns the name of the content part.
 byte[] getPart()
          Returns the main portion of the content part.
 java.lang.String getType()
          Returns the type of the content part.
 void setName(java.lang.String newName)
          Sets the name of the content part.
 void setPart(byte[] newPart)
          Sets the main portion of the content part.
 void setType(java.lang.String newType)
          Sets the type of the content part.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentPart

public ContentPart()
Construct the ContentPart object.
Method Detail

getName

public java.lang.String getName()
Returns the name of the content part.
Returns:
java.lang.String The name.

getPart

public byte[] getPart()
Returns the main portion of the content part.
Returns:
byte[] The main portion in byte format.

getType

public java.lang.String getType()
Returns the type of the content part.
Returns:
java.lang.String The Type

setName

public void setName(java.lang.String newName)
Sets the name of the content part.
Parameters:
newName - java.lang.String The name.

setPart

public void setPart(byte[] newPart)
Sets the main portion of the content part.
Parameters:
newPart - byte[] The main portion in byte format.

setType

public void setType(java.lang.String newType)
Sets the type of the content part.
Parameters:
newType - java.lang.String The Type.