org.apache.http.config
Class MessageConstraints
java.lang.Object
   org.apache.http.config.MessageConstraints
org.apache.http.config.MessageConstraints
- All Implemented Interfaces: 
- Cloneable
- public class MessageConstraints 
- extends Object- implements Cloneable
HTTP Message constraints: line length and header count.
 
 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.
 
- Since:
- 4.3
 
 
 
 
DEFAULT
public static final MessageConstraints DEFAULT
getMaxLineLength
public int getMaxLineLength()
- 
 
- 
 
getMaxHeaderCount
public int getMaxHeaderCount()
- 
 
- 
 
clone
protected MessageConstraints clone()
                            throws CloneNotSupportedException
- 
- Overrides:
- clonein class- Object
 
- 
- Throws:
- CloneNotSupportedException
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
lineLen
public static MessageConstraints lineLen(int max)
- 
 
- 
 
custom
public static MessageConstraints.Builder custom()
- 
 
- 
 
copy
public static MessageConstraints.Builder copy(MessageConstraints config)
- 
 
- 
 
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.