Package org.apache.coyote.http11.upgrade
Class UpgradeApplicationBufferHandler
- java.lang.Object
-
- org.apache.coyote.http11.upgrade.UpgradeApplicationBufferHandler
-
- All Implemented Interfaces:
ApplicationBufferHandler
public class UpgradeApplicationBufferHandler extends java.lang.Object implements ApplicationBufferHandler
Trivial implementation ofApplicationBufferHandlerto support saving of HTTP request bodies during an HTTP/1.1 upgrade.
-
-
Field Summary
-
Fields inherited from interface org.apache.tomcat.util.net.ApplicationBufferHandler
EMPTY, EMPTY_BUFFER
-
-
Constructor Summary
Constructors Constructor Description UpgradeApplicationBufferHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexpand(int size)Expand the byte buffer to at least the given size.java.nio.ByteBuffergetByteBuffer()voidsetByteBuffer(java.nio.ByteBuffer byteBuffer)Set the byte buffer.
-
-
-
Method Detail
-
setByteBuffer
public void setByteBuffer(java.nio.ByteBuffer byteBuffer)
Description copied from interface:ApplicationBufferHandlerSet the byte buffer.- Specified by:
setByteBufferin interfaceApplicationBufferHandler- Parameters:
byteBuffer- the byte buffer
-
getByteBuffer
public java.nio.ByteBuffer getByteBuffer()
- Specified by:
getByteBufferin interfaceApplicationBufferHandler- Returns:
- the byte buffer
-
expand
public 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 interfaceApplicationBufferHandler- Parameters:
size- the desired size
-
-