java.lang.Cloneablepublic 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 | Description |
|---|---|---|
static class |
MessageConstraints.Builder |
| Modifier and Type | Field | Description |
|---|---|---|
static MessageConstraints |
DEFAULT |
| Modifier and Type | Method | 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.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic static MessageConstraints lineLen(int max)
public static MessageConstraints.Builder custom()
public static MessageConstraints.Builder copy(MessageConstraints config)