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 voidaddSpecificationLink(javax.xml.registry.infomodel.SpecificationLink link)Add specification link.voidaddSpecificationLinks(Collection specificationLinks)Add a Collection of SpecificationLink children.StringgetAccessURI()Gets the URI that gives access to the service via this binding.javax.xml.registry.infomodel.ServicegetService()Gets the parent service for which this is a bindingCollectiongetSpecificationLinks()Get specification linksjavax.xml.registry.infomodel.ServiceBindinggetTargetBinding()Gets the next ServiceInterfaceBinding in case there is a redirectionbooleangetValidateURI()Whether or not validation is turned onvoidremoveSpecificationLink(javax.xml.registry.infomodel.SpecificationLink specificationLink)Remove a child SpecificationLinkvoidremoveSpecificationLinks(Collection specificationLinks)Remove a Collection of children SpecificationLinks.voidsetAccessURI(String uri)Sets the URI that gives access to the service via this binding.voidsetService(javax.xml.registry.infomodel.Service service)Internal method for setting servicevoidsetSpecificationLinks(Collection links)Internal method to set the specification linksvoidsetTargetBinding(javax.xml.registry.infomodel.ServiceBinding binding)Sets the next ServiceInterfaceBinding in case there is a redirection.voidsetValidateURI(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:
getAccessURIin 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:
setAccessURIin interfacejavax.xml.registry.infomodel.ServiceBinding- Throws:
javax.xml.registry.JAXRException
-
getTargetBinding
public javax.xml.registry.infomodel.ServiceBinding getTargetBinding() throws javax.xml.registry.JAXRExceptionGets the next ServiceInterfaceBinding in case there is a redirection- Specified by:
getTargetBindingin interfacejavax.xml.registry.infomodel.ServiceBinding- Throws:
javax.xml.registry.JAXRException
-
setTargetBinding
public void setTargetBinding(javax.xml.registry.infomodel.ServiceBinding binding) throws javax.xml.registry.JAXRExceptionSets the next ServiceInterfaceBinding in case there is a redirection. Throws an exception if there is already an accessURI.- Specified by:
setTargetBindingin interfacejavax.xml.registry.infomodel.ServiceBinding- Throws:
javax.xml.registry.JAXRException
-
getService
public javax.xml.registry.infomodel.Service getService() throws javax.xml.registry.JAXRExceptionGets the parent service for which this is a binding- Specified by:
getServicein 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:
getSpecificationLinksin interfacejavax.xml.registry.infomodel.ServiceBinding- Throws:
javax.xml.registry.JAXRException
-
addSpecificationLink
public void addSpecificationLink(javax.xml.registry.infomodel.SpecificationLink link) throws javax.xml.registry.JAXRExceptionAdd specification link. This will call setServiceBinding() on the added SpecificationLink.- Specified by:
addSpecificationLinkin 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:
addSpecificationLinksin interfacejavax.xml.registry.infomodel.ServiceBinding- Throws:
javax.xml.registry.JAXRException
-
removeSpecificationLink
public void removeSpecificationLink(javax.xml.registry.infomodel.SpecificationLink specificationLink) throws javax.xml.registry.JAXRExceptionRemove a child SpecificationLink- Specified by:
removeSpecificationLinkin 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:
removeSpecificationLinksin 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:
setValidateURIin interfacejavax.xml.registry.infomodel.URIValidator- See Also:
URIValidatorImpl
-
getValidateURI
public boolean getValidateURI()
Whether or not validation is turned on- Specified by:
getValidateURIin interfacejavax.xml.registry.infomodel.URIValidator- See Also:
URIValidatorImpl
-
-