/** * Recycle the output buffer. This should be called when closing the * connection. */ public void recycle() { // Sub-classes may wish to do more than this. nextRequest(); }
/** * Recycle the output buffer. This should be called when closing the * connection. */ public void recycle() { // Sub-classes may wish to do more than this. nextRequest(); }
/** * End processing of current HTTP request. * Note: All bytes of the current request should have been already * consumed. This method only resets all the pointers so that we are ready * to parse the next HTTP request. */ @Override public void nextRequest() { super.nextRequest(); socketBuffer.recycle(); }
/** * Recycle the output buffer. This should be called when closing the * connection. */ public void recycle() { // Sub-classes may wish to do more than this. nextRequest(); bufferedWrites.clear(); }
/** * End processing of current HTTP request. * Note: All bytes of the current request should have been already * consumed. This method only resets all the pointers so that we are ready * to parse the next HTTP request. */ @Override public void nextRequest() { super.nextRequest(); socketBuffer.recycle(); }
/** * End processing of current HTTP request. * Note: All bytes of the current request should have been already * consumed. This method only resets all the pointers so that we are ready * to parse the next HTTP request. */ @Override public void nextRequest() { super.nextRequest(); socketBuffer.recycle(); }
/** * End processing of current HTTP request. * Note: All bytes of the current request should have been already * consumed. This method only resets all the pointers so that we are ready * to parse the next HTTP request. */ @Override public void nextRequest() { super.nextRequest(); socketBuffer.recycle(); }
} else if (!comet) { inputBuffer.nextRequest(); outputBuffer.nextRequest(); return SocketState.OPEN; } else {
} else { getInputBuffer().nextRequest(); getOutputBuffer().nextRequest(); return SocketState.OPEN;
} else { getInputBuffer().nextRequest(); getOutputBuffer().nextRequest(); return SocketState.OPEN;
if (keepAlive) { inputBuffer.nextRequest(); outputBuffer.nextRequest(); return SocketState.OPEN; } else {
} else { getInputBuffer().nextRequest(); getOutputBuffer().nextRequest(); return SocketState.OPEN;
getOutputBuffer().nextRequest();
getOutputBuffer().nextRequest();
getOutputBuffer().nextRequest();