Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.messaging.transport
Class DriverInfo

java.lang.Object
  |
  +--oracle.panama.messaging.transport.DriverInfo

public class DriverInfo
extends java.lang.Object

The driver info contains all required information about a driver. A null carrier information means the driver doesn't care the carrier, so it can support any carrier. It is the same thing with other information such as: protocols, encodings and locales. However, driver name and delivery type are required, can not be null. Speed level and cost level should be between 0 and 10 inclusively.

Author:
jxiang

Constructor Summary
DriverInfo()
           

 

Method Summary
 java.lang.String[] getCarriers()
          Get the supported carrier names.
 int getCostLevel()
          Get the cost level.
 java.lang.String getDeliveryType()
          Get the delivery type.
 java.lang.String[] getEncodings()
          Get the supported encoding formats.
 java.util.Locale[] getLocales()
          Get the supported locales.
 java.lang.String getName()
          Get the driver name.
 java.lang.String[] getProtocols()
          Get the supported protocols.
 int getSpeedLevel()
          Get the speed level.
 void setCarriers(java.lang.String[] carriers)
          Set the supported carrier names.
 void setCostLevel(int cost)
          Set the cost level.
 void setDeliveryType(java.lang.String type)
          Set the delivery type.
 void setEncodings(java.lang.String[] encodings)
          Set the supported encoding formats.
 void setLocales(java.util.Locale[] locales)
          Set the supported locales.
 void setName(java.lang.String name)
          Set the driver name.
 void setProtocols(java.lang.String[] protocols)
          Set the supported protocols.
 void setSpeedLevel(int speed)
          Set the speed level.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DriverInfo

public DriverInfo()
Method Detail

getName

public java.lang.String getName()
Get the driver name.
Returns:
the driver name.

getDeliveryType

public java.lang.String getDeliveryType()
Get the delivery type.
Returns:
the delivery type.

getProtocols

public java.lang.String[] getProtocols()
Get the supported protocols.
Returns:
the supported protocols.

getCarriers

public java.lang.String[] getCarriers()
Get the supported carrier names.
Returns:
the supported carrier names.

getEncodings

public java.lang.String[] getEncodings()
Get the supported encoding formats.
Returns:
the supported encoding formats.

getLocales

public java.util.Locale[] getLocales()
Get the supported locales.
Returns:
the supported locales.

getSpeedLevel

public int getSpeedLevel()
Get the speed level.
Returns:
the speed level.

getCostLevel

public int getCostLevel()
Get the cost level.
Returns:
the cost level.

setName

public void setName(java.lang.String name)
Set the driver name.
Parameters:
name - the driver name.

setDeliveryType

public void setDeliveryType(java.lang.String type)
Set the delivery type.
Parameters:
type - the delivery type.

setProtocols

public void setProtocols(java.lang.String[] protocols)
Set the supported protocols.
Parameters:
protocols - the supported protocols.

setCarriers

public void setCarriers(java.lang.String[] carriers)
Set the supported carrier names.
Parameters:
carriers - the supported carrier names.

setEncodings

public void setEncodings(java.lang.String[] encodings)
Set the supported encoding formats.
Parameters:
encodings - the supported encoding formats.

setLocales

public void setLocales(java.util.Locale[] locales)
Set the supported locales.
Parameters:
locales - the supported locales.

setSpeedLevel

public void setSpeedLevel(int speed)
Set the speed level.
Parameters:
speed - the speed level.

setCostLevel

public void setCostLevel(int cost)
Set the cost level.
Parameters:
cost - the cost level.

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.