org.walluck.oscar.channel.rendezvous
Class Rendezvous

java.lang.Object
  extended byorg.walluck.oscar.channel.Channel
      extended byorg.walluck.oscar.channel.rendezvous.Rendezvous
Direct Known Subclasses:
AddInsRendezvous, BuddyIconRendezvous, ChatRendezvous, DirectIMRendezvous, GetFileRendezvous, ICQGetAwayRendezvous, ICQRTFRendezvous, SendBuddyListRendezvous, SendFileRendezvous, TalkRendezvous, TrillianSecureIMRendezvous

public abstract class Rendezvous
extends Channel

Rendezvous are Channel 2 ICBM's.

Since:
1.0
Version:
1.0
Author:
David Walluck

Field Summary
static int ERROR_CODE_DECLINED
          User declined request error code.
static int ERROR_CODE_NOT_ACCEPTING
          User not accepting error code.
static int ERROR_CODE_NOT_SUPPORTED
          Not supported error code.
static int TLV_TYPE_CHAT_MESSAGE
          Chat (and Add-Ins) invitation message.
static int TLV_TYPE_ENCODING
          Encoding.
static int TLV_TYPE_ERROR_CODE
          Error code.
static int TLV_TYPE_GAMES_URL
          The Games URL.
static int TLV_TYPE_INVITATION_MESSAGE
          Old invitation message.
static int TLV_TYPE_IP_ADDRRESS
          Rendezvous IP address.
static int TLV_TYPE_LANGUAGE
          Language.
static int TLV_TYPE_MY_IP_ADDRESS
          IP address as seen from our point of view.
static int TLV_TYPE_OTHER_URL
          Another URL.
static int TLV_TYPE_PORT
          Port.
static int TLV_TYPE_PROXY
          Present if we are using a proxy.
static int TLV_TYPE_REQUEST_TYPE
          Request type.
static int TLV_TYPE_SECURE
          Present if we are connecting securely.
static int TLV_TYPE_UNKNOWN0001
          Unknown 0x0001.
static int TLV_TYPE_UNKNOWN0009
          Unknown 0x0009.
static int TLV_TYPE_UNKNOWN000F
          Unknown 0x000f.
static int TLV_TYPE_VERIFIED_IP_ADDR
          IP address as verified by the server.
static int TYPE_ACCEPT
          Accept type.
static int TYPE_CANCEL
          Cancel type.
static int TYPE_REQUEST
          Request type.
 
Constructor Summary
Rendezvous()
          Creates a new rendezvous.
 
Method Summary
 byte[] getCookie()
          Get the value of cookie.
 int getErrorCode()
          Get the value of errorCode.
 int getService()
          Get the value of service.
 TLVChain getServiceData()
          Get the value of serviceData.
 int getType()
          Get the value of type.
abstract  void handleServiceData(AIMSession sess, SNACHandler handler, AIMFrame frame, SNAC snac, UserInfo userinfo, IncomingIMCH2 args, AIMInputStream buffer)
          Handles Rendezvous service data.
 void setAccept()
          Send a rendezvous accept.
 void setCancel()
          Send a rendezvous cancel.
 void setCookie(byte[] cookie)
          Set the value of cookie.
 void setError()
          Send a rendezvous error.
 void setErrorCode(int errorCode)
          Set the value of errorCode.
abstract  void setRequest()
          Send a rendezvous request.
 void setService(int service)
          Set the value of service.
 void setServiceData(TLVChain serviceData)
          Set the value of serviceData.
 void setType(int type)
          Set the value of type.
 
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
 

Field Detail

TYPE_REQUEST

public static final int TYPE_REQUEST
Request type.

See Also:
Constant Field Values

TYPE_CANCEL

public static final int TYPE_CANCEL
Cancel type.

See Also:
Constant Field Values

TYPE_ACCEPT

public static final int TYPE_ACCEPT
Accept type.

See Also:
Constant Field Values

ERROR_CODE_NOT_SUPPORTED

public static final int ERROR_CODE_NOT_SUPPORTED
Not supported error code.

See Also:
Constant Field Values

ERROR_CODE_DECLINED

public static final int ERROR_CODE_DECLINED
User declined request error code.

See Also:
Constant Field Values

ERROR_CODE_NOT_ACCEPTING

public static final int ERROR_CODE_NOT_ACCEPTING
User not accepting error code.

See Also:
Constant Field Values

TLV_TYPE_UNKNOWN0001

public static final int TLV_TYPE_UNKNOWN0001
Unknown 0x0001.

See Also:
Constant Field Values

