org.gcube.common.core.scope
Class ServiceMap
java.lang.Object
org.gcube.common.core.scope.ServiceMap
public class ServiceMap
- extends Object
A collection of endpoints to distinguished infrastructural services.
- Author:
- Manuele Simi (ISTI-CNR), Fabio Simeoni (University of Strathclyde)
|
Method Summary |
Set<org.apache.axis.message.addressing.EndpointReferenceType> |
getEndpoints(Object type)
Returns the endpoint of service from the service name. |
void |
load(Reader reader)
Loads service endpoints from a stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceMap
public ServiceMap()
getEndpoints
public Set<org.apache.axis.message.addressing.EndpointReferenceType> getEndpoints(Object type)
- Returns the endpoint of service from the service name.
- Parameters:
type - the service name, type as a plain string or as a value of the ServiceMap.ServiceType enumeration.
- Returns:
- the endpoint, or
null if the service is unknown.
load
public void load(Reader reader)
throws Exception
- Loads service endpoints from a stream.
- Parameters:
reader - the stream reader.
- Throws:
Exception - if the endpoints could not be loaded.
Copyright © 2012. All Rights Reserved.