com.clouway.friendlyserve.RsWrap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fserve Show documentation
Show all versions of fserve Show documentation
Friendly Serving HTTP Library.
package com.clouway.friendlyserve;
import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
/**
* @author Miroslav Genov ([email protected])
*/
public class RsWrap implements Response {
/**
* Original response.
*/
private final transient Response origin;
public RsWrap(Response origin) {
this.origin = origin;
}
@Override
public Status status() {
return origin.status();
}
@Override
public final Map header() throws IOException {
return origin.header();
}
@Override
public final InputStream body() throws IOException {
return origin.body();
}
}