public class VOMSESLineParser
extends java.lang.Object
"alias" "hostname" "port" "server DN" "vo_name"This parser eats up whitespace and characters outside of quotes and tolerates an additional quoted field ("globus_version") that was for some time needed.
Modifier and Type | Class and Description |
---|---|
private static interface |
VOMSESLineParser.ParserState |
Modifier and Type | Field and Description |
---|---|
private VOMSESLineParser.ParserState |
currentState |
private java.lang.StringBuilder |
currentToken |
(package private) static int |
GLOBUS_VERSION |
private VOMSESLineParser.ParserState |
insideQuotes |
(package private) static int |
MIN_VOMSES_FIELD_COUNT |
private VOMSESLineParser.ParserState |
outsideQuotes |
private boolean |
tokenComplete |
private int |
tokenCount |
private java.lang.String[] |
tokens |
(package private) static int |
VO_ALIAS |
(package private) static int |
VO_NAME |
(package private) static int |
VOMS_HOST |
(package private) static int |
VOMS_PORT |
(package private) static int |
VOMS_SERVER_DN |
(package private) static java.lang.String[] |
VOMSES_FIELD_NAMES |
Constructor and Description |
---|
VOMSESLineParser() |
Modifier and Type | Method and Description |
---|---|
private void |
init() |
private void |
lineSanityChecks(java.lang.String line) |
VOMSServerInfo |
parse(java.lang.String line) |
void |
tokenChar(char c) |
void |
tokenEnd() |
void |
tokenStart() |
private void |
validateTokens(java.lang.String line) |
private final VOMSESLineParser.ParserState outsideQuotes
private final VOMSESLineParser.ParserState insideQuotes
static final java.lang.String[] VOMSES_FIELD_NAMES
static final int VO_ALIAS
static final int VOMS_HOST
static final int VOMS_PORT
static final int VOMS_SERVER_DN
static final int VO_NAME
static final int GLOBUS_VERSION
static final int MIN_VOMSES_FIELD_COUNT
private java.lang.String[] tokens
private java.lang.StringBuilder currentToken
private int tokenCount
private boolean tokenComplete
private VOMSESLineParser.ParserState currentState
private void lineSanityChecks(java.lang.String line)
private void init()
public VOMSServerInfo parse(java.lang.String line)
private void validateTokens(java.lang.String line)
public void tokenStart()
public void tokenEnd()
public void tokenChar(char c)