NetscapeCookieFile). May contain
at most n entries, where the least-recently used one is evicted as
soon as more entries are added. The maximum number of entries (=n)
can be set via the git config key http.cookieFileCacheLimit. By
default it is set to 10.
The cache is global, i.e. it is shared among all consumers within the same Java process.
NetscapeCookieFile
| Modifier and Type | Field and Description |
|---|---|
| private final LRUMap | |
| private static NetscapeCookieFileCache |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public NetscapeCookieFile | |
| public static NetscapeCookieFileCache | Returns: the singleton instance of the cookie file cache. If the cache has already been created the given config is ignored (even if it differs from the config, with which the cache has originally been created)the config which defines the limit for this cache config)Get singleton instance |
| cookieFileMap | back to summary |
|---|---|
| private final LRUMap<Path, NetscapeCookieFile> cookieFileMap | |
| instance | back to summary |
|---|---|
| private static NetscapeCookieFileCache instance | |
| NetscapeCookieFileCache | back to summary |
|---|---|
| private NetscapeCookieFileCache(HttpConfig config) | |
| getEntry | back to summary |
|---|---|
| public NetscapeCookieFile getEntry(Path path) Get a cache entry
| |
| getInstance | back to summary |
|---|---|
| public static NetscapeCookieFileCache getInstance(HttpConfig config) Get singleton instance
| |