org.eclipse.jgit.lib.Config . git provides for setting values for
specific URLs through "http.<url>.*" subsections. git always considers
only the initial original URL for such settings, not any redirected URL.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | HttpConfig.
Config values for http.followRedirect. |
| Modifier and Type | Field and Description |
|---|---|
| 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. |
| public static final String | COOKIE_FILE_KEY
git config key for the "cookieFile" setting. |
| private String | |
| private int | |
| private static final int | |
| private static final int | |
| private static final String | |
| public static final String | EXTRA_HEADER
git config key for the "extraHeader" setting. |
| private List | |
| public static final String | FOLLOW_REDIRECTS_KEY
git config key for the "followRedirects" setting. |
| private HttpConfig. | |
| private static final String | |
| public static final String | HTTP
git config section key for http settings. |
| private static final Logger | |
| private static final String | |
| private static final int | |
| public static final String | MAX_REDIRECTS_KEY
git config key for the "maxRedirects" setting. |
| private int | |
| public static final String | POST_BUFFER_KEY
git config key for the "postBuffer" setting. |
| private int | |
| public static final String | SAVE_COOKIES_KEY
git config key for the "saveCookies" setting. |
| private boolean | |
| public static final String | SSL_VERIFY_KEY
git config key for the "sslVerify" setting. |
| private boolean | |
| public static final String | USER_AGENT
git config key for the "userAgent" setting. |
| private String |
| Access | Constructor and Description |
|---|---|
| public | HttpConfig(Config
to read the config, URIish org. fromto get the configuration values for uri)Creates a new |
| public | HttpConfig(URIish
to get the configuration values for uri)Creates a |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| private int | |
| private int | |
| private String | |
| public String | |
| public int | Returns: the value of the "http.cookieFileCacheLimit" settingGet the "http.cookieFileCacheLimit" setting (gives the maximum number of cookie files to keep in the LRU cache) |
| public List | Returns: the value of the "http.extraHeader" settingGet the "http.extraHeader" setting |
| public HttpConfig. | Returns: the value of the "http.followRedirects" settingGet the "http.followRedirects" setting |
| public int | Returns: the value of the "http.maxRedirects" settingGet the "http.maxRedirects" setting |
| public int | |
| public boolean | Returns: the value of the "http.saveCookies" settingGet the "http.saveCookies" setting |
| public String | |
| private void | |
| public boolean | |
| pack-priv static String | |
| pack-priv static int |
| COOKIE_FILE_CACHE_LIMIT_KEY | back to summary |
|---|---|
| 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.
| |
| COOKIE_FILE_KEY | back to summary |
|---|---|
| public static final String COOKIE_FILE_KEY git config key for the "cookieFile" setting.
| |
| cookieFile | back to summary |
|---|---|
| private String cookieFile | |
| cookieFileCacheLimit | back to summary |
|---|---|
| private int cookieFileCacheLimit | |
| DEFAULT_COOKIE_FILE_CACHE_LIMIT | back to summary |
|---|---|
| private static final int DEFAULT_COOKIE_FILE_CACHE_LIMIT | |
| DEFAULT_MAX_REDIRECTS | back to summary |
|---|---|
| private static final int DEFAULT_MAX_REDIRECTS | |
| ENV_HTTP_USER_AGENT | back to summary |
|---|---|
| private static final String ENV_HTTP_USER_AGENT | |
| EXTRA_HEADER | back to summary |
|---|---|
| public static final String EXTRA_HEADER git config key for the "extraHeader" setting.
| |
| extraHeaders | back to summary |
|---|---|
| private List<String> extraHeaders | |
| FOLLOW_REDIRECTS_KEY | back to summary |
|---|---|
| public static final String FOLLOW_REDIRECTS_KEY git config key for the "followRedirects" setting. | |
| followRedirects | back to summary |
|---|---|
| private HttpConfig. | |
| FTP | back to summary |
|---|---|
| private static final String FTP | |
| HTTP | back to summary |
|---|---|
| public static final String HTTP git config section key for http settings. | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| MAX_REDIRECT_SYSTEM_PROPERTY | back to summary |
|---|---|
| private static final String MAX_REDIRECT_SYSTEM_PROPERTY | |
| MAX_REDIRECTS | back to summary |
|---|---|
| private static final int MAX_REDIRECTS | |
| MAX_REDIRECTS_KEY | back to summary |
|---|---|
| public static final String MAX_REDIRECTS_KEY git config key for the "maxRedirects" setting. | |
| maxRedirects | back to summary |
|---|---|
| private int maxRedirects | |
| POST_BUFFER_KEY | back to summary |
|---|---|
| public static final String POST_BUFFER_KEY git config key for the "postBuffer" setting. | |
| postBuffer | back to summary |
|---|---|
| private int postBuffer | |
| SAVE_COOKIES_KEY | back to summary |
|---|---|
| public static final String SAVE_COOKIES_KEY git config key for the "saveCookies" setting.
| |
| saveCookies | back to summary |
|---|---|
| private boolean saveCookies | |
| SSL_VERIFY_KEY | back to summary |
|---|---|
| public static final String SSL_VERIFY_KEY git config key for the "sslVerify" setting. | |
| sslVerify | back to summary |
|---|---|
| private boolean sslVerify | |
| USER_AGENT | back to summary |
|---|---|
| public static final String USER_AGENT git config key for the "userAgent" setting.
| |
| userAgent | back to summary |
|---|---|
| private String userAgent | |
| HttpConfig | back to summary |
|---|---|
| public HttpConfig(Config config, URIish uri) Creates a new
| |
| HttpConfig | back to summary |
|---|---|
| public HttpConfig(URIish uri) Creates a
| |
| compare | back to summary |
|---|---|
| private boolean compare(String a, String b) | |
| defaultedPort | back to summary |
|---|---|
| private int defaultedPort(int port, String scheme) | |
| findLastEmpty | back to summary |
|---|---|
| private int findLastEmpty(String[] values) | |
| findMatch | back to summary |
|---|---|
| private String findMatch(Set<String> names, URIish uri) Determines the best match from a set of subsection names (representing
prefix URLs) for the given | |
| getCookieFile | back to summary |
|---|---|
| public String getCookieFile() Get the "http.cookieFile" setting
| |
| getCookieFileCacheLimit | back to summary |
|---|---|
| public int getCookieFileCacheLimit() Get the "http.cookieFileCacheLimit" setting (gives the maximum number of cookie files to keep in the LRU cache)
| |
| getExtraHeaders | back to summary |
|---|---|
| public List Get the "http.extraHeader" setting | |
| getFollowRedirects | back to summary |
|---|---|
| public HttpConfig. Get the "http.followRedirects" setting
| |
| getMaxRedirects | back to summary |
|---|---|
| public int getMaxRedirects() Get the "http.maxRedirects" setting
| |
| getPostBuffer | back to summary |
|---|---|
| public int getPostBuffer() Get the "http.postBuffer" setting
| |
| getSaveCookies | back to summary |
|---|---|
| public boolean getSaveCookies() Get the "http.saveCookies" setting
| |
| getUserAgent | back to summary |
|---|---|
| public String getUserAgent() Get the "http.userAgent" setting
| |
| init | back to summary |
|---|---|
| private void init(Config config, URIish uri) | |
| isSslVerify | back to summary |
|---|---|
| public boolean isSslVerify() Get the "http.sslVerify" setting
| |
| normalize | back to summary |
|---|---|
| pack-priv static String normalize(String path) | |
| segmentCompare | back to summary |
|---|---|
| pack-priv static int segmentCompare(String uriPath, String m) | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| public static final HttpConfig. | FALSE
Never follow redirects. |
| public static final HttpConfig. | INITIAL
Only follow redirects on the initial GET request. |
| public static final HttpConfig. | TRUE
Always follow redirects (up to the http.maxRedirects limit). |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | matchConfigValue(String
the string to match s)Implements org. Checks if the given string matches with enum value. |
| public String | toConfigValue()
Implements org. Converts enumeration value into a string to be save in config. |
| public static HttpConfig. | |
| public static HttpConfig. |
| configValue | back to summary |
|---|---|
| private final String configValue | |
| FALSE | back to summary |
|---|---|
| public static final HttpConfig. Never follow redirects. | |
| INITIAL | back to summary |
|---|---|
| public static final HttpConfig. Only follow redirects on the initial GET request. This is the default. | |
| TRUE | back to summary |
|---|---|
| public static final HttpConfig. Always follow redirects (up to the http.maxRedirects limit). | |
| HttpRedirectMode | back to summary |
|---|---|
| private HttpRedirectMode(String configValue) | |
| matchConfigValue | back to summary |
|---|---|
| public boolean matchConfigValue(String s) Implements org. Doc from org. Checks if the given string matches with enum value. | |
| toConfigValue | back to summary |
|---|---|
| public String toConfigValue() Implements org. Doc from org. Converts enumeration value into a string to be save in config. | |
| valueOf | back to summary |
|---|---|
| public static HttpConfig. | |
| values | back to summary |
|---|---|
| public static HttpConfig. | |