Class Http2ServerRequestEntity

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

public final class Http2ServerRequestEntity extends io.helidon.http.media.ReadableEntityBase implements io.helidon.http.media.ReadableEntity
Server request entity.
  • Method Details

    • create

      public static Http2ServerRequestEntity create(UnaryOperator<InputStream> streamFilter, UnaryOperator<InputStream> decoder, Function<Integer,io.helidon.common.buffers.BufferData> readEntityFunction, Runnable entityProcessedRunnable, io.helidon.http.ServerRequestHeaders requestHeaders, io.helidon.http.media.MediaContext mediaContext)
      Create a new entity.
      Parameters:
      streamFilter - stream filter to apply to the stream, provided by user
      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 io.helidon.http.media.ReadableEntity copy(Runnable entityProcessedRunnable)
      Specified by:
      copy in interface io.helidon.http.media.ReadableEntity
    • inputStream

      public InputStream inputStream()
      Specified by:
      inputStream in interface io.helidon.http.media.ReadableEntity
      Overrides:
      inputStream in class io.helidon.http.media.ReadableEntityBase
    • entityAs

      protected <T> T entityAs(io.helidon.common.GenericType<T> type)
      Specified by:
      entityAs in class io.helidon.http.media.ReadableEntityBase