SHOW Signed
 

net.rim.device.api.io
Class MobitexAddress

java.lang.Object
  |
  +--net.rim.device.api.io.DatagramAddressBase
        |
        +--net.rim.device.api.io.MobitexAddress

Deprecated. Mobitex is no longer supported.

public final class MobitexAddress
extends DatagramAddressBase

Encapsulates mobitex addressing information. The syntax for opening a mobitex connection is as follows:

mobitex:<type>:<MAN>
where <type> is one of: and MAN is in ascii-decimal format.

To open a server connection (that is a listener) leave the MAN field blank.

Connector.open() will return a DatagramConnectionBase in this case

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

Since:
JDE 4.0.0
See Also:
Connector, MobitexPacketHeader

Field Summary
 Category: Signed static int TYPE_DATA
          Deprecated. 
 Category: Signed static int TYPE_HPDATA
          Deprecated. 
 Category: Signed static int TYPE_STATUS
          Deprecated. 
 Category: Signed static int TYPE_TEXT
          Deprecated. 
 
Fields inherited from class net.rim.device.api.io.DatagramAddressBase
_address, _key, NONE
 
Constructor Summary
 Category: Signed MobitexAddress()
          Deprecated. 
 Category: Signed MobitexAddress(DatagramAddressBase addressBase)
          Deprecated. 
 Category: Signed MobitexAddress(int man, int type, int hpid)
          Deprecated. 
 Category: Signed MobitexAddress(int man, int type, int hpid, MobitexPacketHeader header)
          Deprecated. 
 Category: Signed MobitexAddress(String address)
          Deprecated. 
 
Method Summary
 Category: Signed static void appendAddress(StringBuffer buf, boolean open, int man, int type, int hpid)
          Deprecated. 
 Category: Signed  boolean equals(Object addressBase)
          Deprecated. 
 Category: Signed  String getAddress()
          Deprecated. 
 Category: Signed  int getHpid()
          Deprecated. 
 Category: Signed  int getMan()
          Deprecated. 
 Category: Signed  MobitexPacketHeader getPacketHeader()
          Deprecated. 
 Category: Signed  int getType()
          Deprecated. 
 Category: Signed  int hashCode()
          Deprecated. 
 Category: Signed static String makeAddress(boolean open, int man, int type, int hpid)
          Deprecated. 
 Category: Signed  void setAddress(String address)
          Deprecated. 
 Category: Signed  void setPacketHeader(MobitexPacketHeader mph)
          Deprecated. 
 
Methods inherited from class net.rim.device.api.io.DatagramAddressBase
appendHex, appendHex, getKey, getSubAddress, getSubAddressBase, indexOfNextDelim, parseInt, parseInt, parseLong, readInt, readShort, writeInt, writeShort
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_DATA

public static final int TYPE_DATA
Deprecated. 
Data packet.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

TYPE_HPDATA

public static final int TYPE_HPDATA
Deprecated. 
HP data type.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

TYPE_STATUS

public static final int TYPE_STATUS
Deprecated. 
Status packet.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

TYPE_TEXT

public static final int TYPE_TEXT
Deprecated. 
Text type.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Constructor Detail

MobitexAddress

public MobitexAddress()
Deprecated. 
Creates a new, empty MobitexAddress instance.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

MobitexAddress

public MobitexAddress(DatagramAddressBase addressBase)
Deprecated. 
Creates a new MobitexAddress instance from provided address base.
Parameters:
addressBase - Address base to provide settings for this new address object.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

MobitexAddress

public MobitexAddress(int man,
                      int type,
                      int hpid)
Deprecated. 
Creates a new MobitexAddress with provided MAN, type, and HPID.
Parameters:
man - MAN for this new address.
type - Packet type for this new address.
hpid - HPID value for this new address.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

MobitexAddress

public MobitexAddress(int man,
                      int type,
                      int hpid,
                      MobitexPacketHeader header)
Deprecated. 
Since:
JDE 4.0.2
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

MobitexAddress

public MobitexAddress(String address)
Deprecated. 
Creates a new MobitexAddress instance with provided address string.
Parameters:
address - Address to use for this address object.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Method Detail

appendAddress

public static void appendAddress(StringBuffer buf,
                                 boolean open,
                                 int man,
                                 int type,
                                 int hpid)
Deprecated. 
Forms an address string and appends it to provided buffer.
Parameters:
buf - String buffer to contain formed address.
open - True if formed address should be open format; false if not.
man - MAN for formed address.
type - Type for formed address.
hpid - HPID for formed address.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

equals

public boolean equals(Object addressBase)
Deprecated. 
Compares this address object with provided address base.
Overrides:
equals in class DatagramAddressBase
Parameters:
addressBase - Address base to compare with this address object.
Returns:
True if this address object is equal to provided address base (either the same object or address base with the same MAN, type, and HPID); otherwise, false.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

getAddress

public String getAddress()
Deprecated. 
Retrieves this object's address.
Overrides:
getAddress in class DatagramAddressBase
Returns:
Address for this address object.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

getHpid

public int getHpid()
Deprecated. 
Retrieves this address object's high protocol ID.
Returns:
HPID for this address object.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

getMan

public int getMan()
Deprecated. 
Retrieves this address object's MAN.
Returns:
This address object's MAN.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

getPacketHeader

public MobitexPacketHeader getPacketHeader()
Deprecated. 
Retrieves packet header associated with this address object.
Returns:
Packet header object for this address.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

getType

public int getType()
Deprecated. 
Retrieves this address object's packet type.
Returns:
Packet type for this address object.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

hashCode

public int hashCode()
Deprecated. 
Retrieves hash of this address object.
Overrides:
hashCode in class DatagramAddressBase
Returns:
Hash of this address object.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

makeAddress

public static String makeAddress(boolean open,
                                 int man,
                                 int type,
                                 int hpid)
Deprecated. 
Forms an address string from provided settings.
Parameters:
open - True if formed address should be open format; false if not.
man - MAN for formed address.
type - Type for formed address.
hpid - HPID for formed address.
Returns:
Address string formed from provided settings.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

setAddress

public void setAddress(String address)
Deprecated. 
Sets a new address for this address object.
Overrides:
setAddress in class DatagramAddressBase
Parameters:
address - New address for this object.
Throws:
IllegalArgumentException - If you provide a malformed or illegal address.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

setPacketHeader

public void setPacketHeader(MobitexPacketHeader mph)
Deprecated. 
Sets new packet header for this address object.

If set, the provided packet header is used for all addressing operations; the values set on the addressbase are ignored.

Parameters:
mph - New packet header object for this address.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.



Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.