|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ecf.osgi.services.discovery.local.ServiceEndpointDescriptionImpl
public class ServiceEndpointDescriptionImpl
| Constructor Summary | |
|---|---|
ServiceEndpointDescriptionImpl()
|
|
ServiceEndpointDescriptionImpl(java.util.Collection interfaceNames,
java.util.Collection interfacesAndVersions,
java.util.Collection endPointInterfaces,
java.util.Map props,
java.lang.String endpntID)
|
|
| Method Summary | |
|---|---|
void |
addProperty(java.lang.String key,
java.lang.Object value)
|
static java.lang.String |
convertJavaInterface2Path(java.lang.String javaInterfaceName)
|
static java.lang.String |
convertPath2JavaInterface(java.lang.String interfaceNameEncodedAsPath)
|
boolean |
equals(java.lang.Object serviceDescription)
|
java.lang.String |
getEndpointID()
Returns the value of the property with key ServicePublication.ENDPOINT_ID. |
java.lang.String |
getEndpointInterfaceName(java.lang.String interfaceName)
Returns non-Java endpoint interface name associated with the given interface. |
java.net.URI |
getLocation()
Returns the value of the property with key ServicePublication.ENDPOINT_LOCATION. |
java.util.Map |
getProperties()
Returns all service endpoint properties. |
java.lang.Object |
getProperty(java.lang.String key)
Getter method for the property value of a given key. |
java.util.Collection |
getPropertyKeys()
Returns all names of service endpoint properties. |
java.util.Collection |
getProvidedInterfaces()
Returns the value of the property with key ServicePublication.SERVICE_INTERFACE_NAME. |
java.lang.String |
getVersion(java.lang.String interfaceName)
Returns version of the given interface. |
int |
hashCode()
|
void |
setProperties(java.util.Map props)
|
void |
setProvidedInterfaces(java.util.Collection interfaceNames)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceEndpointDescriptionImpl()
public ServiceEndpointDescriptionImpl(java.util.Collection interfaceNames,
java.util.Collection interfacesAndVersions,
java.util.Collection endPointInterfaces,
java.util.Map props,
java.lang.String endpntID)
interfaceNames - interfacesAndVersions - endPointInterfaces - props -
ServiceLocationException| Method Detail |
|---|
public java.util.Map getProperties()
ServiceEndpointDescription
getProperties in interface ServiceEndpointDescriptionMap (<String, Object>). The map is never
null or empty but contains at least mandatory
ServicePublication properties. Since
ServiceEndpointDescription objects are immutable,
the returned map is also not going to be updated at a later point
of time.public java.lang.Object getProperty(java.lang.String key)
ServiceEndpointDescription
getProperty in interface ServiceEndpointDescriptionkey - Name of the property
null if none is found for the
given key or if provided key is null.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.util.Collection getProvidedInterfaces()
ServiceEndpointDescriptionServicePublication.SERVICE_INTERFACE_NAME.
getProvidedInterfaces in interface ServiceEndpointDescriptionCollection (<String>) of service interface
names provided by the advertised service endpoint. The collection
is never null or empty but contains at least one
service interface.ServiceEndpointDescription.getProvidedInterfaces()public java.lang.String getEndpointInterfaceName(java.lang.String interfaceName)
ServiceEndpointDescription
Value of the property with key
ServicePublication.ENDPOINT_INTERFACE_NAME is used by this
operation.
getEndpointInterfaceName in interface ServiceEndpointDescriptioninterfaceName - for which its non-Java endpoint interface name should be
returned.
null if it
hasn't been provided or if given interface name is
null.ServiceEndpointDescription.getEndpointInterfaceName(java.lang.String)public java.lang.String getVersion(java.lang.String interfaceName)
ServiceEndpointDescription
Value of the property with key
ServicePublication.SERVICE_INTERFACE_VERSION is used by this
operation.
getVersion in interface ServiceEndpointDescriptioninterfaceName - for which its version should be returned.
null if it
hasn't been provided or if given interface name is
null.ServiceEndpointDescription.getVersion(java.lang.String)public java.net.URI getLocation()
ServiceEndpointDescriptionServicePublication.ENDPOINT_LOCATION.
getLocation in interface ServiceEndpointDescriptionnull if it
hasn't been provided.public java.util.Collection getPropertyKeys()
ServiceEndpointDescription
getPropertyKeys in interface ServiceEndpointDescriptionServiceEndpointDescription.getPropertyKeys()
public void addProperty(java.lang.String key,
java.lang.Object value)
key - value - public static java.lang.String convertJavaInterface2Path(java.lang.String javaInterfaceName)
javaInterfaceName -
public static java.lang.String convertPath2JavaInterface(java.lang.String interfaceNameEncodedAsPath)
interfaceNameEncodedAsPath -
public boolean equals(java.lang.Object serviceDescription)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public java.lang.String getEndpointID()
ServiceEndpointDescriptionServicePublication.ENDPOINT_ID.
getEndpointID in interface ServiceEndpointDescriptionnull if it hasn't
been provided.ServiceEndpointDescription.getEndpointID()public void setProvidedInterfaces(java.util.Collection interfaceNames)
interfaceNames - the list of interfaceNames provided by this
ServiceEndpointDescriptionpublic void setProperties(java.util.Map props)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||