Beispiel #1
0
  public void recycle() {
    bytesRead = 0;

    contentLength = -1;
    contentTypeMB = null;
    charEncoding = null;
    expectation = false;
    headers.recycle();
    serverNameMB.recycle();
    serverPort = -1;
    localNameMB.recycle();
    localPort = -1;
    remotePort = -1;
    available = 0;
    sendfile = true;

    serverCookies.recycle();
    parameters.recycle();
    pathParameters.clear();

    uriMB.recycle();
    decodedUriMB.recycle();
    queryMB.recycle();
    methodMB.recycle();
    protoMB.recycle();

    schemeMB.recycle();

    remoteUser.recycle();
    remoteUserNeedsAuthorization = false;
    authType.recycle();
    attributes.clear();

    listener = null;
    allDataReadEventSent.set(false);

    startTime = -1;
  }