java.lang.Object | +--com.ibm.commerce.messaging.outboundservice.WCMSRecord
The WCSRecord class
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT Copyright statement. |
Constructor Summary | |
---|---|
WCMSRecord() WCMSRecord constructor comment. |
Method Summary | |
---|---|
void |
addPart(ContentPart part) Adds a new content part to the message. |
java.lang.Object |
clone() Calls super.clone(). |
int |
countParts() Returns the number of content parts in the message. |
byte[] |
getBytes() Returns the content of the message body in byte format. |
byte[] |
getBytes(java.lang.String csClassName, InteractionSpec is) Returns the content of the message in byte format according to ConnectionSpec. |
java.lang.Object |
getContentObject() Gets the object |
java.lang.String |
getContentType() Gets contentType |
ContentPart |
getPart(int index) Returns the content part based on the given index. |
java.lang.String |
getRecordName() Gets RecordName. |
java.lang.String |
getRecordShortDescription() Gets RecordShortDescription. |
void |
read(java.io.InputStream arg1) Read an object into an input stream. |
void |
setBytes(byte[] arg1) Sets the bytes of the IByteBuffer. |
void |
setContentObject(java.lang.Object contentObject) Sets the content object |
void |
setContentType(java.lang.String content_type) Sets content type |
void |
setRecordName(java.lang.String arg1) Sets RecordName. |
void |
setRecordShortDescription(java.lang.String arg1) Sets RecordShortDescription. |
void |
write(java.io.OutputStream arg1) Writes the output stream into a byte array. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString,
wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public WCMSRecord()
Method Detail |
---|
public void addPart(ContentPart part)
part
- ContentPart The content part.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- rasied when clone is
not supported.public int countParts()
public byte[] getBytes()
public byte[] getBytes(java.lang.String csClassName, InteractionSpec is)
csClassName
- The ConnectionSpec objectis
- The InteractionSpec objectpublic java.lang.Object getContentObject()
public java.lang.String getContentType()
public ContentPart getPart(int index)
index
- int The index of the content part to return.public java.lang.String getRecordName()
public java.lang.String getRecordShortDescription()
public void read(java.io.InputStream arg1) throws java.io.IOException
arg1
- The input streamjava.io.IOException
- Raised if there is
java.IOExceptionpublic void setBytes(byte[] arg1)
arg1
- byte[] the byte array.public void setContentObject(java.lang.Object contentObject)
contentObject
- The contentObject is set.public void setContentType(java.lang.String content_type)
content_type
- The message content type.public void setRecordName(java.lang.String arg1)
arg1
- The RecordName.public void setRecordShortDescription(java.lang.String arg1)
arg1
- The RecordShortDescription.public void write(java.io.OutputStream arg1) throws java.io.IOException
arg1
- The output stream.IOException.
- Raised when there is java.IOException.java.io.IOException