Class Http3FramePipeline.Builder

java.lang.Object
org.microproxy.frames.Http3FramePipeline.Builder
Enclosing class:
Http3FramePipeline

public static final class Http3FramePipeline.Builder extends Object
Options for Http3FramePipeline.
  • Method Details

    • direction

      public Http3FramePipeline.Builder direction(FrameDirection direction)
      Whose frames these are, as the interceptor is told: FrameDirection.FROM_CLIENT or FrameDirection.TO_SERVER for a client's (requests), FrameDirection.FROM_SERVER or FrameDirection.TO_CLIENT for a server's (responses). Default FROM_CLIENT.
      Parameters:
      direction - the direction
      Returns:
      this builder
    • connectionId

      public Http3FramePipeline.Builder connectionId(long connectionId)
      The connection id the interceptor is told (FrameContext.connectionId()); default -1.
      Parameters:
      connectionId - the id
      Returns:
      this builder
    • clientAddress

      public Http3FramePipeline.Builder clientAddress(InetSocketAddress clientAddress)
      The client address the interceptor is told; default none.
      Parameters:
      clientAddress - the address, or null
      Returns:
      this builder
    • server

      public Http3FramePipeline.Builder server(String server)
      The server (host:port) the interceptor is told; default none.
      Parameters:
      server - the server, or null
      Returns:
      this builder
    • qpack

      public Http3FramePipeline.Builder qpack(long maxTableCapacity, int blockedStreams)
      The QPACK dynamic table the sender may use: the SETTINGS_QPACK_MAX_TABLE_CAPACITY and SETTINGS_QPACK_BLOCKED_STREAMS its peer advertised. Default 0 and 0: static-only.
      Parameters:
      maxTableCapacity - the table capacity, 0 or more
      blockedStreams - the most streams that may wait for the encoder stream, 0 or more
      Returns:
      this builder
    • maxFramePayloadSize

      public Http3FramePipeline.Builder maxFramePayloadSize(int maxFramePayloadSize)
      The largest frame payload read (default 64 KiB); a longer DATA frame is shown in pieces of this size, any other longer frame fails the stream.
      Parameters:
      maxFramePayloadSize - the limit in bytes, 1 or more
      Returns:
      this builder
    • maxFieldSectionSize

      public Http3FramePipeline.Builder maxFieldSectionSize(long maxFieldSectionSize)
      The largest decoded field section accepted (default 64 KiB).
      Parameters:
      maxFieldSectionSize - the limit in bytes, 1 or more
      Returns:
      this builder
    • build

      public Http3FramePipeline build()
      Builds the pipeline.
      Returns:
      the pipeline
      Throws:
      IllegalStateException - if the http3-codec module is not on the class path