TLV_TYPE_IP_ADDRRESS

public static final int TLV_TYPE_IP_ADDRRESS
Rendezvous IP address.

See Also:
Constant Field Values

TLV_TYPE_MY_IP_ADDRESS

public static final int TLV_TYPE_MY_IP_ADDRESS
IP address as seen from our point of view.

See Also:
Constant Field Values

TLV_TYPE_VERIFIED_IP_ADDR

public static final int TLV_TYPE_VERIFIED_IP_ADDR
IP address as verified by the server.

See Also:
Constant Field Values

TLV_TYPE_PORT

public static final int TLV_TYPE_PORT
Port.

See Also:
Constant Field Values

TLV_TYPE_INVITATION_MESSAGE

public static final int TLV_TYPE_INVITATION_MESSAGE
Old invitation message.

See Also:
Constant Field Values

TLV_TYPE_GAMES_URL

public static final int TLV_TYPE_GAMES_URL
The Games URL.

See Also:
Constant Field Values

TLV_TYPE_OTHER_URL

public static final int TLV_TYPE_OTHER_URL
Another URL.

See Also:
Constant Field Values

TLV_TYPE_UNKNOWN0009

public static final int TLV_TYPE_UNKNOWN0009
Unknown 0x0009.

See Also:
Constant Field Values

TLV_TYPE_REQUEST_TYPE

public static final int TLV_TYPE_REQUEST_TYPE
Request type.

See Also:
Constant Field Values

TLV_TYPE_ERROR_CODE

public static final int TLV_TYPE_ERROR_CODE
Error code.

See Also:
Constant Field Values

TLV_TYPE_CHAT_MESSAGE

public static final int TLV_TYPE_CHAT_MESSAGE
Chat (and Add-Ins) invitation message.

See Also:
Constant Field Values

TLV_TYPE_ENCODING

public static final int TLV_TYPE_ENCODING
Encoding.

See Also:
Constant Field Values

TLV_TYPE_LANGUAGE

public static final int TLV_TYPE_LANGUAGE
Language.

See Also:
Constant Field Values

TLV_TYPE_UNKNOWN000F

public static final int TLV_TYPE_UNKNOWN000F
Unknown 0x000f. Seems to be always present.

See Also:
Constant Field Values

TLV_TYPE_PROXY

public static final int TLV_TYPE_PROXY
Present if we are using a proxy.

See Also:
Constant Field Values

TLV_TYPE_SECURE

public static final int TLV_TYPE_SECURE
Present if we are connecting securely.

See Also:
Constant Field Values
Constructor Detail

Rendezvous

public Rendezvous()
Creates a new rendezvous.

Method Detail

setRequest

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

Throws:
java.io.IOException - if an error occurs

setCancel

public void setCancel()
               throws java.io.IOException
Send a rendezvous cancel.

Throws:
java.io.IOException - if an error occurs

setAccept

public void setAccept()
               throws java.io.IOException
Send a rendezvous accept.

Throws:
java.io.IOException - if an error occurs

setError

public void setError()
              throws java.io.IOException
Send a rendezvous error.

Throws:
java.io.IOException - if an error occurs

handleServiceData

public abstract void handleServiceData(AIMSession sess,
                                       SNACHandler handler,
                                       AIMFrame frame,
                                       SNAC snac,
                                       UserInfo userinfo,
                                       IncomingIMCH2 args,
                                       AIMInputStream buffer)
                                throws java.io.IOException
Handles Rendezvous service data.

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

getType

public int getType()
Get the value of type.

Returns:
value of type.

setType

public void setType(int type)
Set the value of type.

Parameters:
type - Value to assign to type.

getCookie

public byte[] getCookie()
Get the value of cookie.

Returns:
value of cookie.

setCookie

public void setCookie(byte[] cookie)
Set the value of cookie.

Parameters:
cookie - Value to assign to cookie.

getService

public int getService()
Get the value of service.

Returns:
value of service.

setService

public void setService(int service)
Set the value of service.

Parameters:
service - Value to assign to service.

getServiceData

public TLVChain getServiceData()
Get the value of serviceData.

Returns:
value of serviceData.

setServiceData

public void setServiceData(TLVChain serviceData)
Set the value of serviceData.

Parameters:
serviceData - Value to assign to serviceData.

getErrorCode

public int getErrorCode()
Get the value of errorCode.

Returns:
value of errorCode.

setErrorCode

public void setErrorCode(int errorCode)
Set the value of errorCode.

Parameters:
errorCode - Value to assign to errorCode.