package com.l7tech.server.communityschemas;

import com.l7tech.common.http.GenericHttpException;
import com.l7tech.common.http.GenericHttpResponse;
import com.l7tech.common.http.HttpHeaders;
import com.l7tech.common.io.ByteLimitInputStream;
import com.l7tech.common.mime.ContentTypeHeader;
import java.io.InputStream;

class a extends GenericHttpResponse {
   final GenericHttpResponse val$response;
   final c this$1;

   a(c var1, GenericHttpResponse var2) {
      this.this$1 = var1;
      this.val$response = var2;
   }

   public InputStream getInputStream() throws GenericHttpException {
      return new ByteLimitInputStream(this.val$response.getInputStream(), 1024, this.this$1.val$maxResponseSize);
   }

   public void close() {
      this.val$response.close();
   }

   public int getStatus() {
      return this.val$response.getStatus();
   }

   public HttpHeaders getHeaders() {
      return this.val$response.getHeaders();
   }

   public ContentTypeHeader getContentType() {
      return this.val$response.getContentType();
   }

   public Long getContentLength() {
      return this.val$response.getContentLength();
   }
}
