org.zalando.logbook.ForwardingHttpMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of logbook-api Show documentation
Show all versions of logbook-api Show documentation
HTTP request and response logging
package org.zalando.logbook;
import org.apiguardian.api.API;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.List;
import java.util.Map;
import static org.apiguardian.api.API.Status.STABLE;
@API(status = STABLE)
public interface ForwardingHttpMessage extends HttpMessage {
HttpMessage delegate();
@Override
default String getProtocolVersion() {
return delegate().getProtocolVersion();
}
@Override
default Origin getOrigin() {
return delegate().getOrigin();
}
@Override
default Map> getHeaders() {
return delegate().getHeaders();
}
@Override
default String getContentType() {
return delegate().getContentType();
}
@Override
default Charset getCharset() {
return delegate().getCharset();
}
@Override
default byte[] getBody() throws IOException {
return delegate().getBody();
}
@Override
default String getBodyAsString() throws IOException {
return delegate().getBodyAsString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy