Package aQute.bnd.url

Class ConnectionSettings

  • All Implemented Interfaces:
    Plugin, RegistryPlugin, URLConnectionHandler, aQute.service.reporter.Report, aQute.service.reporter.Reporter

    public class ConnectionSettings
    extends DefaultURLConnectionHandler
    Generic connection setter can set a number of basic properties if applicable and can add generic headers. See config for the options. For the propeties any property key that starts with an upper case is considered to be a header.
    • Constructor Detail

      • ConnectionSettings

        public ConnectionSettings()
    • Method Detail

      • handle

        public void handle​(java.net.URLConnection connection)
                    throws java.lang.Exception
        Handle the connection
        Specified by:
        handle in interface URLConnectionHandler
        Overrides:
        handle in class DefaultURLConnectionHandler
        Parameters:
        connection - The connection to modify
        Throws:
        java.lang.Exception
      • setProperties

        public void setProperties​(java.util.Map<java.lang.String,​java.lang.String> map)
                           throws java.lang.Exception
        Set the properties.
        Specified by:
        setProperties in interface Plugin
        Overrides:
        setProperties in class DefaultURLConnectionHandler
        Parameters:
        map - attributes and directives for this plugin's clause
        Throws:
        java.lang.Exception