Interface URLConnectionHandler

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String MATCH
      Configuration property for the matcher.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void handle​(java.net.URLConnection connection)
      If the corresponding URL matches, modify the connection in the parameterized way.
      boolean matches​(java.net.URL url)
      Answer if this handler matches the given URL
    • Field Detail

      • MATCH

        static final java.lang.String MATCH
        Configuration property for the matcher. A comma separated list of Glob expressions. If no match is given, all URLs match.
        See Also:
        Constant Field Values
    • Method Detail

      • handle

        void handle​(java.net.URLConnection connection)
             throws java.lang.Exception
        If the corresponding URL matches, modify the connection in the parameterized way.
        Parameters:
        connection - The connection to modify
        Throws:
        java.lang.Exception
      • matches

        boolean matches​(java.net.URL url)
        Answer if this handler matches the given URL
        Parameters:
        url - the url to match
        Returns:
        true if matched, false if not.