Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.http.config
Class MessageConstraints

    java.lang.Object
      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

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)`
`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 CloneNotSupportedException

  Overrides:
    `clone` in class `Object`
  Throws:
    `CloneNotSupportedException`

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

### lineLen

    public static MessageConstraints lineLen(int max)

### custom

    public static MessageConstraints.Builder custom()

### copy

    public static MessageConstraints.Builder copy(MessageConstraints config)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.