Package org.eclipse.jgit.transport
Class NetRC
- java.lang.Object
-
- org.eclipse.jgit.transport.NetRC
-
public class NetRC extends 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 Collection<NetRC.NetRCEntry>
getEntries()
Get all entries collected from .netrc fileNetRC.NetRCEntry
getEntry(String host)
Get entry by host name
-
-
-
Constructor Detail
-
NetRC
public NetRC()
Constructor for NetRC.
-
NetRC
public NetRC(File netrc)
Constructor for NetRC.
- Parameters:
netrc
- the .netrc file
-
-
Method Detail
-
getEntry
public NetRC.NetRCEntry getEntry(String host)
Get entry by host name- Parameters:
host
- the host name- Returns:
- entry associated with host name or null
-
getEntries
public Collection<NetRC.NetRCEntry> getEntries()
Get all entries collected from .netrc file- Returns:
- all entries collected from .netrc file
-
-