- java.lang.Object
-
- org.eclipse.jgit.transport.HttpConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpConfig.HttpRedirectModeConfig values for http.followRedirect.
-
Field Summary
Fields Modifier and Type Field Description static StringCOOKIE_FILE_CACHE_LIMIT_KEYCustom JGit config key which holds the maximum number of cookie files to keep in the cache.static StringCOOKIE_FILE_KEYgit config key for the "cookieFile" setting.static StringEXTRA_HEADERgit config key for the "extraHeader" setting.static StringFOLLOW_REDIRECTS_KEYgit config key for the "followRedirects" setting.static StringHTTPgit config section key for http settings.static StringMAX_REDIRECTS_KEYgit config key for the "maxRedirects" setting.static StringPOST_BUFFER_KEYgit config key for the "postBuffer" setting.static StringSAVE_COOKIES_KEYgit config key for the "saveCookies" setting.static StringSSL_VERIFY_KEYgit config key for the "sslVerify" setting.static StringUSER_AGENTgit config key for the "userAgent" setting.
-
Constructor Summary
Constructors Constructor Description HttpConfig(Config config, URIish uri)Creates a newHttpConfigtailored to the givenURIish.HttpConfig(URIish uri)Creates aHttpConfigthat reads values solely from the user config.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCookieFile()Get the "http.cookieFile" settingintgetCookieFileCacheLimit()Get the "http.cookieFileCacheLimit" setting (gives the maximum number of cookie files to keep in the LRU cache)List<String>getExtraHeaders()Get the "http.extraHeader" settingHttpConfig.HttpRedirectModegetFollowRedirects()Get the "http.followRedirects" settingintgetMaxRedirects()Get the "http.maxRedirects" settingintgetPostBuffer()Get the "http.postBuffer" settingbooleangetSaveCookies()Get the "http.saveCookies" settingStringgetUserAgent()Get the "http.userAgent" settingbooleanisSslVerify()Get the "http.sslVerify" setting
-
-
-
Field Detail
-
HTTP
public static final String HTTP
git config section key for http settings.- See Also:
- Constant Field Values
-
FOLLOW_REDIRECTS_KEY
public static final String FOLLOW_REDIRECTS_KEY
git config key for the "followRedirects" setting.- See Also:
- Constant Field Values
-
MAX_REDIRECTS_KEY
public static final String MAX_REDIRECTS_KEY
git config key for the "maxRedirects" setting.- See Also:
- Constant Field Values
-
POST_BUFFER_KEY
public static final String POST_BUFFER_KEY
git config key for the "postBuffer" setting.- See Also:
- Constant Field Values
-
SSL_VERIFY_KEY
public static final String SSL_VERIFY_KEY
git config key for the "sslVerify" setting.- See Also:
- Constant Field Values
-
USER_AGENT
public static final String USER_AGENT
git config key for the "userAgent" setting.- Since:
- 5.10
- See Also:
- Constant Field Values
-
EXTRA_HEADER
public static final String EXTRA_HEADER
git config key for the "extraHeader" setting.- Since:
- 5.10
- See Also:
- Constant Field Values
-
COOKIE_FILE_KEY
public static final String COOKIE_FILE_KEY
git config key for the "cookieFile" setting.- Since:
- 5.4
- See Also:
- Constant Field Values
-
SAVE_COOKIES_KEY
public static final String SAVE_COOKIES_KEY
git config key for the "saveCookies" setting.- Since:
- 5.4
- See Also:
- Constant Field Values
-
COOKIE_FILE_CACHE_LIMIT_KEY
public static final String COOKIE_FILE_CACHE_LIMIT_KEY
Custom JGit config key which holds the maximum number of cookie files to keep in the cache.- Since:
- 5.4
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HttpConfig
public HttpConfig(Config config, URIish uri)
Creates a newHttpConfigtailored to the givenURIish.- Parameters:
config- to read theHttpConfigfromuri- to get the configuration values for
-
HttpConfig
public HttpConfig(URIish uri)
Creates aHttpConfigthat reads values solely from the user config.- Parameters:
uri- to get the configuration values for
-
-
Method Detail
-
getPostBuffer
public int getPostBuffer()
Get the "http.postBuffer" setting- Returns:
- the value of the "http.postBuffer" setting
-
isSslVerify
public boolean isSslVerify()
Get the "http.sslVerify" setting- Returns:
- the value of the "http.sslVerify" setting
-
getFollowRedirects
public HttpConfig.HttpRedirectMode getFollowRedirects()
Get the "http.followRedirects" setting- Returns:
- the value of the "http.followRedirects" setting
-
getMaxRedirects
public int getMaxRedirects()
Get the "http.maxRedirects" setting- Returns:
- the value of the "http.maxRedirects" setting
-
getUserAgent
public String getUserAgent()
Get the "http.userAgent" setting- Returns:
- the value of the "http.userAgent" setting
- Since:
- 5.10
-
getExtraHeaders
@NonNull public List<String> getExtraHeaders()
Get the "http.extraHeader" setting- Returns:
- the value of the "http.extraHeader" setting
- Since:
- 5.10
-
getCookieFile
public String getCookieFile()
Get the "http.cookieFile" setting- Returns:
- the value of the "http.cookieFile" setting
- Since:
- 5.4
-
getSaveCookies
public boolean getSaveCookies()
Get the "http.saveCookies" setting- Returns:
- the value of the "http.saveCookies" setting
- Since:
- 5.4
-
getCookieFileCacheLimit
public int getCookieFileCacheLimit()
Get the "http.cookieFileCacheLimit" setting (gives the maximum number of cookie files to keep in the LRU cache)- Returns:
- the value of the "http.cookieFileCacheLimit" setting
- Since:
- 5.4
-
-