Top Description Inners Fields Constructors Methods
org.apache.hc.core5.http.config

public Class CharCodingConfig

extends Object
Class Inheritance
Annotations
@Contract
threading:IMMUTABLE
Imports
java.nio.charset.Charset, .CodingErrorAction, .StandardCharsets, org.apache.hc.core5.annotation.Contract, .ThreadingBehavior, org.apache.hc.core5.util.Args

HTTP/1.1 char coding configuration.
Since
4.3

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final Charset
public static final CharCodingConfig
private final CodingErrorAction
private final CodingErrorAction

Constructor Summary

AccessConstructor and Description
pack-priv
CharCodingConfig(final Charset charset, final CodingErrorAction malformedInputAction, final CodingErrorAction unmappableInputAction)

Method Summary

Modifier and TypeMethod and Description
public static CharCodingConfig.Builder
copy(final CharCodingConfig config)

public static CharCodingConfig.Builder
public Charset
public CodingErrorAction
public CodingErrorAction
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

charsetback to summary
private final Charset charset
DEFAULTback to summary
public static final CharCodingConfig DEFAULT
malformedInputActionback to summary
private final CodingErrorAction malformedInputAction
unmappableInputActionback to summary
private final CodingErrorAction unmappableInputAction

Constructor Detail

CharCodingConfigback to summary
pack-priv CharCodingConfig(final Charset charset, final CodingErrorAction malformedInputAction, final CodingErrorAction unmappableInputAction)

Method Detail

copyback to summary
public static CharCodingConfig.Builder copy(final CharCodingConfig config)
customback to summary
public static CharCodingConfig.Builder custom()
getCharsetback to summary
public Charset getCharset()
getMalformedInputActionback to summary
public CodingErrorAction getMalformedInputAction()
getUnmappableInputActionback to summary
public CodingErrorAction getUnmappableInputAction()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
org.apache.hc.core5.http.config back to summary

public Class CharCodingConfig.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private Charset
private CodingErrorAction
private CodingErrorAction

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public CharCodingConfig
public CharCodingConfig.Builder
setCharset(final Charset charset)

public CharCodingConfig.Builder
setMalformedInputAction(final CodingErrorAction malformedInputAction)

public CharCodingConfig.Builder
setUnmappableInputAction(final CodingErrorAction unmappableInputAction)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

charsetback to summary
private Charset charset
malformedInputActionback to summary
private CodingErrorAction malformedInputAction
unmappableInputActionback to summary
private CodingErrorAction unmappableInputAction

Constructor Detail

Builderback to summary
pack-priv Builder()

Method Detail

buildback to summary
public CharCodingConfig build()
setCharsetback to summary
public CharCodingConfig.Builder setCharset(final Charset charset)
setMalformedInputActionback to summary
public CharCodingConfig.Builder setMalformedInputAction(final CodingErrorAction malformedInputAction)
setUnmappableInputActionback to summary
public CharCodingConfig.Builder setUnmappableInputAction(final CodingErrorAction unmappableInputAction)