Package org.apache.http.client.methods

Examples of org.apache.http.client.methods.HttpPut.reset()


           
            HttpResponse response = this.httpClient.execute(put);
           
            //Expect a 4xx response
            int status = response.getStatusLine().getStatusCode();
            put.reset();
            if (status >= 400 && status < 500) {
                //OK
                LOGGER.info("Request failed as expected with HTTP Code " + status);
            } else {
                throw new ValidationError("Query Request with bad HTTP Method (PUT) did not fail with 4xx status code as expected, got HTTP status code " + status);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.