public Map<String, Object> getConfigProperties() { return session.getConfigProperties(); }
/** * Gets the specified configuration property. * * @param session The repository system session from which to read the configuration property, must not be * {@code null}. * @param defaultValue The default value to return in case the property isn't set. * @param keys The properties to read, must not be {@code null}. The specified keys are read one after one until a * valid value is found. * @return The property value. */ public static int getInteger( RepositorySystemSession session, int defaultValue, String... keys ) { return getInteger( session.getConfigProperties(), defaultValue, keys ); }
/** * Gets the specified configuration property. * * @param session The repository system session from which to read the configuration property, must not be * {@code null}. * @param defaultValue The default value to return in case the property isn't set. * @param keys The properties to read, must not be {@code null}. The specified keys are read one after one until a * valid value is found. * @return The property value. */ public static boolean getBoolean( RepositorySystemSession session, boolean defaultValue, String... keys ) { return getBoolean( session.getConfigProperties(), defaultValue, keys ); }
/** * Gets the specified configuration property. * * @param session The repository system session from which to read the configuration property, must not be * {@code null}. * @param defaultValue The default value to return in case the property isn't set, may be {@code null}. * @param keys The properties to read, must not be {@code null}. The specified keys are read one after one until a * valid value is found. * @return The property value or {@code null} if none. */ public static List<?> getList( RepositorySystemSession session, List<?> defaultValue, String... keys ) { return getList( session.getConfigProperties(), defaultValue, keys ); }
/** * Gets the specified configuration property. * * @param session The repository system session from which to read the configuration property, must not be * {@code null}. * @param defaultValue The default value to return in case the property isn't set, may be {@code null}. * @param keys The properties to read, must not be {@code null}. The specified keys are read one after one until a * valid value is found. * @return The property value or {@code null} if none. */ public static Map<?, ?> getMap( RepositorySystemSession session, Map<?, ?> defaultValue, String... keys ) { return getMap( session.getConfigProperties(), defaultValue, keys ); }
/** * Gets the specified configuration property. * * @param session The repository system session from which to read the configuration property, must not be * {@code null}. * @param defaultValue The default value to return in case the property isn't set, may be {@code null}. * @param keys The properties to read, must not be {@code null}. The specified keys are read one after one until a * valid value is found. * @return The property value or {@code null} if none. */ public static Object getObject( RepositorySystemSession session, Object defaultValue, String... keys ) { return getObject( session.getConfigProperties(), defaultValue, keys ); }
/** * Gets the specified configuration property. * * @param session The repository system session from which to read the configuration property, must not be * {@code null}. * @param key The property to read, must not be {@code null}. * @param defaultValue The default value to return in case the property isn't set. * @return The property value. * @deprecated As of version 1.12, use {@code org.sonatype.aether.util.ConfigUtils} instead. */ @Deprecated public static boolean get( RepositorySystemSession session, String key, boolean defaultValue ) { return get( session.getConfigProperties(), key, defaultValue ); }
/** * Gets the specified configuration property. * * @param session The repository system session from which to read the configuration property, must not be * {@code null}. * @param defaultValue The default value to return in case the property isn't set, may be {@code null}. * @param keys The properties to read, must not be {@code null}. The specified keys are read one after one until a * valid value is found. * @return The property value or {@code null} if none. */ public static String getString( RepositorySystemSession session, String defaultValue, String... keys ) { return getString( session.getConfigProperties(), defaultValue, keys ); }
/** * Gets the specified configuration property. * * @param session The repository system session from which to read the configuration property, must not be * {@code null}. * @param defaultValue The default value to return in case the property isn't set. * @param keys The properties to read, must not be {@code null}. The specified keys are read one after one until a * valid value is found. * @return The property value. */ public static long getLong( RepositorySystemSession session, long defaultValue, String... keys ) { return getLong( session.getConfigProperties(), defaultValue, keys ); }
/** * Gets the specified configuration property. * * @param session The repository system session from which to read the configuration property, must not be * {@code null}. * @param key The property to read, must not be {@code null}. * @param defaultValue The default value to return in case the property isn't set, may be {@code null}. * @return The property value or {@code null} if none. * @deprecated As of version 1.12, use {@code org.sonatype.aether.util.ConfigUtils} instead. */ @Deprecated public static String get( RepositorySystemSession session, String key, String defaultValue ) { return get( session.getConfigProperties(), key, defaultValue ); }
/** * Gets the specified configuration property. * * @param session The repository system session from which to read the configuration property, must not be * {@code null}. * @param key The property to read, must not be {@code null}. * @param defaultValue The default value to return in case the property isn't set. * @return The property value. * @deprecated As of version 1.12, use {@code org.sonatype.aether.util.ConfigUtils} instead. */ @Deprecated public static int get( RepositorySystemSession session, String key, int defaultValue ) { return get( session.getConfigProperties(), key, defaultValue ); }
/** * Gets the specified configuration property. * * @param session The repository system session from which to read the configuration property, must not be * {@code null}. * @param key The property to read, must not be {@code null}. * @param defaultValue The default value to return in case the property isn't set, may be {@code null}. * @return The property value or {@code null} if none. * @deprecated As of version 1.12, use {@code org.sonatype.aether.util.ConfigUtils} instead. */ @Deprecated public static String get( RepositorySystemSession session, String key, String defaultValue ) { return get( session.getConfigProperties(), key, defaultValue ); }
/** * Gets the specified configuration property. * * @param session The repository system session from which to read the configuration property, must not be * {@code null}. * @param key The property to read, must not be {@code null}. * @param defaultValue The default value to return in case the property isn't set. * @return The property value. * @deprecated As of version 1.12, use {@code org.sonatype.aether.util.ConfigUtils} instead. */ @Deprecated public static int get( RepositorySystemSession session, String key, int defaultValue ) { return get( session.getConfigProperties(), key, defaultValue ); }
/** * Gets the specified configuration property. * * @param session The repository system session from which to read the configuration property, must not be * {@code null}. * @param key The property to read, must not be {@code null}. * @param defaultValue The default value to return in case the property isn't set. * @return The property value. * @deprecated As of version 1.12, use {@code org.sonatype.aether.util.ConfigUtils} instead. */ @Deprecated public static int get( RepositorySystemSession session, String key, int defaultValue ) { return get( session.getConfigProperties(), key, defaultValue ); }
/** * Gets the specified configuration property. * * @param session The repository system session from which to read the configuration property, must not be * {@code null}. * @param key The property to read, must not be {@code null}. * @param defaultValue The default value to return in case the property isn't set. * @return The property value. * @deprecated As of version 1.12, use {@code org.sonatype.aether.util.ConfigUtils} instead. */ @Deprecated public static boolean get( RepositorySystemSession session, String key, boolean defaultValue ) { return get( session.getConfigProperties(), key, defaultValue ); }
/** * Gets the specified configuration property. * * @param session The repository system session from which to read the configuration property, must not be * {@code null}. * @param key The property to read, must not be {@code null}. * @param defaultValue The default value to return in case the property isn't set, may be {@code null}. * @return The property value or {@code null} if none. * @deprecated As of version 1.12, use {@code org.sonatype.aether.util.ConfigUtils} instead. */ @Deprecated public static String get( RepositorySystemSession session, String key, String defaultValue ) { return get( session.getConfigProperties(), key, defaultValue ); }
/** * Gets the specified configuration property. * * @param session The repository system session from which to read the configuration property, must not be * {@code null}. * @param key The property to read, must not be {@code null}. * @param defaultValue The default value to return in case the property isn't set. * @return The property value. * @deprecated As of version 1.12, use {@code org.sonatype.aether.util.ConfigUtils} instead. */ @Deprecated public static boolean get( RepositorySystemSession session, String key, boolean defaultValue ) { return get( session.getConfigProperties(), key, defaultValue ); }
public FileRepositoryConnector( RepositorySystemSession session, RemoteRepository repository, FileProcessor fileProcessor, Logger logger ) throws NoRepositoryConnectorException { if ( !"default".equals( repository.getContentType() ) ) { throw new NoRepositoryConnectorException( repository ); } this.session = session; this.repository = repository; this.fileProcessor = fileProcessor; this.logger = logger; initExecutor( session.getConfigProperties() ); }
if ( session.getConfigProperties() == null )
setSystemProperties( session.getSystemProperties() ); setUserProperties( session.getUserProperties() ); setConfigProperties( session.getConfigProperties() ); setMirrorSelector( session.getMirrorSelector() ); setProxySelector( session.getProxySelector() );