com.continuuity.http
Class BasicInternalHttpResponse

java.lang.Object
  extended by com.continuuity.http.BasicInternalHttpResponse
All Implemented Interfaces:
InternalHttpResponse

public class BasicInternalHttpResponse
extends Object
implements InternalHttpResponse

Class that stores the response body in memory or as a file.


Constructor Summary
BasicInternalHttpResponse(int statusCode, com.google.common.io.InputSupplier<? extends InputStream> inputSupplier)
           
 
Method Summary
 com.google.common.io.InputSupplier<? extends InputStream> getInputSupplier()
           
 int getStatusCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicInternalHttpResponse

public BasicInternalHttpResponse(int statusCode,
                                 com.google.common.io.InputSupplier<? extends InputStream> inputSupplier)
Method Detail

getStatusCode

public int getStatusCode()
Specified by:
getStatusCode in interface InternalHttpResponse

getInputSupplier

public com.google.common.io.InputSupplier<? extends InputStream> getInputSupplier()
                                                                           throws IOException
Specified by:
getInputSupplier in interface InternalHttpResponse
Throws:
IOException


Copyright 2013 Continuuity, Inc. Licensed under the Apache License, Version 2.0