public void reset() { // reset state setState(State.START); _endOfContent=EndOfContent.UNKNOWN_CONTENT; _contentLength=-1; _contentPosition=0; _responseStatus=0; _contentChunk=null; _headerBytes=0; _host=false; }
public void reset() { // reset state setState(State.START); _endOfContent=EndOfContent.UNKNOWN_CONTENT; _contentLength=-1; _contentPosition=0; _responseStatus=0; _contentChunk=null; _headerBytes=0; _host=false; }
/** Request that the associated data source be closed */ public void close() { if (DEBUG) LOG.debug("close {}", this); setState(State.CLOSE); }
/** Request that the associated data source be closed */ public void close() { if (DEBUG) LOG.debug("close {}", this); setState(State.CLOSE); }
/** Request that the associated data source be closed */ public void close() { if (DEBUG) LOG.debug("close {}", this); setState(State.CLOSE); }
public void reset() { if (DEBUG) LOG.debug("reset {}", this); // reset state if (_state==State.CLOSED) return; if (_closed) { setState(State.CLOSED); return; } setState(State.START); _endOfContent=EndOfContent.UNKNOWN_CONTENT; _contentLength=-1; _contentPosition=0; _responseStatus=0; _contentChunk=null; _headerBytes=0; _host=false; }
public void close() { if (DEBUG) LOG.debug("close {}", this); setState(State.CLOSED); }
public void reset() { if (DEBUG) LOG.debug("reset {}", this); // reset state if (_state==State.CLOSE || _state==State.CLOSED) return; setState(State.START); _endOfContent=EndOfContent.UNKNOWN_CONTENT; _contentLength=-1; _contentPosition=0; _responseStatus=0; _contentChunk=null; _headerBytes=0; _host=false; }
public void reset() { if (DEBUG) LOG.debug("reset {}", this); // reset state if (_state==State.CLOSE || _state==State.CLOSED) return; setState(State.START); _endOfContent=EndOfContent.UNKNOWN_CONTENT; _contentLength=-1; _hasContentLength=false; _contentPosition=0; _responseStatus=0; _contentChunk=null; _headerBytes=0; _host=false; _headerComplete=false; }
public void close() { switch(_state) { case START: case CLOSED: case END: break; default: LOG.warn("Closing {}",this); } setState(State.CLOSED); _endOfContent=EndOfContent.UNKNOWN_CONTENT; _contentLength=-1; _contentPosition=0; _responseStatus=0; _headerBytes=0; _contentChunk=null; }
public void close() { switch(_state) { case START: case CLOSED: case END: break; default: LOG.warn("Closing {}",this); } setState(State.CLOSED); _endOfContent=EndOfContent.UNKNOWN_CONTENT; _contentLength=-1; _contentPosition=0; _responseStatus=0; _headerBytes=0; _contentChunk=null; }
public void reset() { if (DEBUG) LOG.debug("reset {}", this); // reset state if (_state==State.CLOSE || _state==State.CLOSED) return; setState(State.START); _endOfContent=EndOfContent.UNKNOWN_CONTENT; _contentLength=-1; _hasContentLength=false; _contentPosition=0; _responseStatus=0; _contentChunk=null; _headerBytes=0; _host=false; _headerComplete=false; }
private void badMessage(ByteBuffer buffer, int status, String reason) { BufferUtil.clear(buffer); setState(State.CLOSED); _handler.badMessage(status, reason); }
private void badMessage(ByteBuffer buffer, int status, String reason) { BufferUtil.clear(buffer); setState(State.CLOSED); _handler.badMessage(status, reason); }
protected void badMessage(BadMessageException x) { if (DEBUG) LOG.debug("Parse exception: " + this + " for " + _handler, x); setState(State.CLOSE); if (_headerComplete) _handler.earlyEOF(); else _handler.badMessage(x); }
protected void badMessage(BadMessageException x) { if (DEBUG) LOG.debug("Parse exception: " + this + " for " + _handler, x); setState(State.CLOSE); if (_headerComplete) _handler.earlyEOF(); else _handler.badMessage(x); }