com.github.kristofa.test.http
Class DefaultHttpResponseProxy
java.lang.Object
com.github.kristofa.test.http.DefaultHttpResponseProxy
- All Implemented Interfaces:
- HttpResponseProxy
public class DefaultHttpResponseProxy
- extends Object
- implements HttpResponseProxy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultHttpResponseProxy
public DefaultHttpResponseProxy(HttpResponse response)
consumed
public boolean consumed()
- Description copied from interface:
HttpResponseProxy
- Indicates if the HttpResponse has already been consumed.
- Specified by:
consumed in interface HttpResponseProxy
- Returns:
true in case HttpResponseProxy.consume() has already been called before or
false in case it has not been called yet.
getResponse
public HttpResponse getResponse()
- Description copied from interface:
HttpResponseProxy
- Gets HttpResponse.
- Specified by:
getResponse in interface HttpResponseProxy
- Returns:
- HttpResponse.
consume
public HttpResponse consume()
- Description copied from interface:
HttpResponseProxy
- Consumes HttpResponse.
- Specified by:
consume in interface HttpResponseProxy
- Returns:
- HttpResponse.
Copyright © 2014. All Rights Reserved.