Class Http2ServerRequestEntity

java.lang.Object
io.helidon.nima.http.media.ReadableEntityBase
io.helidon.nima.http2.webserver.Http2ServerRequestEntity
All Implemented Interfaces:
ReadableEntity

public final class Http2ServerRequestEntity extends ReadableEntityBase implements ReadableEntity
Server request entity.
  • Method Details

    • create

      public static Http2ServerRequestEntity create(ContentDecoder decoder, Function<Integer,BufferData> readEntityFunction, Runnable entityProcessedRunnable, ServerRequestHeaders requestHeaders, MediaContext mediaContext)
      Create a new entity.
      Parameters:
      decoder - content decoder
      readEntityFunction - function to read buffer from entity (int is an estimated number of bytes needed, buffer will contain at least 1 byte)
      entityProcessedRunnable - runnable to run once the entity is fully read
      requestHeaders - request headers
      mediaContext - media context to map to correct types
      Returns:
      a new entity
    • copy

      public ReadableEntity copy(Runnable entityProcessedRunnable)
      Description copied from interface: ReadableEntity
      Copy this entity and add a new runnable to be executed after this entity is consumed.
      Specified by:
      copy in interface ReadableEntity
      Parameters:
      entityProcessedRunnable - runnable to execute on consumed entity
      Returns:
      a new entity delegating to this entity
    • entityAs

      protected <T> T entityAs(GenericType<T> type)
      Specified by:
      entityAs in class ReadableEntityBase