org.apache.http.config
Class MessageConstraints

java.lang.Object
  extended by org.apache.http.config.MessageConstraints
All Implemented Interfaces:
java.lang.Cloneable

public class MessageConstraints
extends java.lang.Object
implements java.lang.Cloneable

HTTP Message constraints: line length and header count.

Since:
4.3

Nested Class Summary
static class MessageConstraints.Builder
           
 
Field Summary
static MessageConstraints DEFAULT
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT

public static final MessageConstraints DEFAULT
Method Detail

getMaxLineLength

public int getMaxLineLength()

getMaxHeaderCount

public int getMaxHeaderCount()

clone

protected MessageConstraints clone()
                            throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

lineLen

public static MessageConstraints lineLen(int max)

custom

public static MessageConstraints.Builder custom()

copy

public static MessageConstraints.Builder copy(MessageConstraints config)