|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.jeri.internal.http.ServerInfo.LineParser
private static class ServerInfo.LineParser
Class for parsing multi-part HTTP header lines that may appear as the values of the WWW-Authenticate, Proxy-Authenticate, Authorization-Info or Proxy-Authorization-Info header lines.
Field Summary | |
---|---|
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 Summary | |
---|---|
ServerInfo.LineParser(String line)
Attempts to parse the given line into a series of key/optional value definitions. |
Method Summary | |
---|---|
(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
ServerInfo.LineParser(String line) throws HttpParseException
HttpParseException
Method Detail |
---|
private int nextToken() throws HttpParseException
HttpParseException
Map getEntries(String scheme)
Map getAllEntries()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |