org.walluck.oscar.channel.rendezvous
Class ChatRendezvous

java.lang.Object
  extended by org.walluck.oscar.channel.Channel
      extended by org.walluck.oscar.channel.rendezvous.Rendezvous
          extended by org.walluck.oscar.channel.rendezvous.ChatRendezvous

public class ChatRendezvous
extends Rendezvous

Chat Rendezvous.

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
ChatRendezvous()
          Creates a new Direct IM Rendezvous.
 
Method Summary
 String getCharset()
          Get the value of charset.
 Chat getChat()
          Get the value of chat.
 String getLanguage()
          Get the value of language.
 String getMsg()
          Get the value of msg.
 void handleServiceData(AIMSession sess, SNACHandler handler, AIMFrame frame, SNAC snac, UserInfo userinfo, IncomingIMCH2 args, AIMInputStream buffer)
          Incoming IM Channel 2 (Chat).
 void setCharset(String charset)
          Set the value of charset.
 void setChat(Chat chat)
          Set the value of chat.
 void setLanguage(String language)
          Set the value of language.
 void setMsg(String msg)
          Set the value of msg.
 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

ChatRendezvous

public ChatRendezvous()
Creates a new Direct IM Rendezvous.

Method Detail

getChat

public Chat getChat()
Get the value of chat.

Returns:
value of chat.

setChat

public void setChat(Chat chat)
Set the value of chat.

Parameters:
chat - Value to assign to chat.

getCharset

public String getCharset()
Get the value of charset.

Returns:
value of charset.

setCharset

public void setCharset(String charset)
Set the value of charset.

Parameters:
charset - Value to assign to charset.

getLanguage

public String getLanguage()
Get the value of language.

Returns:
value of language.

setLanguage

public void setLanguage(String language)
Set the value of language.

Parameters:
language - Value to assign to language.

getMsg

public String getMsg()
Get the value of msg.

Returns:
value of msg.

setMsg

public void setMsg(String msg)
Set the value of msg.

Parameters:
msg - Value to assign to msg.

setRequest

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

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

handleServiceData

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

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:
IOException - if an error occurs