Example usage for org.apache.http.config ConnectionConfig custom

List of usage examples for org.apache.http.config ConnectionConfig custom

Introduction

In this page you can find the example usage for org.apache.http.config ConnectionConfig custom.

Prototype

public static Builder custom() 

Source Link

Usage

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();
}