public class MessageConstraints extends Object implements Cloneable
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.
Modifier and Type | Class and Description |
---|---|
static class |
MessageConstraints.Builder |
Modifier and Type | Field and Description |
---|---|
static MessageConstraints |
DEFAULT |
private int |
maxHeaderCount |
private int |
maxLineLength |
Constructor and Description |
---|
MessageConstraints(int maxLineLength,
int maxHeaderCount) |
Modifier and Type | Method and Description |
---|---|
protected MessageConstraints |
clone() |
static MessageConstraints.Builder |
copy(MessageConstraints config) |
static MessageConstraints.Builder |
custom() |
int |
getMaxHeaderCount() |
int |
getMaxLineLength() |
static MessageConstraints |
lineLen(int max) |
String |
toString() |
public static final MessageConstraints DEFAULT
private final int maxLineLength
private final int maxHeaderCount
MessageConstraints(int maxLineLength, int maxHeaderCount)
public int getMaxLineLength()
public int getMaxHeaderCount()
protected MessageConstraints clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public static MessageConstraints lineLen(int max)
public static MessageConstraints.Builder custom()
public static MessageConstraints.Builder copy(MessageConstraints config)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses