All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.devtools.SIPNoTE.JephyrSIPTransform

java.lang.Object
   |
   +----com.ibm.devtools.SIPNoTE.JephyrSIPTransform

public class JephyrSIPTransform
extends Object
This class represents an transform which can change a SIP message into a Jephyr message, and vice versa. It is responsible for filling in all of the necessary datafields in the corresponding message to make sure that it is valid. It however, does not validate the message semantically.

If you wish to change the protocol that is used to transfer messages before they enter into this SIP realm, this is one of the few places that needs to be changed.

See Also:
JMessage, SIPMessage

Method Index

 o JephyrToSIP(String, int, String, int)
Applies the transform to the Jephyr message and creates a SIP message.
 o SIPToJephyr()
Applies the transform to the SIP message and creates a Jephyr message.

Methods

 o SIPToJephyr
 public JMessage SIPToJephyr()
Applies the transform to the SIP message and creates a Jephyr message. The content-type of the SIP message must be application/jephyr in order for this to succeeed.

Returns:
The newly constructed Jephyr message.
 o JephyrToSIP
 public SIPMessage JephyrToSIP(String localhost,
                               int localport,
                               String servername,
                               int serverport)
Applies the transform to the Jephyr message and creates a SIP message. If the Jephyr message was a command message, then we set the appropriate SIP message type, otherwise this becomes a SIP message type of MESSAGE.

Parameters:
localhost - The name of this client machine.
localport - The port on which this client listens.
servername - The name of the SIPNoTE server.
serverport - The port on which the SIPNoTE server listens.
Returns:
The newly constructed SIP message.

All Packages  Class Hierarchy  This Package  Previous  Next  Index