public class WCMSRecord
extends java.lang.Object
implements javax.resource.cci.Record, javax.resource.cci.Streamable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright statement.
|
Constructor and Description |
---|
WCMSRecord()
The WCMSRecord constructor calls its superclass constructor and performs initialization of the record.
|
Modifier and Type | Method and Description |
---|---|
void |
addPart(com.ibm.commerce.messaging.outboundservice.ContentPart part)
This method adds a new content part to the message.
|
java.lang.Object |
clone()
This method calls super.clone().
|
int |
countParts()
This method returns the number of content parts in the message.
|
byte[] |
getBytes()
This message returns the content of the message body in byte format.
|
byte[] |
getBytes(java.lang.String csClassName,
javax.resource.cci.InteractionSpec is)
This method returns the content of the message in byte format according to the ConnectionSpec object.
|
java.lang.Object |
getContentObject()
This method gets a content object.
|
java.lang.String |
getContentType()
This method gets a content type.
|
com.ibm.commerce.messaging.outboundservice.ContentPart |
getPart(int index)
This method returns the content part based on the given index.
|
java.lang.String |
getRecordName()
This method gets the RecordName.
|
java.lang.String |
getRecordShortDescription()
This method gets the RecordShortDescription.
|
void |
read(java.io.InputStream arg1)
This method reads an object into an input stream.
|
void |
setBytes(byte[] arg1)
This method sets the bytes of the IByteBuffer.
|
void |
setContentObject(java.lang.Object newContentObj)
This method sets the content object.
|
void |
setContentType(java.lang.String content_type)
This method sets the content type.
|
void |
setRecordName(java.lang.String arg1)
This method sets the record name.
|
void |
setRecordShortDescription(java.lang.String arg1)
This method sets the RecordShortDescription.
|
void |
write(java.io.OutputStream arg1)
This method writes the output stream into a byte array.
|
public static final java.lang.String COPYRIGHT
public WCMSRecord()
public void addPart(com.ibm.commerce.messaging.outboundservice.ContentPart part)
part
- The content part to add.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface javax.resource.cci.Record
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- Raised when clone is not supported.public int countParts()
public byte[] getBytes()
public byte[] getBytes(java.lang.String csClassName, javax.resource.cci.InteractionSpec is)
csClassName
- The ConnectionSpec objectis
- The InteractionSpec objectpublic java.lang.Object getContentObject()
public java.lang.String getContentType()
public com.ibm.commerce.messaging.outboundservice.ContentPart getPart(int index)
index
- The Integer index of the content part to return.public java.lang.String getRecordName()
getRecordName
in interface javax.resource.cci.Record
public java.lang.String getRecordShortDescription()
getRecordShortDescription
in interface javax.resource.cci.Record
public void read(java.io.InputStream arg1) throws java.io.IOException
read
in interface javax.resource.cci.Streamable
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 newContentObj)
newContentObj
- The content object to set.public void setContentType(java.lang.String content_type)
content_type
- The message content type.public void setRecordName(java.lang.String arg1)
setRecordName
in interface javax.resource.cci.Record
arg1
- The RecordName.public void setRecordShortDescription(java.lang.String arg1)
setRecordShortDescription
in interface javax.resource.cci.Record
arg1
- The RecordShortDescription.public void write(java.io.OutputStream arg1) throws java.io.IOException
write
in interface javax.resource.cci.Streamable
arg1
- The output stream.java.io.IOException
- Raised when there is java.IOException.