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 Type
    Method
    Description
    io.undertow.connector.PooledByteBuffer[]
     
    boolean
     
    reads data from the buffer converting it to T
    void
    setBuffer(io.undertow.connector.PooledByteBuffer[] raw)
     
    void
    writeContent(T content)
    writes data the buffer from T
  • Method Details

    • 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()