Package com.github.rnewson.couchdb.lucene.util

Examples of com.github.rnewson.couchdb.lucene.util.StatusCodeResponseHandler


import java.io.IOException;

public final class HttpUtils {

    public static final int delete(final HttpClient httpClient, final String url) throws IOException {
        return httpClient.execute(new HttpDelete(url), new StatusCodeResponseHandler());
    }
View Full Code Here


        final HttpPut put = new HttpPut(url);
        if (body != null) {
            put.setHeader("Content-Type", Constants.APPLICATION_JSON);
            put.setEntity(new StringEntity(body, "UTF-8"));
        }
        return httpClient.execute(put, new StatusCodeResponseHandler());
    }
View Full Code Here

TOP

Related Classes of com.github.rnewson.couchdb.lucene.util.StatusCodeResponseHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.