com.funambol.push
Class PushConfig

java.lang.Object
  extended by com.funambol.push.PushConfig
All Implemented Interfaces:
Serializable

public class PushConfig
extends java.lang.Object
implements Serializable

This class represents the system push subsystem configuration. The push subsystem is responsible for notifying the client on events that require a synchronization. As of today the JAM supports two push mechanisms: 1) OTA via SMS 2) CTP via socket connection At the moment the configuration is mainly for CTP, but it is intended to incorporate also OTA and STP parameters. The configuration is described in the CTP design document, and this implementation is like that.


Constructor Summary
PushConfig()
           
 
Method Summary
 void deserialize(java.io.DataInputStream in)
          Deserialize this object from the given input stream
 int getCtpCmdTimeout()
          Returns the ctp command timeout parameter
 int getCtpConnTimeout()
          Returns the ctp connection timeout parameter
 int getCtpMaxRetry()
          Returns the ctp max retry parameter
 byte[] getCtpNonce()
          Returns the ctp nonce
 int getCtpNotifyTimeout()
          Returns the ctp notify timeout
 java.lang.String getCtpPassword()
          Returns the ctp password
 int getCtpPort()
          Returns the ctp server port
 int getCtpReady()
          Returns the ctp ready period
 int getCtpRetry()
          Returns the ctp retry parameter
 java.lang.String getCtpServer()
          Returns the CTP server name
 java.lang.String getCtpUsername()
          Returns the ctp user name
 java.lang.String getDeviceId()
          Returns the device id
 boolean getQueuePush()
          Returns the queuePush parameter
 void serialize(java.io.DataOutputStream dout)
          Serialize this object to the given output stream.
 void setCtpCmdTimeout(int v)
          Sets the ctp command timeout parameter
 void setCtpConnTimeout(int v)
          Sets the ctp connection timeout parameter
 void setCtpMaxRetry(int v)
          Set the ctp max retry parameter
 void setCtpNonce(byte[] ctpNonce)
          Sets the ctp nonce
 void setCtpNotifyTimeout(int v)
          Sets the ctp notify timeout
 void setCtpPassword(java.lang.String password)
          Sets the ctp password
 void setCtpPort(int v)
          Sets the ctp server port
 void setCtpReady(int v)
          Sets the ctp ready period
 void setCtpRetry(int v)
          Set the ctp retry parameter
 void setCtpServer(java.lang.String server)
          Sets the CTP server name
 void setCtpUsername(java.lang.String username)
          Sets the ctp user name
 void setDeviceId(java.lang.String deviceId)
          Sets the device id
 void setQueuePush(boolean v)
          Set the queuePush parameter
 java.lang.String toString()
          Returns a string containing the config details
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PushConfig

public PushConfig()
Method Detail

serialize

public void serialize(java.io.DataOutputStream dout)
               throws java.io.IOException
Serialize this object to the given output stream.

Specified by:
serialize in interface Serializable
Parameters:
dout - the data output stream
Throws:
java.io.IOException

deserialize

public void deserialize(java.io.DataInputStream in)
                 throws java.io.IOException
Deserialize this object from the given input stream

Specified by:
deserialize in interface Serializable
Parameters:
in - the data input stream
Throws:
java.io.IOException

getQueuePush

public boolean getQueuePush()
Returns the queuePush parameter


setQueuePush

public void setQueuePush(boolean v)
Set the queuePush parameter


getCtpRetry

public int getCtpRetry()
Returns the ctp retry parameter


setCtpRetry

public void setCtpRetry(int v)
Set the ctp retry parameter


getCtpMaxRetry

public int getCtpMaxRetry()
Returns the ctp max retry parameter


setCtpMaxRetry

public void setCtpMaxRetry(int v)
Set the ctp max retry parameter


getCtpCmdTimeout

public int getCtpCmdTimeout()
Returns the ctp command timeout parameter


setCtpCmdTimeout

public void setCtpCmdTimeout(int v)
Sets the ctp command timeout parameter


getCtpConnTimeout

public int getCtpConnTimeout()
Returns the ctp connection timeout parameter


setCtpConnTimeout

public void setCtpConnTimeout(int v)
Sets the ctp connection timeout parameter


getCtpPort

public int getCtpPort()
Returns the ctp server port


setCtpPort

public void setCtpPort(int v)
Sets the ctp server port


getCtpReady

public int getCtpReady()
Returns the ctp ready period


setCtpReady

public void setCtpReady(int v)
Sets the ctp ready period


getCtpNonce

public byte[] getCtpNonce()
Returns the ctp nonce


setCtpNonce

public void setCtpNonce(byte[] ctpNonce)
Sets the ctp nonce


getCtpNotifyTimeout

public int getCtpNotifyTimeout()
Returns the ctp notify timeout


setCtpNotifyTimeout

public void setCtpNotifyTimeout(int v)
Sets the ctp notify timeout


getCtpUsername

public java.lang.String getCtpUsername()
Returns the ctp user name


setCtpUsername

public void setCtpUsername(java.lang.String username)
Sets the ctp user name


getCtpPassword

public java.lang.String getCtpPassword()
Returns the ctp password


setCtpPassword

public void setCtpPassword(java.lang.String password)
Sets the ctp password


getDeviceId

public java.lang.String getDeviceId()
Returns the device id


setDeviceId

public void setDeviceId(java.lang.String deviceId)
Sets the device id


getCtpServer

public java.lang.String getCtpServer()
Returns the CTP server name


setCtpServer

public void setCtpServer(java.lang.String server)
Sets the CTP server name


toString

public java.lang.String toString()
Returns a string containing the config details

Overrides:
toString in class java.lang.Object


Copyright © 2001-2009 Funambol.