Package org.apache.http.config
Class MessageConstraints
java.lang.Object
org.apache.http.config.MessageConstraints
- All Implemented Interfaces:
Cloneable
HTTP Message constraints: line length and header count.
Please note that line length is defined in bytes and not characters. This is only relevant however when using non-standard HTTP charsets for protocol elements such as UTF-8.
- Since:
- 4.3
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MessageConstraints
private final int
private final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MessageConstraints
clone()
static MessageConstraints.Builder
copy
(MessageConstraints config) static MessageConstraints.Builder
custom()
int
int
static MessageConstraints
lineLen
(int max) toString()
-
Field Details
-
DEFAULT
-
maxLineLength
private final int maxLineLength -
maxHeaderCount
private final int maxHeaderCount
-
-
Constructor Details
-
MessageConstraints
MessageConstraints(int maxLineLength, int maxHeaderCount)
-
-
Method Details
-
getMaxLineLength
public int getMaxLineLength() -
getMaxHeaderCount
public int getMaxHeaderCount() -
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
toString
-
lineLen
-
custom
-
copy
-