Class ServiceBindingImpl
- java.lang.Object
-
- com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
-
- com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
-
- com.sun.xml.registry.uddi.infomodel.ServiceBindingImpl
-
- All Implemented Interfaces:
Serializable
,javax.xml.registry.infomodel.ExtensibleObject
,javax.xml.registry.infomodel.RegistryObject
,javax.xml.registry.infomodel.ServiceBinding
,javax.xml.registry.infomodel.URIValidator
public class ServiceBindingImpl extends RegistryObjectImpl implements javax.xml.registry.infomodel.ServiceBinding, Serializable
Implementation of the ServiceBinding interface- Author:
- Farrukh S. Najmi, Kathy Walsh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceBindingImpl()
Default constructor initializes list and creates URIValidatorImpl object for delgating uri validations tasks.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSpecificationLink(javax.xml.registry.infomodel.SpecificationLink link)
Add specification link.void
addSpecificationLinks(Collection specificationLinks)
Add a Collection of SpecificationLink children.String
getAccessURI()
Gets the URI that gives access to the service via this binding.javax.xml.registry.infomodel.Service
getService()
Gets the parent service for which this is a bindingCollection
getSpecificationLinks()
Get specification linksjavax.xml.registry.infomodel.ServiceBinding
getTargetBinding()
Gets the next ServiceInterfaceBinding in case there is a redirectionboolean
getValidateURI()
Whether or not validation is turned onvoid
removeSpecificationLink(javax.xml.registry.infomodel.SpecificationLink specificationLink)
Remove a child SpecificationLinkvoid
removeSpecificationLinks(Collection specificationLinks)
Remove a Collection of children SpecificationLinks.void
setAccessURI(String uri)
Sets the URI that gives access to the service via this binding.void
setService(javax.xml.registry.infomodel.Service service)
Internal method for setting servicevoid
setSpecificationLinks(Collection links)
Internal method to set the specification linksvoid
setTargetBinding(javax.xml.registry.infomodel.ServiceBinding binding)
Sets the next ServiceInterfaceBinding in case there is a redirection.void
setValidateURI(boolean validate)
Turns validation on or off.-
Methods inherited from class com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, addExternalLink, addExternalLinks, addSlot, addSlots, areAssociationsLoaded, getAssociatedObjects, getAssociations, getAuditTrail, getClassifications, getConnection, getDescription, getExternalIdentifiers, getExternalLinks, getKey, getLifeCycleManager, getName, getObjectType, getRegistryPackages, getRegistryService, getServiceId, getSubmittingOrganization, isDeleted, isLoaded, isModified, isNew, isRetrieved, removeAssociation, removeAssociations, removeClassification, removeClassifications, removeExternalIdentifier, removeExternalIdentifiers, removeExternalLink, removeExternalLinks, removeSlot, removeSlots, setAssociations, setAssociationsLoaded, setClassifications, setDescription, setExternalIdentifiers, setExternalLinks, setIsDeleted, setIsLoaded, setIsModified, setIsNew, setIsRetrieved, setKey, setLifeCycleManager, setName, setObjectType, setRegistryService, setServiceId, setStatusFlags, setSubmittingOrganization, toXML
-
Methods inherited from class com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
getSlot, getSlots
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
-
Methods inherited from interface javax.xml.registry.infomodel.RegistryObject
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, addExternalLink, addExternalLinks, getAssociatedObjects, getAssociations, getAuditTrail, getClassifications, getDescription, getExternalIdentifiers, getExternalLinks, getKey, getLifeCycleManager, getName, getObjectType, getRegistryPackages, getSubmittingOrganization, removeAssociation, removeAssociations, removeClassification, removeClassifications, removeExternalIdentifier, removeExternalIdentifiers, removeExternalLink, removeExternalLinks, setAssociations, setClassifications, setDescription, setExternalIdentifiers, setExternalLinks, setKey, setName, toXML
-
-
-
-
Method Detail
-
getAccessURI
public String getAccessURI() throws javax.xml.registry.JAXRException
Gets the URI that gives access to the service via this binding.- Specified by:
getAccessURI
in interfacejavax.xml.registry.infomodel.ServiceBinding
- Throws:
javax.xml.registry.JAXRException
-
setAccessURI
public void setAccessURI(String uri) throws javax.xml.registry.JAXRException
Sets the URI that gives access to the service via this binding. If there is already a target binding, throw an exception.- Specified by:
setAccessURI
in interfacejavax.xml.registry.infomodel.ServiceBinding
- Throws:
javax.xml.registry.JAXRException
-
getTargetBinding
public javax.xml.registry.infomodel.ServiceBinding getTargetBinding() throws javax.xml.registry.JAXRException
Gets the next ServiceInterfaceBinding in case there is a redirection- Specified by:
getTargetBinding
in interfacejavax.xml.registry.infomodel.ServiceBinding
- Throws:
javax.xml.registry.JAXRException
-
setTargetBinding
public void setTargetBinding(javax.xml.registry.infomodel.ServiceBinding binding) throws javax.xml.registry.JAXRException
Sets the next ServiceInterfaceBinding in case there is a redirection. Throws an exception if there is already an accessURI.- Specified by:
setTargetBinding
in interfacejavax.xml.registry.infomodel.ServiceBinding
- Throws:
javax.xml.registry.JAXRException
-
getService
public javax.xml.registry.infomodel.Service getService() throws javax.xml.registry.JAXRException
Gets the parent service for which this is a binding- Specified by:
getService
in interfacejavax.xml.registry.infomodel.ServiceBinding
- Throws:
javax.xml.registry.JAXRException
-
setService
public void setService(javax.xml.registry.infomodel.Service service)
Internal method for setting service
-
getSpecificationLinks
public Collection getSpecificationLinks() throws javax.xml.registry.JAXRException
Get specification links- Specified by:
getSpecificationLinks
in interfacejavax.xml.registry.infomodel.ServiceBinding
- Throws:
javax.xml.registry.JAXRException
-
addSpecificationLink
public void addSpecificationLink(javax.xml.registry.infomodel.SpecificationLink link) throws javax.xml.registry.JAXRException
Add specification link. This will call setServiceBinding() on the added SpecificationLink.- Specified by:
addSpecificationLink
in interfacejavax.xml.registry.infomodel.ServiceBinding
- Throws:
javax.xml.registry.JAXRException
-
addSpecificationLinks
public void addSpecificationLinks(Collection specificationLinks) throws javax.xml.registry.JAXRException
Add a Collection of SpecificationLink children. Treat null collection as an empty collection. Sets the service binding on each specification link.- Specified by:
addSpecificationLinks
in interfacejavax.xml.registry.infomodel.ServiceBinding
- Throws:
javax.xml.registry.JAXRException
-
removeSpecificationLink
public void removeSpecificationLink(javax.xml.registry.infomodel.SpecificationLink specificationLink) throws javax.xml.registry.JAXRException
Remove a child SpecificationLink- Specified by:
removeSpecificationLink
in interfacejavax.xml.registry.infomodel.ServiceBinding
- Throws:
javax.xml.registry.JAXRException
-
removeSpecificationLinks
public void removeSpecificationLinks(Collection specificationLinks) throws javax.xml.registry.JAXRException
Remove a Collection of children SpecificationLinks. Treat null param as an empty collection.- Specified by:
removeSpecificationLinks
in interfacejavax.xml.registry.infomodel.ServiceBinding
- Throws:
javax.xml.registry.JAXRException
-
setSpecificationLinks
public void setSpecificationLinks(Collection links) throws javax.xml.registry.JAXRException
Internal method to set the specification links- Throws:
javax.xml.registry.JAXRException
-
setValidateURI
public void setValidateURI(boolean validate)
Turns validation on or off.- Specified by:
setValidateURI
in interfacejavax.xml.registry.infomodel.URIValidator
- See Also:
URIValidatorImpl
-
getValidateURI
public boolean getValidateURI()
Whether or not validation is turned on- Specified by:
getValidateURI
in interfacejavax.xml.registry.infomodel.URIValidator
- See Also:
URIValidatorImpl
-
-