On Mon, 2017-02-20 at 13:14 +0000, Khare, Aparna wrote:
> Dear Users,
>
> I have a requirement where I want to implement HTTPPatch method.
> The problem is we are still on httpClient 4.1.3 which does not have a
> default method for PATCH.
>
> I need help if there are ways I can do the same.
>
> Looking forward to the experts.
>
---
public class HttpPatch extends HttpEntityEnclosingRequestBase {
public HttpPatch() {
super();
}
public HttpPatch(final URI uri) {
super();
setURI(uri);
}
public HttpPatch(final String uri) {
super();
setURI(URI.create(uri));
}
@Override
public String getMethod() {
return "PATCH";
}
}
---
Hope this helps
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]