List of usage examples for org.apache.http.client.methods CloseableHttpResponse interface-usage
From source file org.llorllale.youtrack.api.mock.http.response.MockUnauthorizedResponse.java
/**
* Mock implementation of {@link HttpResponse} suitable for unit tests. Simulates an HTTP response
* with code 401.
* @author George Aristy (george.aristy@gmail.com)
* @since 1.0.0
*/
From source file org.llorllale.youtrack.api.mock.http.response.MockBadRequestResponse.java
/**
* Mock impl. of {@link HttpResponse} that simulates an HTTP response from YouTrack with code
* {@code 400}.
* @author George Aristy (george.aristy@gmail.com)
* @since 1.0.0
*/
From source file org.llorllale.youtrack.api.mock.http.response.MockNotFoundResponse.java
/**
* Mock implementation of {@link HttpResponse} suitable for unit tests. Simulates a 404 error from
* the server and returns the given {@code entity}.
*
* @author George Aristy (george.aristy@gmail.com)
* @since 0.4.0
From source file org.callimachusproject.client.HttpUriResponse.java
public class HttpUriResponse implements CloseableHttpResponse { private final HttpResponse delegate; private final String systemId; public HttpUriResponse(String systemId, HttpResponse delegate) { this.delegate = delegate;
From source file org.llorllale.youtrack.api.mock.http.response.MockOkResponse.java
/**
* Mock implementation of {@link HttpResponse} suitable for unit tests.
* It fakes an "OK" response from the server.
* @author George Aristy (george.aristy@gmail.com)
* @since 0.4.0
*/
From source file org.fao.geonet.MockCloseableHttpResponse.java
/** * A Mock for responding to http requests. * * Created by Jesse on 1/24/14. */ public class MockCloseableHttpResponse implements CloseableHttpResponse {
From source file org.apache.sling.testing.clients.SlingHttpResponse.java
public class SlingHttpResponse implements CloseableHttpResponse { public static final String STATUS = "Status"; public static final String MESSAGE = "Message"; public static final String LOCATION = "Location"; public static final String PARENT_LOCATION = "ParentLocation";