use of org.apache.http.client.methods.HttpPut in project android-volley by mcxiaoke.
the class HttpClientStackTest method createPutRequestWithBody.
@Test
public void createPutRequestWithBody() throws Exception {
TestRequest.PutWithBody request = new TestRequest.PutWithBody();
assertEquals(request.getMethod(), Method.PUT);
HttpUriRequest httpRequest = HttpClientStack.createHttpRequest(request, null);
assertTrue(httpRequest instanceof HttpPut);
}
use of org.apache.http.client.methods.HttpPut in project android-volley by mcxiaoke.
the class HttpClientStackTest method createPutRequest.
@Test
public void createPutRequest() throws Exception {
TestRequest.Put request = new TestRequest.Put();
assertEquals(request.getMethod(), Method.PUT);
HttpUriRequest httpRequest = HttpClientStack.createHttpRequest(request, null);
assertTrue(httpRequest instanceof HttpPut);
}
use of org.apache.http.client.methods.HttpPut in project androidquery by androidquery.
the class AbstractAjaxCallback method httpPut.
private void httpPut(String url, Map<String, Object> params, AjaxStatus status) throws ClientProtocolException, IOException {
AQUtility.debug("put", url);
HttpEntityEnclosingRequestBase req = new HttpPut(url);
httpEntity(url, req, params, status);
}
use of org.apache.http.client.methods.HttpPut in project camel by apache.
the class RestletMultiMethodsEndpointTest method testPutMethod.
@Test
public void testPutMethod() throws Exception {
HttpResponse response = doExecute(new HttpPut("http://localhost:" + portNum + "/users/homer"));
assertHttpResponse(response, 200, "text/plain", "PUT");
}
use of org.apache.http.client.methods.HttpPut in project camel by apache.
the class Olingo2AppImpl method update.
@Override
public <T> void update(Edm edm, String resourcePath, Object data, Olingo2ResponseHandler<T> responseHandler) {
final UriInfoWithType uriInfo = parseUri(edm, resourcePath, null);
writeContent(edm, new HttpPut(createUri(resourcePath, null)), uriInfo, data, responseHandler);
}
Aggregations