Class 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 Detail

      • ServiceBindingImpl

        public ServiceBindingImpl()
        Default constructor initializes list and creates URIValidatorImpl object for delgating uri validations tasks.
    • 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 interface javax.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 interface javax.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 interface javax.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 interface javax.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 interface javax.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 interface javax.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 interface javax.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 interface javax.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 interface javax.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 interface javax.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 interface javax.xml.registry.infomodel.URIValidator
        See Also:
        URIValidatorImpl
      • getValidateURI

        public boolean getValidateURI()
        Whether or not validation is turned on
        Specified by:
        getValidateURI in interface javax.xml.registry.infomodel.URIValidator
        See Also:
        URIValidatorImpl