private static class ServerInfo.LineParser extends Object
Modifier and Type | Field and Description |
---|---|
private char[] |
ca |
private static int |
COMMA |
private List |
entries |
private static int |
EOL |
private static int |
EQUALS |
private int |
pos |
private static int |
QUOTE |
private String |
tokenString |
private static int |
WORD |
Constructor and Description |
---|
ServerInfo.LineParser(String line)
Attempts to parse the given line into a series of key/optional value
definitions.
|
Modifier and Type | Method and Description |
---|---|
(package private) Map |
getAllEntries()
Returns the key/value entries encountered in the parsed line.
|
(package private) Map |
getEntries(String scheme)
Returns all key/value entries associated with the given
authorization scheme in the parsed line, or null if the given scheme
was not described in the parsed line.
|
private int |
nextToken()
Returns code indicating next token in line.
|
private static final int EOL
private static final int WORD
private static final int QUOTE
private static final int COMMA
private static final int EQUALS
private final List entries
private final char[] ca
private int pos
private String tokenString
ServerInfo.LineParser(String line) throws HttpParseException
HttpParseException
private int nextToken() throws HttpParseException
HttpParseException
Map getEntries(String scheme)
Map getAllEntries()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.