List of usage examples for org.apache.http.config ConnectionConfig custom
public static Builder custom()
From source file:org.apache.synapse.transport.utils.config.HttpTransportConfiguration.java
/** * Get the connection configuration/*w w w. j a v a 2s . c om*/ * * @return A fully initialized ConnectionConfig instance */ public ConnectionConfig getConnectionConfig() { return ConnectionConfig.custom() .setBufferSize(getIntProperty(HttpConfigConstants.SOCKET_BUFFER_SIZE, 8 * 1024)) .setMalformedInputAction(getMalformedInputActionValue()) .setUnmappableInputAction(getUnMappableInputActionValue()).build(); }