com.continuuity.http
Class BasicInternalHttpResponse
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicInternalHttpResponse
public BasicInternalHttpResponse(int statusCode,
com.google.common.io.InputSupplier<? extends InputStream> inputSupplier)
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