Invokes parser for content type header field.
ContentTypeHeader contentType = new ContentTypeHeader();
if (debug) dbg_enter("ContentTypeParser.parse");
try {
this.headerName(TokenTypes.CONTENT_TYPE);
// The type:
lexer.match(TokenTypes.ID);
Token type = lexer.getNextToken();
this.lexer.SPorHT();
contentType.setContentType(type.getTokenValue());
// The sub-type:
lexer.match('/");
lexer.match(TokenTypes.ID);
Token subType = lexer.getNextToken();
this.lexer.SPorHT();
contentType.setContentSubType(subType.getTokenValue());
super.parse(contentType);
this.lexer.match('\n");
} finally {
if (debug) dbg_leave("ContentTypeParser.parse");
}
return contentType;