com.esf.device.bluetooth.discovery.service
Class BluetoothService

java.lang.Object
  extended bycom.esf.device.bluetooth.discovery.service.BluetoothService

public class BluetoothService
extends java.lang.Object

This class is used to contain the information related to a Bluetooth service on a single Bluetooth device. Each instance of this class will represent a device service found during the most recent Bluetooth device discovery process.


Constructor Summary
BluetoothService(java.lang.String url, java.lang.String name)
          Constructor.
 
Method Summary
 java.lang.String getName()
          Returns the name of the Bluetooth service.
 java.lang.String getURL()
          Returns the URL of the Bluetooth service within a specific device.
 java.lang.String toString()
          Typically used for application debugging, this method returns a string representation of the Bluetooth service on a specific Bluetooth device.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BluetoothService

public BluetoothService(java.lang.String url,
                        java.lang.String name)
Constructor.

Parameters:
url - The URL used to connect to the service within the device.
name - The name of the service.
Method Detail

getURL

public java.lang.String getURL()
Returns the URL of the Bluetooth service within a specific device. This URL can be passed to methods within the Connector class of the de.avetana.bluetooth.connection namespace.

Note that with the current implementation of the ESF, the javax.microedition.io classes will not properly recognize Bluetooth URLs.

Returns:
The URL of the Bluetooth service

getName

public java.lang.String getName()
Returns the name of the Bluetooth service.

Note that this name is not consistent between manufacturers, for a given Bluetooth service.

Returns:
The Bluetooth service name for a specific Bluetooth device.

toString

public java.lang.String toString()
Typically used for application debugging, this method returns a string representation of the Bluetooth service on a specific Bluetooth device.

Returns:
String, the description of this instance of the service


Copyright © 2009 Eurotech Inc. All rights reserved.