Code example for DefaultConnectionReuseStrategy

0
    /** Configuration of the receiver */ 
    private SourceConfiguration sourceConfiguration;
    /** Version of the response */ 
    private ProtocolVersion version = HttpVersion.HTTP_1_1;
    /** Connection strategy */ 
    private ConnectionReuseStrategy connStrategy = new DefaultConnectionReuseStrategy();
    /** Chunk response or not */ 
    // private boolean chunk = true; 
 
    private SourceRequest request = null;
 
    public SourceResponse(SourceConfiguration config, int status, SourceRequest request) {
        this(config, status, null, request);
    } 
 
    public SourceResponse(SourceConfiguration config, int status, String statusLine,
                          SourceRequest request) {
        this.status = status;
        this.statusLine = statusLine;
        this.sourceConfiguration = config;
Contextual code suggestions in your IDE  Get Codota for Java