aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/container/jdisc/EmptyResponse.java
blob: 4d207d7afaf71281066339ef8f43c8b067b4a767 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.jdisc;

import java.io.IOException;
import java.io.OutputStream;

/**
 * Placeholder response when no content, only headers and status is to be returned.
 *
 * @author Steinar Knutsen
 */
public class EmptyResponse extends HttpResponse {

    public EmptyResponse(int status) {
        super(status);
    }

    public EmptyResponse() {
        this(200);
    }

    @Override
    public void render(OutputStream outputStream) throws IOException {
        // NOP
    }

}