|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.client.key.PublishKey
public class PublishKey
Wrap the XML key data for publish() invocations.
See MsgKeySaxFactory for a syntax description of the allowed xml structure
MsgKeySaxFactory
,
the interface.publish requirementConstructor Summary | |
---|---|
PublishKey(Global glob)
Create a key data holder, the message oid is randomly generated. |
|
PublishKey(Global glob,
MsgKeyData msgKeyData)
Pass a pre filled data object. |
|
PublishKey(Global glob,
java.lang.String oid)
Create a key data holder with the given message oid. |
|
PublishKey(Global glob,
java.lang.String oid,
java.lang.String contentMime)
Create a key data holder with the given message oid and its mime type. |
|
PublishKey(Global glob,
java.lang.String oid,
java.lang.String contentMime,
java.lang.String contentMimeExtended)
Create a key data holder with the given message oid and its mime types. |
|
PublishKey(Global glob,
java.lang.String oid,
java.lang.String contentMime,
java.lang.String contentMimeExtended,
java.lang.String domain)
Create a key data holder with the given message oid and its mime types. |
Method Summary | |
---|---|
java.lang.String |
getClientTags()
Your specific application tags. |
java.lang.String |
getContentMime()
A MIME type like "image/gif" |
java.lang.String |
getContentMimeExtended()
For example a version number of the mime type |
MsgKeyData |
getData()
|
java.lang.String |
getDomain()
Access the domain setting |
Global |
getGlobal()
|
java.lang.String |
getOid()
Access the <key oid="...">. |
void |
setClientTags(java.lang.String clientTags)
May be used to integrate your application tags. |
void |
setContentMime(java.lang.String contentMime)
A MIME type like "image/gif" |
void |
setContentMimeExtended(java.lang.String contentMimeExtended)
For example a version number of the mime type |
void |
setDomain(java.lang.String domain)
Allows to give cluster a hint about who is the master or can be used for your own purposes |
void |
setOid(java.lang.String oid)
Set the <key oid="...">. |
java.lang.String |
toXml()
Converts the data in XML ASCII string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PublishKey(Global glob)
public PublishKey(Global glob, java.lang.String oid)
public PublishKey(Global glob, java.lang.String oid, java.lang.String contentMime)
public PublishKey(Global glob, java.lang.String oid, java.lang.String contentMime, java.lang.String contentMimeExtended)
public PublishKey(Global glob, java.lang.String oid, java.lang.String contentMime, java.lang.String contentMimeExtended, java.lang.String domain)
domain
- The cluster domainpublic PublishKey(Global glob, MsgKeyData msgKeyData)
Method Detail |
---|
public MsgKeyData getData()
public void setOid(java.lang.String oid)
The
- unique key oidpublic java.lang.String getOid()
public void setContentMime(java.lang.String contentMime)
public java.lang.String getContentMime()
public void setContentMimeExtended(java.lang.String contentMimeExtended)
public java.lang.String getContentMimeExtended()
public void setDomain(java.lang.String domain)
public java.lang.String getDomain()
public void setClientTags(java.lang.String clientTags)
str
- The ASCII XML key containing your tagspublic java.lang.String getClientTags()
public Global getGlobal()
public java.lang.String toXml()
|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |