Package org.restheart.exchange
Interface BufferedExchange<T>
- Type Parameters:
T- generic type
- All Known Implementing Classes:
ByteArrayProxyRequest,ByteArrayProxyResponse,JsonProxyRequest,JsonProxyResponse,ProxyRequest,ProxyResponse
public interface BufferedExchange<T>
A buffered exchage stores content in a PooledByteBuffer
This makes possibile using it in proxied requests.
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Method Summary
Modifier and TypeMethodDescriptionio.undertow.connector.PooledByteBuffer[]booleanreads data from the buffer converting it to TvoidsetBuffer(io.undertow.connector.PooledByteBuffer[] raw) voidwriteContent(T content) writes data the buffer from T
-
Method Details
-
readContent
reads data from the buffer converting it to T- Returns:
- Throws:
IOException
-
writeContent
writes data the buffer from T- Parameters:
content-- Throws:
IOException
-
getBuffer
io.undertow.connector.PooledByteBuffer[] getBuffer() -
setBuffer
void setBuffer(io.undertow.connector.PooledByteBuffer[] raw) -
isContentAvailable
boolean isContentAvailable()
-