partialHeader.append( HttpHeader.CRLF );
//
// an empty line signals the end of a http-header
//
HttpHeader head = null;
try {
head = new HttpHeader( partialHeader.toString() );
} catch (Exception e){
//e.printStackTrace();
log.error(this + " Exception: " + e.getMessage() );
log.error(this + " PartialHeader: "+partialHeader);
}
// if this header signals a request-body then we
// switch into the READ_BODY state
//
if( head.getContentLength() > 0 )
state = STATE_READING_BODY;
partialHeader = new StringBuffer();
log.debug("Completed reading the current header, leaving HttpRequestStream.readHeader()");
touch();