Invokes parser for a parameterless header.
try {
String name = lexer.getNextToken(':");
lexer.consume(1);
String value = lexer.getLine().trim();
// Some parameterless headers (for ex., RACK) have corresponding
// classes but share this parser so we have to check the name
// of header to decide which class to create.
ParameterLessHeader retval;
if (name.equalsIgnoreCase(Header.RACK)) {
retval = new RAckHeader();
retval.setHeaderValue(value);
} else if (name.equalsIgnoreCase(Header.RSEQ)) {
retval = new RSeqHeader();
retval.setHeaderValue(value);
} else {
retval = new ParameterLessHeader(name, value);
}
return retval;
} catch (Exception e) {
throw new ParseException("Error in parse(): " + e.getMessage(), 0);
}