private static class ProfilesConfigFileLoader.ProfilesConfigFileLoaderHelper extends AbstractProfilesConfigFileScanner
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
allProfileProperties
Map from the parsed profile name to the map of all the property values
included the specific profile
|
Modifier | Constructor and Description |
---|---|
private |
ProfilesConfigFileLoaderHelper() |
Modifier and Type | Method and Description |
---|---|
protected void |
onEmptyOrCommentLine(java.lang.String profileName,
java.lang.String line)
Action to be performed when an empty or comment line is detected
|
protected void |
onEndOfFile()
Action to be performed when the scanner reaches the end of the
credentials file.
|
protected void |
onProfileEndingLine(java.lang.String prevProfileName)
Action to be performed when the scanner reaches the end of a profile
section.
|
protected void |
onProfileProperty(java.lang.String profileName,
java.lang.String propertyKey,
java.lang.String propertyValue,
boolean isSupportedProperty,
java.lang.String line)
Action to be performed when a property declaration is detected inside a
profile section.
|
protected void |
onProfileStartingLine(java.lang.String newProfileName,
java.lang.String line)
Action to be performed when the starting line of a new profile is detected
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
parseProfileProperties(java.util.Scanner scanner)
Parses the input and returns a map of all the profile properties.
|
run
protected final java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> allProfileProperties
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> parseProfileProperties(java.util.Scanner scanner)
protected void onEmptyOrCommentLine(java.lang.String profileName, java.lang.String line)
AbstractProfilesConfigFileScanner
onEmptyOrCommentLine
in class AbstractProfilesConfigFileScanner
protected void onProfileStartingLine(java.lang.String newProfileName, java.lang.String line)
AbstractProfilesConfigFileScanner
onProfileStartingLine
in class AbstractProfilesConfigFileScanner
protected void onProfileEndingLine(java.lang.String prevProfileName)
AbstractProfilesConfigFileScanner
onProfileEndingLine
in class AbstractProfilesConfigFileScanner
protected void onProfileProperty(java.lang.String profileName, java.lang.String propertyKey, java.lang.String propertyValue, boolean isSupportedProperty, java.lang.String line)
AbstractProfilesConfigFileScanner
onProfileProperty
in class AbstractProfilesConfigFileScanner
profileName
- The name of the profile where this property is declared.propertyKey
- The name of the property.propertyValue
- The value of the property.isSupportedProperty
- Whether this is a supported property according to the
specification of credential profiles file.line
- The original line of text where the property is declared.protected void onEndOfFile()
AbstractProfilesConfigFileScanner
onEndOfFile
in class AbstractProfilesConfigFileScanner