net.kano.joscar.rv
Class RvSnacResponseEvent

java.lang.Object
  extended byFlapPacketEvent
      extended bySnacPacketEvent
          extended byRvSnacResponseEvent

public class RvSnacResponseEvent
extends SnacPacketEvent

An event that occurs when a non-RV response to a RV command or RV response is received. For example, if one attempts to send a file to a user who is not currently online, a SnacError will likely be received.

See Also:
SnacPacketEvent

Constructor Summary
protected RvSnacResponseEvent(SnacPacketEvent cause, RvProcessor rvProcessor, RvSession rvSession)
          Creates a new RV SNAC response event with the given properties.
 
Method Summary
 RvProcessor getRvProcessor()
          Returns the RV processor on which the associated SNAC response was received.
 RvSession getRvSession()
          Returns the RV session on which the associated SNAC response was received.
 
Methods inherited from class SnacPacketEvent
getSnacCommand, getSnacPacket, getSnacProcessor
 
Methods inherited from class FlapPacketEvent
getFlapCommand, getFlapPacket, getFlapProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RvSnacResponseEvent

protected RvSnacResponseEvent(SnacPacketEvent cause,
                              RvProcessor rvProcessor,
                              RvSession rvSession)
Creates a new RV SNAC response event with the given properties.

Parameters:
cause - the SNAC packet event that was received in response to an RV command
rvProcessor - the RV processor on which this response was received
rvSession - the RV session whose initial RV command caused this response
Method Detail

getRvProcessor

public final RvProcessor getRvProcessor()
Returns the RV processor on which the associated SNAC response was received.

Returns:
the RV processor on which the associated SNAC response was recieved

getRvSession

public final RvSession getRvSession()
Returns the RV session on which the associated SNAC response was received. While the SNAC response likely did not contain a rendezvous session ID (and thus does not intrinsically have an associated RV session), it is still associated with an RV session in the sense that the RV command to which it is a response was sent over a RV session. I hope that makes sense.

Returns:
the RV session on which the associated SNAC response was recieved