org.jafer.registry.uddi.model
Class ServiceInfo

java.lang.Object
  extended by org.jafer.registry.uddi.model.ServiceInfo
All Implemented Interfaces:
java.io.Serializable, ServiceInfo

public class ServiceInfo
extends java.lang.Object
implements ServiceInfo

When a search can return multiple service providers this class is returned in the list as ServiceProviderInfo's. It provides a cut down view of the found service providers to reduce excess data being returned. It allows the caller to decide if they want the full serive provider information which can be obtained by supplying this object to the service manager get calls.

See Also:
Serialized Form

Field Summary
private  org.uddi4j.response.ServiceInfo serviceInfo
          Stores a reference to the service info object returned from the uddi registry
 
Constructor Summary
ServiceInfo(org.uddi4j.datatype.service.BusinessService service)
          Create service info object from a given uddi business service
ServiceInfo(org.uddi4j.response.ServiceInfo serviceInfo)
          Constructor
 
Method Summary
static java.util.List extractServiceInfos(org.uddi4j.response.ServiceList serviceList)
          This method creates a list of serviceInfo objects from the supplied service list.
 java.lang.String getId()
          Returns the uniquie id of the service found.
 java.lang.String getName()
          Returns the name of the service found.
 void removeFromServicesList(java.util.List uddiBusinessServices)
          Removes the service specified by this service info from the list of uddi4j business services.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceInfo

private org.uddi4j.response.ServiceInfo serviceInfo
Stores a reference to the service info object returned from the uddi registry

Constructor Detail

ServiceInfo

public ServiceInfo(org.uddi4j.response.ServiceInfo serviceInfo)
Constructor

Parameters:
serviceInfo - The UDDI service info object

ServiceInfo

public ServiceInfo(org.uddi4j.datatype.service.BusinessService service)
Create service info object from a given uddi business service

Parameters:
service - The business service to create an Info object from
Method Detail

getId

public java.lang.String getId()
Returns the uniquie id of the service found.

Specified by:
getId in interface ServiceInfo
Returns:
The service id.

getName

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

Specified by:
getName in interface ServiceInfo
Returns:
The service name, empty string if not set

extractServiceInfos

public static java.util.List extractServiceInfos(org.uddi4j.response.ServiceList serviceList)
This method creates a list of serviceInfo objects from the supplied service list. This is not exposed on the interface to the caller and therefore should not be used outside of this framework.

Parameters:
serviceList - The service list to process
Returns:
A list of service Info objects

removeFromServicesList

public void removeFromServicesList(java.util.List uddiBusinessServices)
                            throws ServiceDoesNotExistException
Removes the service specified by this service info from the list of uddi4j business services. This is not exposed on the interface to the caller and therefore should not be used outside of this framework.

Parameters:
uddiBusinessServices - The list of uddi services to remove from
Throws:
ServiceDoesNotExistException