|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.io.transport.TransportDescriptor
public class TransportDescriptor
This class encapsulates information related to a specific transport instance. It includes the transportType
and identifiers for the
corresponding ServiceRecord
(if available) for the transport.
Instances of this class are obtained via the methods in TransportInfo
(e.g. getTransportDescriptor()
)
ServiceRecord
,
TransportInfo
Constructor Summary | ||
---|---|---|
TransportDescriptor(int transportType,
ServiceRecord serviceRecord)
Creates a TransportDescriptor for the specified transportType with the specified
ServiceRecord . |
Method Summary | ||
---|---|---|
String |
getCid()
Retrieves the CID of the ServiceRecord for the transport instance represented by this descriptor (if available) |
|
int |
getTransportType()
Retrieves the transportType encapsulated by this descriptor |
|
String |
getUid()
Retrieves the UID of the ServiceRecord for the transport instance represented by this descriptor (if available) |
|
void |
setCid(String cid)
Sets the CID of the ServiceRecord for the transport instance represented by this descriptor (if available) |
|
void |
setTransportType(int transportType)
Sets the transportType in the descriptor |
|
void |
setUid(String uid)
Sets the UID of the ServiceRecord for the transport instance represented by this descriptor (if available) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransportDescriptor(int transportType, ServiceRecord serviceRecord)
TransportDescriptor
for the specified transportType
with the specified
ServiceRecord
.
Note: This constructor should not be used directly; instead, instances of this class are obtained via the methods
in TransportInfo
(e.g. getTrasnportDescriptor()
)
transportType
- One of the TRANSPORT_*
defined in TransportInfo
serviceRecord
- The ServiceRecord
for the specified transport.Method Detail |
---|
public int getTransportType()
transportType
encapsulated by this descriptor
transportType
encapsulated by this descriptorpublic void setTransportType(int transportType)
transportType
in the descriptor
transportType
- the transportType to setpublic String getUid()
ServiceRecord
for the transport instance represented by this descriptor (if available)
String
representing the UID of the ServiceRecord
for the transport instance
represented by this descriptor; or null
otherwise.public void setUid(String uid)
ServiceRecord
for the transport instance represented by this descriptor (if available)
public String getCid()
ServiceRecord
for the transport instance represented by this descriptor (if available)
String
representing the CID of the ServiceRecord
for the transport instance
represented by this descriptor; or null
otherwise.public void setCid(String cid)
ServiceRecord
for the transport instance represented by this descriptor (if available)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2010 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. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.