org.walluck.oscar.channel.rendezvous
Class ICQGetAwayRendezvous

java.lang.Object
  extended byorg.walluck.oscar.channel.Channel
      extended byorg.walluck.oscar.channel.rendezvous.Rendezvous
          extended byorg.walluck.oscar.channel.rendezvous.ICQGetAwayRendezvous

public class ICQGetAwayRendezvous
extends Rendezvous

Request the status message of the given ICQ user.

Since:
1.0
Version:
1.0
Author:
David Walluck

Field Summary
 
Fields inherited from class org.walluck.oscar.channel.rendezvous.Rendezvous
ERROR_CODE_DECLINED, ERROR_CODE_NOT_ACCEPTING, ERROR_CODE_NOT_SUPPORTED, TLV_TYPE_CHAT_MESSAGE, TLV_TYPE_ENCODING, TLV_TYPE_ERROR_CODE, TLV_TYPE_GAMES_URL, TLV_TYPE_INVITATION_MESSAGE, TLV_TYPE_IP_ADDRRESS, TLV_TYPE_LANGUAGE, TLV_TYPE_MY_IP_ADDRESS, TLV_TYPE_OTHER_URL, TLV_TYPE_PORT, TLV_TYPE_PROXY, TLV_TYPE_REQUEST_TYPE, TLV_TYPE_SECURE, TLV_TYPE_UNKNOWN0001, TLV_TYPE_UNKNOWN0009, TLV_TYPE_UNKNOWN000F, TLV_TYPE_VERIFIED_IP_ADDR, TYPE_ACCEPT, TYPE_CANCEL, TYPE_REQUEST
 
Constructor Summary
ICQGetAwayRendezvous()
          Creates a new ICQ Get Away rendezvous.
 
Method Summary
 AIMConnection getConn()
          Get the value of conn.
 int getMsgType()
          Get the value of msgType.
 void handleServiceData(AIMSession sess, SNACHandler handler, AIMFrame frame, SNAC snac, UserInfo userinfo, IncomingIMCH2 args, AIMInputStream buffer)
          Incoming IM Channel 2 (ICQ Server Relay).
 void setConn(AIMConnection conn)
          Set the value of conn.
 void setMsgType(int msgType)
          Set the value of msgType.
 void setRequest()
          Send a rendezvous request.
 
Methods inherited from class org.walluck.oscar.channel.rendezvous.Rendezvous
getCookie, getErrorCode, getService, getServiceData, getType, setAccept, setCancel, setCookie, setError, setErrorCode, setService, setServiceData, setType
 
Methods inherited from class org.walluck.oscar.channel.Channel
getChannel, setChannel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ICQGetAwayRendezvous

public ICQGetAwayRendezvous()
Creates a new ICQ Get Away rendezvous.

Method Detail

getConn

public AIMConnection getConn()
Get the value of conn.

Returns:
value of conn.

setConn

public void setConn(AIMConnection conn)
Set the value of conn.

Parameters:
conn - Value to assign to conn.

getMsgType

public int getMsgType()
Get the value of msgType.

Returns:
value of msgType.

setMsgType

public void setMsgType(int msgType)
Set the value of msgType.

Parameters:
msgType - Value to assign to msgType.

setRequest

public void setRequest()
                throws java.io.IOException
Send a rendezvous request.

Specified by:
setRequest in class Rendezvous
Throws:
java.io.IOException - if an error occurs

handleServiceData

public void handleServiceData(AIMSession sess,
                              SNACHandler handler,
                              AIMFrame frame,
                              SNAC snac,
                              UserInfo userinfo,
                              IncomingIMCH2 args,
                              AIMInputStream buffer)
                       throws java.io.IOException
Incoming IM Channel 2 (ICQ Server Relay).

The relationship between AIM_CAPS_ICQSERVERRELAY and AIM_CAPS_ICQRTF is kind of odd. This sends the client ICQRTF since that is all that I've seen SERVERRELAY used for.

Specified by:
handleServiceData in class Rendezvous
Parameters:
sess - the oscar session
handler - the handler
frame - the incoming frame
snac - the incoming SNAC
userinfo - user information
args - incoming im ch2 args
buffer - the incoming buffer
Throws:
java.io.IOException - if an error occurs
See Also:
AIMConstants