| Modifier and Type | Class and Description |
|---|---|
static class |
HttpParser.ParseException
An exception indicating some problem parsing HTPP headers.
|
| Modifier and Type | Method and Description |
|---|---|
static List<AuthenticationChallenge> |
getAuthenticationHeaders(List<String> reply,
String authenticationHeader)
Extract the authentication headers from the header lines.
|
static StatusLine |
parseStatusLine(String line)
Parse a HTTP response status line.
|
public static StatusLine parseStatusLine(String line) throws HttpParser.ParseException
line - to parseStatusLineHttpParser.ParseException - if the line cannot be parsed or has the wrong HTTP versionpublic static List<AuthenticationChallenge> getAuthenticationHeaders(List<String> reply, String authenticationHeader)
reply is the raw status line as
received from the server. It is skipped. Line processing stops on the
first empty line thereafter.reply - The complete (header) lines of the HTTP responseauthenticationHeader - to look for (including the terminating ':'!)AuthenticationChallenges found.Copyright © 2019 Eclipse JGit Project. All rights reserved.