|
Openfire 3.9.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.openfire.container.BasicModule
org.jivesoftware.openfire.handler.IQHandler
org.jivesoftware.openfire.handler.IQBindHandler
public class IQBindHandler
Binds a resource to the stream so that the client's address becomes a full JID. Once a resource has been binded to the session the entity (i.e. client) is considered a "connected resource".
Clients may specify a desired resource but if none was specified then the server will create a random resource for the session. The new resource should be in accordance with ResourcePrep. The server will also verify if there are previous sessions from the same user that are already using the resource specified by the user. Depending on the server configuration the old session may be kicked or the new session may be rejected.
Field Summary |
---|
Fields inherited from class org.jivesoftware.openfire.handler.IQHandler |
---|
deliverer, sessionManager |
Constructor Summary | |
---|---|
IQBindHandler()
|
Method Summary | |
---|---|
IQHandlerInfo |
getInfo()
Returns the handler information to help generically handle IQ packets. |
org.xmpp.packet.IQ |
handleIQ(org.xmpp.packet.IQ packet)
Handles the received IQ packet. |
void |
initialize(XMPPServer server)
Initializes the basic module. |
Methods inherited from class org.jivesoftware.openfire.handler.IQHandler |
---|
process |
Methods inherited from class org.jivesoftware.openfire.container.BasicModule |
---|
destroy, getName, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IQBindHandler()
Method Detail |
---|
public org.xmpp.packet.IQ handleIQ(org.xmpp.packet.IQ packet) throws UnauthorizedException
IQHandler
handleIQ
in class IQHandler
packet
- the IQ packet to handle.
UnauthorizedException
- if the user that sent the packet is not
authorized to request the given operation.public void initialize(XMPPServer server)
BasicModule
Initializes the basic module.
Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.
initialize
in interface Module
initialize
in class IQHandler
server
- the server hosting this module.public IQHandlerInfo getInfo()
IQHandler
getInfo
in class IQHandler
|
Openfire 3.9.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |