本文介绍了阿帕奇了HTTPClient DeleteMethod示例所需的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有人有在Apache了HTTPClient DeleteMethod的例子吗?我找不到一个完整的例子在任何地方...
Does anyone have an example of the Apache HTTPClient DeleteMethod? I can't find a complete example anywhere...
推荐答案
这将有助于ü...
public long delete(String url) throws HttpException, IOException {
HttpMethod method = new DeleteMethod(url);
this.responseCode = this.httpclient.executeMethod(method);
return this.responseCode;
}
使用此方法删除资源!
use this method to delete a resource!
这篇关于阿帕奇了HTTPClient DeleteMethod示例所需的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!