예제 #1
0
  /* ------------------------------------------------------------ */
  public void reset(boolean returnBuffers) {
    _parser.reset();
    if (returnBuffers) _parser.returnBuffers();
    _requestFields.clear();
    _request.recycle();

    _generator.reset(returnBuffers); // TODO maybe only release when low on resources
    _responseFields.clear();
    _response.recycle();

    _uri.clear();
  }
예제 #2
0
 /* ------------------------------------------------------------ */
 public boolean isIdle() {
   return _generator.isIdle() && (_parser.isIdle() || _delayedHandling);
 }