org.duracloud.serviceconfig.xml
Class ServiceDocumentBinding

java.lang.Object
  extended by org.duracloud.serviceconfig.xml.ServiceDocumentBinding

public class ServiceDocumentBinding
extends java.lang.Object

This class is a helper utility for binding single ServiceInfo objects to a single-service xml config document.

Author:
Andrew Woods Date: Nov 17, 2009

Constructor Summary
ServiceDocumentBinding()
           
 
Method Summary
static ServiceDocument createDocumentFrom(ServiceInfo serviceInfo)
          This method serializes the arg ServiceInfo object into an xml document.
static ServiceInfo createServiceFrom(java.io.InputStream xml)
          This method binds a ServiceInfo object to the content of the arg xml.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceDocumentBinding

public ServiceDocumentBinding()
Method Detail

createServiceFrom

public static ServiceInfo createServiceFrom(java.io.InputStream xml)
This method binds a ServiceInfo object to the content of the arg xml.

Parameters:
xml - single-service document to be bound to ServiceInfo object
Returns:
ServiceInfo object

createDocumentFrom

public static ServiceDocument createDocumentFrom(ServiceInfo serviceInfo)
This method serializes the arg ServiceInfo object into an xml document.

Parameters:
serviceInfo - ServiceInfo object to be serialized
Returns:
single-service xml document


Copyright © 2009-2011 DuraSpace. All Rights Reserved.