Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.messaging.common
Class Graphics

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--oracle.panama.messaging.common.Graphics
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class Graphics
extends java.util.Hashtable
See Also:
Serialized Form

Field Summary
static java.lang.String GRAPHICS
           
static java.lang.String GRAPHICS_ENC_OTA_ASCII
           
static java.lang.String GRAPHICS_ENCODING
           
static java.lang.String GRAPHICS_HEIGHT
           
static java.lang.String GRAPHICS_TYPE
           
static java.lang.String GRAPHICS_WIDTH
           
static java.lang.String GROUP_GRAPHICS
           
static java.lang.String MIME
           
static java.lang.String OPERATOR
           
static java.lang.String OPERATOR_LOGO
           
static java.lang.String PHONE_MODEL
           
static java.lang.String PICTURE_MESSAGE
           

 

Constructor Summary
Graphics()
          Constructor.

 

Method Summary
 void setGraphics(java.lang.String image)
          Set the required graphics as a string.
 void setGraphicsEncoding(java.lang.String enc)
          Set the required graphics encoding format.
 void setGraphicsHeight(int height)
          If the encoding is not OTA_ASCII, the height of the bitmap is required.
 void setGraphicsType(java.lang.String type)
          Set the required graphics type.
 void setGraphicsWidth(int width)
          If the encoding is not OTA_ASCII, the width of the bitmap is required.
 void setOperator(java.lang.String operator)
          If the encoding is not OTA_ASCII, and the graphcs is of type OPERATOR_LOGO, the operator name is required.
 void setPhoneModel(java.lang.String model)
          Set the required phone model.

 

Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values

 

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

 

Field Detail

MIME

public static final java.lang.String MIME
See Also:
Constant Field Values

GRAPHICS

public static final java.lang.String GRAPHICS
See Also:
Constant Field Values

GRAPHICS_TYPE

public static final java.lang.String GRAPHICS_TYPE
See Also:
Constant Field Values

GRAPHICS_WIDTH

public static final java.lang.String GRAPHICS_WIDTH
See Also:
Constant Field Values

GRAPHICS_HEIGHT

public static final java.lang.String GRAPHICS_HEIGHT
See Also:
Constant Field Values

GRAPHICS_ENCODING

public static final java.lang.String GRAPHICS_ENCODING
See Also:
Constant Field Values

OPERATOR

public static final java.lang.String OPERATOR
See Also:
Constant Field Values

OPERATOR_LOGO

public static final java.lang.String OPERATOR_LOGO
See Also:
Constant Field Values

GROUP_GRAPHICS

public static final java.lang.String GROUP_GRAPHICS
See Also:
Constant Field Values

PICTURE_MESSAGE

public static final java.lang.String PICTURE_MESSAGE
See Also:
Constant Field Values

PHONE_MODEL

public static final java.lang.String PHONE_MODEL
See Also:
Constant Field Values

GRAPHICS_ENC_OTA_ASCII

public static final java.lang.String GRAPHICS_ENC_OTA_ASCII
See Also:
Constant Field Values
Constructor Detail

Graphics

public Graphics()
Constructor.
Method Detail

setGraphics

public void setGraphics(java.lang.String image)
Set the required graphics as a string. The enoding should be set separately.
Parameters:
image - the graphics.

setGraphicsEncoding

public void setGraphicsEncoding(java.lang.String enc)
Set the required graphics encoding format. Only bitmap and OTA_ASCII format are supported by the shipped GSM Smart Message encoder. If another GSMSmartMsgEncoder is plugged in, other formats supported by that encoder should be supported as well. The bitmap format is well known, and supported by all shipped SMS drivers. The OTA_ASCII format is supported only by an internal driver running on messenger.oracle.com.

setGraphicsType

public void setGraphicsType(java.lang.String type)
Set the required graphics type. It can be either one of: OPERATOR_LOGO, GROUP_GRAPHICS or PICTURE_MESSAGE.

setGraphicsWidth

public void setGraphicsWidth(int width)
If the encoding is not OTA_ASCII, the width of the bitmap is required.

setGraphicsHeight

public void setGraphicsHeight(int height)
If the encoding is not OTA_ASCII, the height of the bitmap is required.

setOperator

public void setOperator(java.lang.String operator)
If the encoding is not OTA_ASCII, and the graphcs is of type OPERATOR_LOGO, the operator name is required.

setPhoneModel

public void setPhoneModel(java.lang.String model)
Set the required phone model. The phone model should be of the format: "band type", for example: "Nokia 6210", "Ericsson R380". It is case insensitive.

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.