Class DnsRequisitionUrlConnection


  • public class DnsRequisitionUrlConnection
    extends URLConnection
    Implementation of java.net.URLConnection for handling URLs specified in the Provisiond configuration requesting an import requisition based on the A records of a zone transfer for a DNS server.
    Version:
    $Id: $
    Author:
    David Hustace
    • Method Detail

      • determineExpressionFromUrl

        protected static String determineExpressionFromUrl​(URL url)

        determineExpressionFromUrl

        Parameters:
        url - a URL object.
        Returns:
        a String object.
      • determineLocationFromUrl

        protected static String determineLocationFromUrl​(URL url)
      • decodeQueryString

        protected static String decodeQueryString​(URL url)

        decodeQueryString

        Parameters:
        url - a URL object.
        Returns:
        a String object.
      • validateDnsUrl

        protected void validateDnsUrl​(URL url)
                               throws MalformedURLException
        Validate the format is: dns:////?expression= there should be only one arguement in the path there should only be one query parameter
        Parameters:
        url - a URL object.
        Throws:
        MalformedURLException - if any.
      • parseZone

        protected static String parseZone​(URL url)
        Zone should be the first path entity dns:///[/][/>
        Parameters:
        url - a URL object.
        Returns:
        a String object.
      • parseForeignSource

        protected static String parseForeignSource​(URL url)
        Foreign Source should be the second path entity, if it exists, otherwise it is set to the value of the zone. dns:///[/][/>
        Parameters:
        url - a URL object.
        Returns:
        a String object.