org.eclipse.ecf.remoteservice.rest
Class RestServiceReference

java.lang.Object
  extended by org.eclipse.ecf.remoteservice.rest.RestServiceReference
All Implemented Interfaces:
IRemoteServiceReference

public class RestServiceReference
extends java.lang.Object
implements IRemoteServiceReference

Objects of this class represents the reference for a RestService.


Constructor Summary
RestServiceReference(RestServiceRegistration restServiceRegistration)
           
 
Method Summary
 ID getContainerID()
          Get container ID for remote service
 IRemoteServiceID getID()
          Get the remote service ID for this reference.
 java.lang.Object getProperty(java.lang.String key)
          Get given property for remote service
 java.lang.String[] getPropertyKeys()
          Get all property keys for remote service
 boolean isActive()
          Return true if reference is active, false otherwise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestServiceReference

public RestServiceReference(RestServiceRegistration restServiceRegistration)
Method Detail

getContainerID

public ID getContainerID()
Description copied from interface: IRemoteServiceReference
Get container ID for remote service

Specified by:
getContainerID in interface IRemoteServiceReference
Returns:
ID the containerID for this reference (where the service is located). Will not be null .

getID

public IRemoteServiceID getID()
Description copied from interface: IRemoteServiceReference
Get the remote service ID for this reference. Will not return null.

Specified by:
getID in interface IRemoteServiceReference
Returns:
IRemoteServiceID the id for the remote service associated with this reference.

getProperty

public java.lang.Object getProperty(java.lang.String key)
Description copied from interface: IRemoteServiceReference
Get given property for remote service

Specified by:
getProperty in interface IRemoteServiceReference
Parameters:
key - the key for the property to get. Must not be null .
Returns:
Object the object or null if does not have named property

getPropertyKeys

public java.lang.String[] getPropertyKeys()
Description copied from interface: IRemoteServiceReference
Get all property keys for remote service

Specified by:
getPropertyKeys in interface IRemoteServiceReference
Returns:
String [] of property keys. Will not be null, but may be empty array.

isActive

public boolean isActive()
Description copied from interface: IRemoteServiceReference
Return true if reference is active, false otherwise

Specified by:
isActive in interface IRemoteServiceReference
Returns:
true if reference is currently active, false otherwise