private boolean parseHeaderValueExtract ( WsByteBuffer buff ) throws MalformedMessageException { // 295178 - don't log sensitive information // log value contents based on the header key (if known) int log = LOG_FULL ; HeaderKeys key = this . currentElem . getKey ( ) ; if ( null != key && ! key . shouldLogValue ( ) ) { // this header key wants to block the entire thing log = LOG_NONE ; } TokenCodes tcRC = parseCRLFTokenExtract ( buff , log ) ; if ( ! tcRC . equals ( TokenCodes . TOKEN_RC_MOREDATA ) ) { setHeaderValue ( ) ; this . parsedToken = null ; this . currentElem = null ; this . stateOfParsing = PARSING_CRLF ; return true ; } // otherwise we need more data in order to read the value return false ; }
Utility method for parsing a header value out of the input buffer .