Class FormDecoderConfig
java.lang.Object
io.vertx.core.http.FormDecoderConfig
Form decoder configuration.
- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintsetMaxAttributeSize(int maxSize) Set the maximum size of a form attribute.setMaxBufferedBytes(int maxBufferedBytes) Set the maximum number of bytes a server can buffer when decoding a form.setMaxFields(int maxFields) Set the maximum number of fields of a form.
-
Constructor Details
-
FormDecoderConfig
public FormDecoderConfig() -
FormDecoderConfig
-
-
Method Details
-
getMaxAttributeSize
public int getMaxAttributeSize()- Returns:
- Returns the maximum size of a form attribute
-
setMaxAttributeSize
Set the maximum size of a form attribute. Set to-1to 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
Set the maximum number of fields of a form. Set to-1to 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
Set the maximum number of bytes a server can buffer when decoding a form. Set to-1to allow unlimited length- Parameters:
maxBufferedBytes- the new maximum- Returns:
- a reference to this, so the API can be used fluently
-