org.walluck.oscar
Class IncomingIMCH2

java.lang.Object
  extended by org.walluck.oscar.IncomingIMCH2

public class IncomingIMCH2
extends Object

Used to send special IM's. FIXME: This entire class should not exist. Instead, each Rendezvous should be passed the same TLV chain. However, for now, we can stick all TLV's here, so that any TLV's that aren't already parsed prior to hitting the Rendezvous can be parsed inside the Rendezvous class instead. At least this is a partial fix, and it allows us to support non-standard TLV types, like those used for Trillian SecureIM. One major problem currently is that only a single Rendezvous is used for each type of incoming Rendezvous request. This means that it is unacceptable to set any Rendezvous values on an incoming request. Instead, we must add data structures here. When this class is replaced, then Rendezvous values can be set properly.

Since:
1.0
Version:
1.0
Author:
David Walluck

Nested Class Summary
 class IncomingIMCH2.Info
          Info class.
 class IncomingIMCH2.TrillianEncryption
          The Trillian Encryption class.
 
Constructor Summary
IncomingIMCH2()
          Creates a new channel 2 message.
 
Method Summary
 String getClientIP1()
          Get the value of clientIP1.
 String getClientIP2()
          Get the value of clientIP2.
 byte[] getCookie()
          Get the value of cookie.
 String getEncoding()
          Get the value of encoding.
 int getErrorCode()
          Get the value of errorCode.
 String getGamesURL()
          Get the value of gamesURL.
 IncomingIMCH2.Info getInfo()
          Get the value of info.
 String getLanguage()
          Get the value of language.
 String getMsg()
          Get the value of msg.
 int getPort()
          Get the value of port.
 int getReqClass()
          Get the value of reqClass.
 int getStatus()
          Get the value of status.
 TLVChain getTLVChain()
          Get the value of tlvchain.
 IncomingIMCH2.TrillianEncryption getTrillianEncryption()
          Get the value of trillianEncryption.
 String getVerifiedIP()
          Get the value of verifiedIP.
 boolean isProxied()
          Get the value of proxied.
 void setClientIP1(String clientIP1)
          Set the value of clientIP1.
 void setClientIP2(String clientIP2)
          Set the value of clientIP2.
 void setCookie(byte[] cookie)
          Set the value of cookie.
 void setEncoding(String encoding)
          Set the value of encoding.
 void setErrorCode(int errorCode)
          Set the value of errorCode.
 void setGamesURL(String gamesURL)
          Set the value of gamesURL.
 void setInfo(IncomingIMCH2.Info info)
          Set the value of info.
 void setLanguage(String language)
          Set the value of language.
 void setMsg(String msg)
          Set the value of msg.
 void setPort(int port)
          Set the value of port.
 void setProxied(boolean proxied)
          Set the value of proxied.
 void setReqClass(int reqClass)
          Set the value of reqClass.
 void setStatus(int status)
          Set the value of status.
 void setTLVChain(TLVChain tlvchain)
          Set the value of tlvchain.
 void setTrillianEncryption(IncomingIMCH2.TrillianEncryption trillianEncryption)
          Set the value of trillianEncryption.
 void setVerifiedIP(String verifiedIP)
          Set the value of verifiedIP.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncomingIMCH2

public IncomingIMCH2()
Creates a new channel 2 message.

Method Detail

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.

getReqClass

public int getReqClass()
Get the value of reqClass.

Returns:
value of reqClass.

setReqClass

public void setReqClass(int reqClass)
Set the value of reqClass.

Parameters:
reqClass - Value to assign to reqClass.

getStatus

public int getStatus()
Get the value of status.

Returns:
value of status.

setStatus

public void setStatus(int status)
Set the value of status.

Parameters:
status - Value to assign to status.

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.

getClientIP1

public String getClientIP1()
Get the value of clientIP1.

Returns:
value of clientIP1.

setClientIP1

public void setClientIP1(String clientIP1)
Set the value of clientIP1.

Parameters:
clientIP1 - Value to assign to clientIP1.

getClientIP2

public String getClientIP2()
Get the value of clientIP2.

Returns:
value of clientIP2.

setClientIP2

public void setClientIP2(String clientIP2)
Set the value of clientIP2.

Parameters:
clientIP2 - Value to assign to clientIP2.

getVerifiedIP

public String getVerifiedIP()
Get the value of verifiedIP.

Returns:
value of verifiedIP.

setVerifiedIP

public void setVerifiedIP(String verifiedIP)
Set the value of verifiedIP.

Parameters:
verifiedIP - Value to assign to verifiedIP.

getPort

public int getPort()
Get the value of port.

Returns:
value of port.

setPort

public void setPort(int port)
Set the value of port.

Parameters:
port - Value to assign to port.

getGamesURL

public String getGamesURL()
Get the value of gamesURL.

Returns:
value of gamesURL.

setGamesURL

public void setGamesURL(String gamesURL)
Set the value of gamesURL.

Parameters:
gamesURL - Value to assign to gamesURL.

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.

getEncoding

public String getEncoding()
Get the value of encoding.

Returns:
value of encoding.

setEncoding

public void setEncoding(String encoding)
Set the value of encoding.

Parameters:
encoding - Value to assign to encoding.

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.

isProxied

public boolean isProxied()
Get the value of proxied.

Returns:
value of proxied.

setProxied

public void setProxied(boolean proxied)
Set the value of proxied.

Parameters:
proxied - Value to assign to proxied.

getInfo

public IncomingIMCH2.Info getInfo()
Get the value of info.

Returns:
value of info.

setInfo

public void setInfo(IncomingIMCH2.Info info)
Set the value of info.

Parameters:
info - Value to assign to info.

getTrillianEncryption

public IncomingIMCH2.TrillianEncryption getTrillianEncryption()
Get the value of trillianEncryption.

Returns:
value of trillianEncryption.

setTrillianEncryption

public void setTrillianEncryption(IncomingIMCH2.TrillianEncryption trillianEncryption)
Set the value of trillianEncryption.

Parameters:
trillianEncryption - Value to assign to trillianEncryption.

getTLVChain

public TLVChain getTLVChain()
Get the value of tlvchain.

Returns:
value of tlvchain.

setTLVChain

public void setTLVChain(TLVChain tlvchain)
Set the value of tlvchain.

Parameters:
tlvchain - Value to assign to tlvchain.