Class ConnectionSettings

    • Field Detail

      • logger

        static final org.slf4j.Logger logger
      • M2_SETTINGS_SECURITY_XML

        public static final java.lang.String M2_SETTINGS_SECURITY_XML
        See Also:
        Constant Field Values
      • M2_SETTINGS_SECURITY_PROPERTY

        public static final java.lang.String M2_SETTINGS_SECURITY_PROPERTY
        See Also:
        Constant Field Values
      • BND_CONNECTION_SETTINGS_XML

        private static final java.lang.String BND_CONNECTION_SETTINGS_XML
        See Also:
        Constant Field Values
      • CONNECTION_SETTINGS

        private static final java.lang.String CONNECTION_SETTINGS
        See Also:
        Constant Field Values
      • servers

        private java.util.List<ServerDTO> servers
      • MASK_P

        static java.util.regex.Pattern MASK_P
    • Constructor Detail

      • ConnectionSettings

        public ConnectionSettings​(Processor processor,
                                  HttpClient client)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • readSettings

        public void readSettings()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • parseServer

        private void parseServer​(Attrs value)
                          throws java.lang.Exception
        Set the parameters from within, i.e. not via file
        Parameters:
        uri - the uri that must match
        value - the values
        Throws:
        java.lang.Exception
      • isPrivateKey

        private boolean isPrivateKey​(ServerDTO server)
      • isPassword

        private boolean isPassword​(ServerDTO server)
      • isEmpty

        private boolean isEmpty​(java.lang.String s)
      • getBasicAuthentication

        public BasicAuthentication getBasicAuthentication​(java.lang.String username,
                                                          java.lang.String password)
      • createProxyHandler

        public static ProxyHandler createProxyHandler​(ProxyDTO proxyDTO)
        Create Proxy Handler from ProxyDTO
      • parse

        private void parse​(java.io.File file)
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • readMavenMasterPassphrase

        private java.lang.String readMavenMasterPassphrase()
                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • isActive

        private boolean isActive​(ProxyDTO proxy)
                          throws java.net.SocketException
        Throws:
        java.net.SocketException
      • makeAbsolute

        public static java.lang.String makeAbsolute​(java.io.File cwd,
                                                    java.lang.String trust)
      • add

        public void add​(ServerDTO server)
      • add

        public void add​(ProxyDTO proxy)
      • getServerDTOs

        public java.util.List<ServerDTO> getServerDTOs()