|
Sonic ESB API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XQPart
The XQPart is a part of a XQMessage. Each part has an associated Header and Content.
The Header contains header fields, such as Content-Type and Content-Id.
The content of the part is accessed either directly as an Object or
through a javax.activation.DataHandler
.
Method Summary | |
---|---|
java.lang.Object |
getContent()
Gets the content of the part as an Object. |
java.lang.String |
getContentId()
Gets the content-id from the part header. |
java.lang.String |
getContentType()
Gets the Content-Type from the part header. |
javax.activation.DataHandler |
getDataHandler()
This method provides the mechanism to get this part's content. |
XQHeader |
getHeader()
Gets the Header for the Part. |
void |
setContent(java.lang.Object content,
java.lang.String type)
Set the content for this part. |
void |
setContentId(java.lang.String id)
Sets the Content-Id header value in the part header. |
void |
setDataHandler(javax.activation.DataHandler dataHandler)
This method provides the mechanism to set this part's content. |
Methods inherited from interface com.sonicsw.xq.XQCloneable |
---|
clone |
Method Detail |
---|
XQHeader getHeader()
java.lang.String getContentId()
void setContentId(java.lang.String id)
id
- The value of the Content-Idvoid setContent(java.lang.Object content, java.lang.String type)
Note that a DataContentHandler class for the specified type should be
available for this to work right.
i.e., to do setContent(mycontents, "application/x-mytype")
, a
DataContentHandler for "application/x-mytype" should be installed.
Refer to the Java Activation Framework for more information.
content
- A Java Object.type
- The Content-Type of this objectjava.lang.Object getContent()
java.lang.String getContentType()
javax.activation.DataHandler getDataHandler()
void setDataHandler(javax.activation.DataHandler dataHandler)
dataHandler
- The DataHandler.
|
Sonic ESB API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |