Package org.apache.http.config
Class ConnectionConfig
- java.lang.Object
-
- org.apache.http.config.ConnectionConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConnectionConfig.Builder
-
Field Summary
Fields Modifier and Type Field Description private intbufferSizeprivate java.nio.charset.Charsetcharsetstatic ConnectionConfigDEFAULTprivate intfragmentSizeHintprivate java.nio.charset.CodingErrorActionmalformedInputActionprivate MessageConstraintsmessageConstraintsprivate java.nio.charset.CodingErrorActionunmappableInputAction
-
Constructor Summary
Constructors Constructor Description ConnectionConfig(int bufferSize, int fragmentSizeHint, java.nio.charset.Charset charset, java.nio.charset.CodingErrorAction malformedInputAction, java.nio.charset.CodingErrorAction unmappableInputAction, MessageConstraints messageConstraints)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConnectionConfigclone()static ConnectionConfig.Buildercopy(ConnectionConfig config)static ConnectionConfig.Buildercustom()intgetBufferSize()java.nio.charset.CharsetgetCharset()intgetFragmentSizeHint()java.nio.charset.CodingErrorActiongetMalformedInputAction()MessageConstraintsgetMessageConstraints()java.nio.charset.CodingErrorActiongetUnmappableInputAction()java.lang.StringtoString()
-
-
-
Field Detail
-
DEFAULT
public static final ConnectionConfig DEFAULT
-
bufferSize
private final int bufferSize
-
fragmentSizeHint
private final int fragmentSizeHint
-
charset
private final java.nio.charset.Charset charset
-
malformedInputAction
private final java.nio.charset.CodingErrorAction malformedInputAction
-
unmappableInputAction
private final java.nio.charset.CodingErrorAction unmappableInputAction
-
messageConstraints
private final MessageConstraints messageConstraints
-
-
Constructor Detail
-
ConnectionConfig
ConnectionConfig(int bufferSize, int fragmentSizeHint, java.nio.charset.Charset charset, java.nio.charset.CodingErrorAction malformedInputAction, java.nio.charset.CodingErrorAction unmappableInputAction, MessageConstraints messageConstraints)
-
-
Method Detail
-
getBufferSize
public int getBufferSize()
-
getFragmentSizeHint
public int getFragmentSizeHint()
-
getCharset
public java.nio.charset.Charset getCharset()
-
getMalformedInputAction
public java.nio.charset.CodingErrorAction getMalformedInputAction()
-
getUnmappableInputAction
public java.nio.charset.CodingErrorAction getUnmappableInputAction()
-
getMessageConstraints
public MessageConstraints getMessageConstraints()
-
clone
protected ConnectionConfig clone() throws java.lang.CloneNotSupportedException
- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
custom
public static ConnectionConfig.Builder custom()
-
copy
public static ConnectionConfig.Builder copy(ConnectionConfig config)
-
-