wtalk
Class WTalk

java.lang.Object
  |
  +--wtalk.WTalk

public class WTalk
extends java.lang.Object

Multi-protocol messaging library for Java. Supported protocols are contaiend within wtalk.protocols.<protocolname>.


Field Summary
protected  int iProtocol
           
protected  wtalk.protocols.WTalkProtocol wtp
           
 
Constructor Summary
WTalk()
          Default constructor
WTalk(int protocol)
          Overloaded constructor, creates WTalkProtocol based on paramater value.
 
Method Summary
static java.lang.String getBanner()
          Returns String containing name, version and author.
 int getProtocol()
          Returns the integer value representing the current WTalkProtocol.
 wtalk.protocols.WTalkProtocol getWTalkProtocol()
          Returns the WTalkProtocol object associated with WTalk.
 void setWTalkProtocol(int protocol)
          Sets the prtocool WTalk will use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wtp

protected wtalk.protocols.WTalkProtocol wtp

iProtocol

protected int iProtocol
Constructor Detail

WTalk

public WTalk()
Default constructor


WTalk

public WTalk(int protocol)
Overloaded constructor, creates WTalkProtocol based on paramater value.

Parameters:
protocol - Protocol WTalk will use, defined in Protocol
See Also:
Protocol
Method Detail

getBanner

public static java.lang.String getBanner()
Returns String containing name, version and author.

Returns:
Returns String containing name, version and author.

setWTalkProtocol

public void setWTalkProtocol(int protocol)
Sets the prtocool WTalk will use.

Parameters:
protocol - Protocol which should be a constant specified in wtalk.Protocol
See Also:
Protocol

getWTalkProtocol

public wtalk.protocols.WTalkProtocol getWTalkProtocol()
Returns the WTalkProtocol object associated with WTalk.

Returns:
WTalkProtocol object associated with WTalk.
See Also:
WTalkProtocol

getProtocol

public int getProtocol()
Returns the integer value representing the current WTalkProtocol.

wtalk.Protocol.UNDEF is returned if there is no active WTalkProtocol.

Returns:
Integer value representing the current WTalkProtocol.
See Also:
Protocol