|
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.util.key.KeyData org.xmlBlaster.util.key.QueryKeyData
public final class QueryKeyData
This class encapsulates the Message key information of query invocations.
For the xml representation see MsgKeySaxFactory.
QueryKeySaxFactory
,
Serialized FormField Summary | |
---|---|
protected AccessFilterQos[] |
filterArr
|
protected java.util.ArrayList |
filterList
subscribe(), get() and cluster configuration keys may contain a filter rule |
Fields inherited from class org.xmlBlaster.util.key.KeyData |
---|
CONTENTMIME_DEFAULT, CONTENTMIMEEXTENDED_DEFAULT, DEFAULT_DOMAIN, glob, queryString, queryType, QUERYTYPE_DEFAULT, serialData |
Constructor Summary | |
---|---|
QueryKeyData(Global glob)
Minimal constructor. |
|
QueryKeyData(Global glob,
I_QueryKeyFactory factory,
java.lang.String serialData)
Constructor to parse a message. |
|
QueryKeyData(Global glob,
java.lang.String query)
|
|
QueryKeyData(Global glob,
java.lang.String query,
java.lang.String queryType)
|
Method Summary | |
---|---|
void |
addFilter(AccessFilterQos qos)
|
void |
appendQueryString(java.lang.String query)
Same as setQueryString() but allows you to call it more than once the strings are concatenated. |
java.lang.String |
checkQueryType(java.lang.String queryType)
Check the query type, Constants.XPATH, Constants.EXACT, Constants.DOMAIN are currently supported |
java.lang.Object |
clone()
Returns a shallow clone, you can change savely all basic or immutable types like boolean, String, int. |
AccessFilterQos[] |
getAccessFilterArr()
Return the filters or array with size==0 if none is specified. |
java.lang.String |
getNiceString()
Helper which returns the oid OR the xpath query for nice logging. |
java.lang.String |
getQueryString()
Access the query string like "//key" |
void |
setDomain(java.lang.String domain)
Use for domain specific query |
void |
setOid(java.lang.String oid)
Use for domain specific query |
void |
setQueryString(java.lang.String query)
Your XPath query string. |
void |
setQueryType(java.lang.String queryType)
Should be avoided to call directly. |
java.lang.String |
toXml()
Converts the data in XML ASCII string. |
java.lang.String |
toXml(java.lang.String extraOffset)
Dump state of this object into a XML ASCII string. |
Methods inherited from class org.xmlBlaster.util.key.KeyData |
---|
equals, generateOid, getContentMime, getContentMimeExtended, getDomain, getGlobal, getOid, getQueryType, getUrl, hasOid, isAdministrative, isDeadMessage, isDefaultDomain, isDomain, isExact, isInternal, isPluginInternal, isQuery, isRemoteProperties, isRunlevelManager, isXPath, setContentMime, setContentMimeExtended, setGlobal, size, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.ArrayList filterList
protected transient AccessFilterQos[] filterArr
Constructor Detail |
---|
public QueryKeyData(Global glob)
public QueryKeyData(Global glob, java.lang.String query)
glob
- query
- The query string
For example a topic oid like "Hello" or "oid:Hello"
or a query like "xpath://key", "domain:CLUSTER"public QueryKeyData(Global glob, java.lang.String query, java.lang.String queryType) throws XmlBlasterException
glob
- query
- The query string (syntax is depending on queryType)queryType
- Constants.EXACT | Constants.XPATH | Constants.DOMAIN
XmlBlasterException
public QueryKeyData(Global glob, I_QueryKeyFactory factory, java.lang.String serialData)
factory
- If null, the default factory from Global is used.Method Detail |
---|
public java.lang.String checkQueryType(java.lang.String queryType) throws XmlBlasterException
XmlBlasterException
public void setQueryType(java.lang.String queryType) throws XmlBlasterException
setQueryType
in class KeyData
XmlBlasterException
public void setOid(java.lang.String oid)
setOid
in class KeyData
public void setDomain(java.lang.String domain)
setDomain
in class KeyData
public void setQueryString(java.lang.String query)
query
- The query string, e.g. "//key"public void appendQueryString(java.lang.String query)
query
- The query string, e.g. "//key"public java.lang.String getQueryString()
KeyData
getQueryString
in class KeyData
public java.lang.String getNiceString()
public AccessFilterQos[] getAccessFilterArr()
public void addFilter(AccessFilterQos qos)
public java.lang.String toXml()
toXml
in class KeyData
public java.lang.String toXml(java.lang.String extraOffset)
toXml
in class KeyData
extraOffset
- indenting of tags for nice output
public java.lang.Object clone()
clone
in class KeyData
|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |