Class ServiceBindingImpl

    • 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 JAXRException
        Gets the URI that gives access to the service via this binding.
        Specified by:
        getAccessURI in interface ServiceBinding
        Returns:
        the URI that gives access to the service via this binding
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • setAccessURI

        public void setAccessURI​(String uri)
                          throws 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 ServiceBinding
        Parameters:
        uri - the URI that gives access to the service via this binding
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • getTargetBinding

        public ServiceBinding getTargetBinding()
                                        throws JAXRException
        Gets the next ServiceInterfaceBinding in case there is a redirection
        Specified by:
        getTargetBinding in interface ServiceBinding
        Returns:
        the next ServiceBinding in case there is a service redirection
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • setTargetBinding

        public void setTargetBinding​(ServiceBinding binding)
                              throws 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 ServiceBinding
        Parameters:
        binding - the target ServiceBinding to which this object is redirected to
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • setService

        public void setService​(Service service)
        Internal method for setting service
      • addSpecificationLink

        public void addSpecificationLink​(SpecificationLink link)
                                  throws JAXRException
        Add specification link. This will call setServiceBinding() on the added SpecificationLink.
        Specified by:
        addSpecificationLink in interface ServiceBinding
        Parameters:
        link - the SpecificationLink being added
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • addSpecificationLinks

        public void addSpecificationLinks​(Collection specificationLinks)
                                   throws 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 ServiceBinding
        Parameters:
        specificationLinks - the Collection of SpecificationLinks being added
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • removeSpecificationLinks

        public void removeSpecificationLinks​(Collection specificationLinks)
                                      throws JAXRException
        Remove a Collection of children SpecificationLinks. Treat null param as an empty collection.
        Specified by:
        removeSpecificationLinks in interface ServiceBinding
        Parameters:
        specificationLinks - the Collection of SpecificationLinks being removed
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • setValidateURI

        public void setValidateURI​(boolean validate)
        Turns validation on or off.
        Specified by:
        setValidateURI in interface URIValidator
        Parameters:
        validate - true implies JAXR provider must perform validation of URIs when they are set; false implies validation is turned off
        See Also:
        URIValidatorImpl
      • getValidateURI

        public boolean getValidateURI()
        Whether or not validation is turned on
        Specified by:
        getValidateURI in interface URIValidator
        Returns:
        true implies JAXR provider must perform validation of URIs when they are set; false implies validation is turned off
        See Also:
        URIValidatorImpl