public class MessageConstraints
extends java.lang.Object
implements java.lang.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 |
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) |
java.lang.String |
toString() |
public static final MessageConstraints DEFAULT
public int getMaxLineLength()
public int getMaxHeaderCount()
protected MessageConstraints clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String toString()
toString
in class java.lang.Object
public static MessageConstraints lineLen(int max)
public static MessageConstraints.Builder custom()
public static MessageConstraints.Builder copy(MessageConstraints config)