要使用带有RequestEntity的Delete请求,需要使用如下请求方式
client.asyncResource(pointer+url+"/features?clear="+clear).delete(filter);
而不能使用普通的:
client.resource(pointer+url+"/features?clear="+clear).delete(filter);
否则会报类似如下错误:
java.net.ProtocolException: HTTP method DELETE doesn't support output
信息来源:http://en.usenet.digipedia.org/thread/13611/6812/