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 |
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
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)
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.