|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jabber.jabberbeans.PacketBuilder | +--org.jabber.jabberbeans.serverside.RouteBuilder
RouteBuilder
is the class that expands upon PacketBuilder
to allow building of route 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.
Fields inherited from class org.jabber.jabberbeans.PacketBuilder |
errorCode,
errorText,
extensions,
fromAddress,
identifier,
toAddress,
type |
Constructor Summary | |
RouteBuilder()
Creates a new InfoQueryBuilder instance. |
Method Summary | |
void |
addPacket(Packet p)
Add an extension to this object |
Packet |
build()
build returns a packet, specifically an InfoQuery packet. |
void |
delPacket(Packet p)
Remove an extension from this object |
void |
reset()
reset all parameters (including those in the parent class)
to default values |
Methods inherited from class org.jabber.jabberbeans.PacketBuilder |
addExtension,
delExtension,
getErrorCode,
getErrorText,
getExtensionVector,
getFromAddress,
getIdentifier,
getToAddress,
getType,
resetBase,
setErrorCode,
setErrorText,
setFromAddress,
setIdentifier,
setToAddress,
setType |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public RouteBuilder()
InfoQueryBuilder
instance.Method Detail |
public void reset()
reset
all parameters (including those in the parent class)
to default valuespublic void addPacket(Packet p)
p
- a Packet
valuepublic void delPacket(Packet p)
e
- a Packet
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.Packet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |