public class Entry extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
Entry.AbstractEntryBuilder<T>  | 
| Modifier and Type | Field and Description | 
|---|---|
protected Map<String,FileEntryType.SshdConfigFileEntry> | 
keyEntries  | 
protected SshdConfigFile | 
sshdConfigFile  | 
| Constructor and Description | 
|---|
Entry(SshdConfigFile sshdConfigFile)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addBeginingComment(FileEntryType.CommentEntry commentEntry)
Will add a comment entry at the beginning of the section. 
 | 
void | 
addCommentForEntry(String key,
                  FileEntryType.CommentEntry commentEntry)  | 
int | 
addEntry(int index,
        FileEntryType.SshdConfigFileEntry sshdConfigFileEntry)
This method would add entry after the past valid entry. 
 | 
void | 
appendEntry(FileEntryType.SshdConfigFileEntry sshdConfigFileEntry)
This will simply keep adding entries in a section, will not make any decision to check to 
 add new entry after a valid entry. 
 | 
void | 
deleteEntry(String key)
Will delete the entry for the given key. 
 | 
Boolean | 
entryMatches(String key,
            Collection<String> patterns)  | 
protected <T> T | 
executeRead(Callable<T> callable)  | 
protected <T> T | 
executeWrite(Callable<T> callable)  | 
FileEntryType.SshdConfigFileEntry | 
findEntry(String key)  | 
FileEntryType.SshdConfigFileEntry | 
findEntryAtIndex(int index)  | 
int | 
findEntryIndex(String key)  | 
FileEntryType.SshdConfigKeyValueEntry | 
findKeyValueEntry(String key)  | 
String | 
getBlankEntryKey()  | 
String | 
getCommentEntryKey()  | 
FileEntryType.SshdConfigFileEntry | 
getEntry(String key)  | 
Map<String,FileEntryType.SshdConfigFileEntry> | 
getKeyEntries()  | 
protected org.apache.commons.collections.map.ListOrderedMap | 
getKeyEntriesOrderedMap()  | 
void | 
updateEntry(String key,
           String value)
Will update the value for the given key with new entry 
 | 
protected SshdConfigFile sshdConfigFile
protected Map<String,FileEntryType.SshdConfigFileEntry> keyEntries
public Entry(SshdConfigFile sshdConfigFile)
protected org.apache.commons.collections.map.ListOrderedMap getKeyEntriesOrderedMap()
public FileEntryType.SshdConfigFileEntry getEntry(String key)
public Map<String,FileEntryType.SshdConfigFileEntry> getKeyEntries()
public FileEntryType.SshdConfigFileEntry findEntry(String key)
public FileEntryType.SshdConfigKeyValueEntry findKeyValueEntry(String key)
public int findEntryIndex(String key)
public FileEntryType.SshdConfigFileEntry findEntryAtIndex(int index)
public void addCommentForEntry(String key, FileEntryType.CommentEntry commentEntry)
public void addBeginingComment(FileEntryType.CommentEntry commentEntry)
commentEntry - public void updateEntry(String key, String value)
key - entry - public void deleteEntry(String key)
key - public int addEntry(int index,
                    FileEntryType.SshdConfigFileEntry sshdConfigFileEntry)
index - sshdConfigFileEntry - public void appendEntry(FileEntryType.SshdConfigFileEntry sshdConfigFileEntry)
sshdConfigFileEntry - public Boolean entryMatches(String key, Collection<String> patterns)
public String getBlankEntryKey()
public String getCommentEntryKey()
protected <T> T executeRead(Callable<T> callable)
protected <T> T executeWrite(Callable<T> callable)
Copyright © 2025. All rights reserved.