Package org.restheart.exchange
Interface BufferedExchange<T>
-
- Type Parameters:
T-
- 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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.undertow.connector.PooledByteBuffer[]getBuffer()booleanisContentAvailable()TreadContent()reads data from the buffer converting it to TvoidsetBuffer(io.undertow.connector.PooledByteBuffer[] raw)voidwriteContent(T content)writes data the buffer from T
-
-
-
Method Detail
-
readContent
T readContent() throws IOException
reads data from the buffer converting it to T- Returns:
- Throws:
IOException
-
writeContent
void writeContent(T content) throws IOException
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()
-
-