org.springframework.social.test.client
Class MockClientHttpResponse
java.lang.Object
org.springframework.social.test.client.MockClientHttpResponse
- All Implemented Interfaces:
- ClientHttpResponse, HttpInputMessage, HttpMessage
public class MockClientHttpResponse
- extends java.lang.Object
- implements ClientHttpResponse
Mock implementation of ClientHttpResponse
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockClientHttpResponse
public MockClientHttpResponse(java.lang.String body,
HttpHeaders headers,
HttpStatus statusCode,
java.lang.String statusText)
MockClientHttpResponse
public MockClientHttpResponse(java.io.InputStream body,
HttpHeaders headers,
HttpStatus statusCode,
java.lang.String statusText)
getBody
public java.io.InputStream getBody()
throws java.io.IOException
- Specified by:
getBody
in interface HttpInputMessage
- Throws:
java.io.IOException
getHeaders
public HttpHeaders getHeaders()
- Specified by:
getHeaders
in interface HttpMessage
getStatusCode
public HttpStatus getStatusCode()
throws java.io.IOException
- Specified by:
getStatusCode
in interface ClientHttpResponse
- Throws:
java.io.IOException
getStatusText
public java.lang.String getStatusText()
throws java.io.IOException
- Specified by:
getStatusText
in interface ClientHttpResponse
- Throws:
java.io.IOException
close
public void close()
- Specified by:
close
in interface ClientHttpResponse