Interface ServletRuntimeConfig


@ConfigMapping(prefix="quarkus.servlet") @ConfigRoot(phase=RUN_TIME) public interface ServletRuntimeConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    The buffer size to use for Servlet, up to Integer.MAX_VALUE bytes.
    If Servlet should use direct buffers, this gives maximum performance but can be problematic in memory constrained environments
    int
    The maximum number of HTTP request parameters permitted for Servlet requests.
  • Method Details

    • bufferSize

      Optional<MemorySize> bufferSize()
      The buffer size to use for Servlet, up to Integer.MAX_VALUE bytes. If this is not specified the default will depend on the amount of available memory. If there is less than 64mb it will default to 512b heap buffer, less that 128mb 1k direct buffer and otherwise 16k direct buffers.
    • directBuffers

      Optional<Boolean> directBuffers()
      If Servlet should use direct buffers, this gives maximum performance but can be problematic in memory constrained environments
    • maxParameters

      @WithDefault("1000") int maxParameters()
      The maximum number of HTTP request parameters permitted for Servlet requests. If a client sends more than this number of parameters in a request, the connection is closed.