|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jabber.jabberbeans.PacketBuilder | +--org.jabber.jabberbeans.serverside.XDBBuilder
XDBBuilder
is the class that expands upon PacketBuilder
to allow building of XDB objects (packets). The builder is a required
object in the creation of said packet, as the number of fields is too
numerous to make direct creation feasable and non-error prone.
Field Summary |
Fields inherited from class org.jabber.jabberbeans.PacketBuilder |
error, extensions, fromAddress, identifier, toAddress, type |
Constructor Summary | |
XDBBuilder()
Creates a new XDBBuilder instance. |
Method Summary | |
Packet |
build()
build returns a packet, specifically an InfoQuery packet. |
java.lang.String |
getAction()
get the action string |
java.lang.String |
getMatch()
get the match string |
java.lang.String |
getNamespace()
get the namespace. |
void |
reset()
reset all parameters (including those in the parent class)
to default values |
void |
setAction(java.lang.String action)
set the action string |
void |
setMatch(java.lang.String match)
set the match string |
void |
setNamespace(java.lang.String ns)
set the namespace. |
Methods inherited from class org.jabber.jabberbeans.PacketBuilder |
addExtension, delExtension, getError, getErrorCode, getErrorText, getExtensionVector, getFromAddress, getIdentifier, getToAddress, getType, resetBase, setError, setErrorCode, setErrorText, setFromAddress, setIdentifier, setToAddress, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XDBBuilder()
XDBBuilder
instance.
Method Detail |
public void reset()
reset
all parameters (including those in the parent class)
to default values
reset
in class PacketBuilder
public java.lang.String getNamespace()
public void setNamespace(java.lang.String ns)
public java.lang.String getAction()
String
valuepublic void setAction(java.lang.String action)
action
- a String
valuepublic java.lang.String getMatch()
String
valuepublic void setMatch(java.lang.String match)
match
- a String
valuepublic Packet build() throws java.lang.InstantiationException
build
returns a packet, specifically an InfoQuery packet.
It will fail if the parameters specified in the builder were not
sufficient to create a valid packet.
build
in class PacketBuilder
Packet
java.lang.InstantiationException
- if there was not sufficient
information to create a valid InfoQuery packet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |