Class UpgradeApplicationBufferHandler
java.lang.Object
org.apache.coyote.http11.upgrade.UpgradeApplicationBufferHandler
- All Implemented Interfaces:
- ApplicationBufferHandler
Trivial implementation of 
ApplicationBufferHandler to support saving of HTTP request bodies during an
 HTTP/1.1 upgrade.- 
Field SummaryFields inherited from interface org.apache.tomcat.util.net.ApplicationBufferHandlerEMPTY, EMPTY_BUFFER
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidexpand(int size) Expand the byte buffer to at least the given size.voidsetByteBuffer(ByteBuffer byteBuffer) Set the byte buffer.
- 
Constructor Details- 
UpgradeApplicationBufferHandlerpublic UpgradeApplicationBufferHandler()
 
- 
- 
Method Details- 
setByteBufferDescription copied from interface:ApplicationBufferHandlerSet the byte buffer.- Specified by:
- setByteBufferin interface- ApplicationBufferHandler
- Parameters:
- byteBuffer- the byte buffer
 
- 
getByteBuffer- Specified by:
- getByteBufferin interface- ApplicationBufferHandler
- Returns:
- the byte buffer
 
- 
expandpublic void expand(int size) Description copied from interface:ApplicationBufferHandlerExpand the byte buffer to at least the given size. Some implementations may not implement this.- Specified by:
- expandin interface- ApplicationBufferHandler
- Parameters:
- size- the desired size
 
 
-