Modifier and Type | Class and Description |
---|---|
static class |
HttpConfig.HttpRedirectMode
Config values for http.followRedirect.
|
Modifier and Type | Field and Description |
---|---|
static String |
COOKIE_FILE_CACHE_LIMIT_KEY
Custom JGit config key which holds the maximum number of cookie files to
keep in the cache.
|
static String |
COOKIE_FILE_KEY
git config key for the "cookieFile" setting.
|
static String |
FOLLOW_REDIRECTS_KEY
git config key for the "followRedirects" setting.
|
static String |
HTTP
git config section key for http settings.
|
static String |
MAX_REDIRECTS_KEY
git config key for the "maxRedirects" setting.
|
static String |
POST_BUFFER_KEY
git config key for the "postBuffer" setting.
|
static String |
SAVE_COOKIES_KEY
git config key for the "saveCookies" setting.
|
static String |
SSL_VERIFY_KEY
git config key for the "sslVerify" setting.
|
Constructor and Description |
---|
HttpConfig(Config config,
URIish uri)
Creates a new
HttpConfig tailored to
the given URIish . |
HttpConfig(URIish uri)
Creates a
HttpConfig that reads values
solely from the user config. |
Modifier and Type | Method and Description |
---|---|
String |
getCookieFile()
Get the "http.cookieFile" setting
|
int |
getCookieFileCacheLimit()
Get the "http.cookieFileCacheLimit" setting (gives the maximum number of
cookie files to keep in the LRU cache)
|
HttpConfig.HttpRedirectMode |
getFollowRedirects()
Get the "http.followRedirects" setting
|
int |
getMaxRedirects()
Get the "http.maxRedirects" setting
|
int |
getPostBuffer()
Get the "http.postBuffer" setting
|
boolean |
getSaveCookies()
Get the "http.saveCookies" setting
|
boolean |
isSslVerify()
Get the "http.sslVerify" setting
|
public static final String HTTP
public static final String FOLLOW_REDIRECTS_KEY
public static final String MAX_REDIRECTS_KEY
public static final String POST_BUFFER_KEY
public static final String SSL_VERIFY_KEY
public static final String COOKIE_FILE_KEY
public static final String SAVE_COOKIES_KEY
public static final String COOKIE_FILE_CACHE_LIMIT_KEY
public HttpConfig(Config config, URIish uri)
HttpConfig
tailored to
the given URIish
.config
- to read the HttpConfig
fromuri
- to get the configuration values forpublic HttpConfig(URIish uri)
HttpConfig
that reads values
solely from the user config.uri
- to get the configuration values forpublic int getPostBuffer()
public boolean isSslVerify()
public HttpConfig.HttpRedirectMode getFollowRedirects()
public int getMaxRedirects()
public String getCookieFile()
public boolean getSaveCookies()
public int getCookieFileCacheLimit()
Copyright © 2019 Eclipse JGit Project. All rights reserved.