Class FormDecoderConfig

java.lang.Object
io.vertx.core.http.FormDecoderConfig

@Unstable public class FormDecoderConfig extends Object
Form decoder configuration.
Author:
Julien Viet
  • Constructor Details

    • FormDecoderConfig

      public FormDecoderConfig()
    • FormDecoderConfig

      public FormDecoderConfig(FormDecoderConfig other)
  • Method Details

    • getMaxAttributeSize

      public int getMaxAttributeSize()
      Returns:
      Returns the maximum size of a form attribute
    • setMaxAttributeSize

      public FormDecoderConfig setMaxAttributeSize(int maxSize)
      Set the maximum size of a form attribute. Set to -1 to allow unlimited length
      Parameters:
      maxSize - the new maximum size
      Returns:
      a reference to this, so the API can be used fluently
    • getMaxFields

      public int getMaxFields()
      Returns:
      Returns the maximum number of form fields
    • setMaxFields

      public FormDecoderConfig setMaxFields(int maxFields)
      Set the maximum number of fields of a form. Set to -1 to allow unlimited number of attributes
      Parameters:
      maxFields - the new maximum
      Returns:
      a reference to this, so the API can be used fluently
    • getMaxBufferedBytes

      public int getMaxBufferedBytes()
      Returns:
      Returns the maximum number of bytes a server can buffer when decoding a form
    • setMaxBufferedBytes

      public FormDecoderConfig setMaxBufferedBytes(int maxBufferedBytes)
      Set the maximum number of bytes a server can buffer when decoding a form. Set to -1 to allow unlimited length
      Parameters:
      maxBufferedBytes - the new maximum
      Returns:
      a reference to this, so the API can be used fluently