Package org.eclipse.jgit.transport
Class NetRC
- java.lang.Object
-
- org.eclipse.jgit.transport.NetRC
-
public class NetRC extends java.lang.Object
NetRC file parser.- Since:
- 3.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NetRC.NetRCEntry
.netrc file entry
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<NetRC.NetRCEntry>
getEntries()
NetRC.NetRCEntry
getEntry(java.lang.String host)
Get entry by host name
-
-
-
Method Detail
-
getEntry
public NetRC.NetRCEntry getEntry(java.lang.String host)
Get entry by host name- Parameters:
host
-- Returns:
- entry associated with host name or null
-
getEntries
public java.util.Collection<NetRC.NetRCEntry> getEntries()
- Returns:
- all entries collected from .netrc file
-
-