com.caucho.server.http
Class HttpBufferStore

java.lang.Object
  extended by com.caucho.server.http.HttpBufferStore

public final class HttpBufferStore
extends java.lang.Object

Holds the HTTP buffers for keepalive reuse. Because a request needs a large number of buffers, but a keepalive doesn't need those buffers, Resin can recycle the buffers during keepalives to keep the memory consumption low.


Constructor Summary
HttpBufferStore(int urlLengthMax)
          Create a new Request.
 
Method Summary
 char[] getHeaderBuffer()
           
 int getHeaderCapacity()
           
 CharSegment[] getHeaderKeys()
           
 CharSegment[] getHeaderValues()
           
 byte[] getLogBuffer()
           
 TempBuffer getTempBuffer()
           
 byte[] getUriBuffer()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpBufferStore

public HttpBufferStore(int urlLengthMax)
Create a new Request. Because the actual initialization occurs with the start() method, this just allocates statics.

Parameters:
server - the parent server
Method Detail

getUriBuffer

public final byte[] getUriBuffer()

getHeaderBuffer

public final char[] getHeaderBuffer()

getHeaderCapacity

public final int getHeaderCapacity()

getHeaderKeys

public final CharSegment[] getHeaderKeys()

getHeaderValues

public final CharSegment[] getHeaderValues()

getTempBuffer

public final TempBuffer getTempBuffer()

getLogBuffer

public final byte[] getLogBuffer()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object