com.funambol.util
Class BlackberryConfiguration

java.lang.Object
  extended by com.funambol.util.BlackberryConfiguration
All Implemented Interfaces:
Serializable

public class BlackberryConfiguration
extends java.lang.Object
implements Serializable

Container class for blackberry configurations. It provides information over the configuration to be used in order to have a working connection over blackberry based systems. This class implements the serializable interface as it is useful for eventual persistent implementation. This is also the reason why the constructor is explicitly defined.


Constructor Summary
BlackberryConfiguration()
          Default public empty constructor.
 
Method Summary
 void deserialize(java.io.DataInputStream in)
          Implementation of the Serializable interface method
 java.lang.String getDescription()
          Accessor method to get this configuration description
 int getPermission()
          Accessor method to get the permission field of this class
 java.lang.String getUrlParameters()
          Accessor method to get the urlParameters field of this configuration
 void serialize(java.io.DataOutputStream out)
          Implementation of the Serializable interface method
 void setDescription(java.lang.String description)
          Accessor method to set this configuration's description
 void setPermission(int permission)
          Accessor method to set the permission field of this configuration
 void setUrlParameters(java.lang.String urlParameters)
          Accessor method to set the urlParameters for this configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlackberryConfiguration

public BlackberryConfiguration()
Default public empty constructor. It is explicitly defined because in further implementation it is not to be excluded that this class will implement the Serializable interface.

Method Detail

getPermission

public int getPermission()
Accessor method to get the permission field of this class

Returns:
int permission associated with this configuration

setPermission

public void setPermission(int permission)
Accessor method to set the permission field of this configuration

Parameters:
permission - is the permission to be set for this configuration

getUrlParameters

public java.lang.String getUrlParameters()
Accessor method to get the urlParameters field of this configuration

Returns:
String configuration to be added to the request URL in order to activate this configuration when the connector is opened

setUrlParameters

public void setUrlParameters(java.lang.String urlParameters)
Accessor method to set the urlParameters for this configuration

Parameters:
urlParameters - is the parameter string to be set for connections requests

getDescription

public java.lang.String getDescription()
Accessor method to get this configuration description

Returns:
String description of this configuration

setDescription

public void setDescription(java.lang.String description)
Accessor method to set this configuration's description

Parameters:
description - new description for this configuration

serialize

public void serialize(java.io.DataOutputStream out)
               throws java.io.IOException
Implementation of the Serializable interface method

Specified by:
serialize in interface Serializable
Parameters:
out - is the DataOutputStream where this class' fields must be serialized
Throws:
java.io.IOException

deserialize

public void deserialize(java.io.DataInputStream in)
                 throws java.io.IOException
Implementation of the Serializable interface method

Specified by:
deserialize in interface Serializable
Parameters:
in - is the DataInputStream to be read in order to deserialize this class into a BlackberryConfiguration object
Throws:
java.io.IOException


Copyright © 2001-2009 Funambol.