tigase.xmpp.impl
Class VCardTemp

java.lang.Object
  extended by tigase.xmpp.XMPPProcessor
      extended by tigase.xmpp.XMPPProcessorAbstract
          extended by tigase.xmpp.impl.VCardTemp
All Implemented Interfaces:
Comparable<XMPPImplIfc>, XMPPImplIfc, XMPPProcessorIfc

public class VCardTemp
extends XMPPProcessorAbstract

Describe class VCardTemp here. Created: Thu Oct 19 23:37:23 2006

Version:
$Rev: 2996 $
Author:
Artur Hefczyc

Field Summary
static String VCARD_KEY
          Field description
 
Fields inherited from class tigase.xmpp.XMPPProcessor
ALL
 
Fields inherited from interface tigase.xmpp.XMPPImplIfc
CLIENT_XMLNS
 
Constructor Summary
VCardTemp()
           
 
Method Summary
 String id()
          Method description
 void processFromUserOutPacket(tigase.xmpp.JID connectionId, Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results, Map<String,Object> settings)
          The method is called when a packet is sent from the user, owner of the session somewhere else to other XMPP entity (other user on the server, other user on a different server, different server, component, transport, etc....).
 void processFromUserToServerPacket(tigase.xmpp.JID connectionId, Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results, Map<String,Object> settings)
          Method description
 void processNullSessionPacket(Packet packet, NonAuthUserRepository repo, Queue<Packet> results, Map<String,Object> settings)
          Method description
 void processServerSessionPacket(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results, Map<String,Object> settings)
          Method description
 void processToUserPacket(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results, Map<String,Object> settings)
          Method description
 tigase.xml.Element[] supDiscoFeatures(XMPPResourceConnection session)
          Method description
 String[] supElements()
          Method description
 String[] supNamespaces()
          Method description
 
Methods inherited from class tigase.xmpp.XMPPProcessorAbstract
process, processFromUserPacket
 
Methods inherited from class tigase.xmpp.XMPPProcessor
compareTo, concurrentQueuesNo, concurrentThreadsPerQueue, getInstance, getStatistics, init, isSupporting, supStreamFeatures
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface tigase.xmpp.XMPPImplIfc
concurrentQueuesNo, concurrentThreadsPerQueue, getStatistics, init, isSupporting, supStreamFeatures
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

VCARD_KEY

public static final String VCARD_KEY
Field description

See Also:
Constant Field Values
Constructor Detail

VCardTemp

public VCardTemp()
Method Detail

id

public String id()
Method description

Returns:

processFromUserToServerPacket

public void processFromUserToServerPacket(tigase.xmpp.JID connectionId,
                                          Packet packet,
                                          XMPPResourceConnection session,
                                          NonAuthUserRepository repo,
                                          Queue<Packet> results,
                                          Map<String,Object> settings)
                                   throws PacketErrorTypeException
Method description

Specified by:
processFromUserToServerPacket in class XMPPProcessorAbstract
Parameters:
connectionId -
packet -
session -
repo -
results -
settings -
Throws:
PacketErrorTypeException

processNullSessionPacket

public void processNullSessionPacket(Packet packet,
                                     NonAuthUserRepository repo,
                                     Queue<Packet> results,
                                     Map<String,Object> settings)
                              throws PacketErrorTypeException
Method description

Overrides:
processNullSessionPacket in class XMPPProcessorAbstract
Parameters:
packet -
repo -
results -
settings -
Throws:
PacketErrorTypeException

processFromUserOutPacket

public void processFromUserOutPacket(tigase.xmpp.JID connectionId,
                                     Packet packet,
                                     XMPPResourceConnection session,
                                     NonAuthUserRepository repo,
                                     Queue<Packet> results,
                                     Map<String,Object> settings)
                              throws PacketErrorTypeException
Description copied from class: XMPPProcessorAbstract
The method is called when a packet is sent from the user, owner of the session somewhere else to other XMPP entity (other user on the server, other user on a different server, different server, component, transport, etc....). The default implementation just forwards the packet doing nothing else, which is good enough in most cases. You can overwrite the method to change the default behaviour.

Overrides:
processFromUserOutPacket in class XMPPProcessorAbstract
Parameters:
connectionId - is a JID instance with the session connection ID.
packet - is a Packet sent by the user.
session - is a XMPPResourceConnection instance with all the sending user session data.
repo - is a NonAuthUserRepository instance giving access to a part of the user repository which is accessible regardless the session is authenticated or not.
results - is a packets Queue with all the processing results from the plugin.
settings - is a Map with all the configuration settings passed to the plugin.
Throws:
PacketErrorTypeException - on attempt to send an error response to the error packet.

processServerSessionPacket

public void processServerSessionPacket(Packet packet,
                                       XMPPResourceConnection session,
                                       NonAuthUserRepository repo,
                                       Queue<Packet> results,
                                       Map<String,Object> settings)
Method description

Specified by:
processServerSessionPacket in class XMPPProcessorAbstract
Parameters:
packet -
session -
repo -
results -
settings -

processToUserPacket

public void processToUserPacket(Packet packet,
                                XMPPResourceConnection session,
                                NonAuthUserRepository repo,
                                Queue<Packet> results,
                                Map<String,Object> settings)
                         throws PacketErrorTypeException
Method description

Overrides:
processToUserPacket in class XMPPProcessorAbstract
Parameters:
packet -
session -
repo -
results -
settings -
Throws:
PacketErrorTypeException

supDiscoFeatures

public tigase.xml.Element[] supDiscoFeatures(XMPPResourceConnection session)
Method description

Specified by:
supDiscoFeatures in interface XMPPImplIfc
Overrides:
supDiscoFeatures in class XMPPProcessor
Parameters:
session -
Returns:

supElements

public String[] supElements()
Method description

Specified by:
supElements in interface XMPPImplIfc
Overrides:
supElements in class XMPPProcessor
Returns:

supNamespaces

public String[] supNamespaces()
Method description

Specified by:
supNamespaces in interface XMPPImplIfc
Overrides:
supNamespaces in class XMPPProcessor
Returns:


Copyright © 2012 Tigase. All Rights Reserved.