All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clouway.oauth2.http.RsWrap Maven / Gradle / Ivy

package com.clouway.oauth2.http;

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy