hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Motes <davidmo...@gmail.com>
Subject Re: Httpclient support for PATCH method
Date Tue, 17 Apr 2012 14:41:49 GMT
Roll your own...

Here is our DAV MOVE Method just change MOVE To PATCH

import java.net.URI;

import org.apache.http.annotation.NotThreadSafe;

import org.apache.http.client.methods.HttpRequestBase;


/**
 * HTTP DAV MOVE method.

 *
 * @since 4.0
 */
@NotThreadSafe
public class HttpMove extends HttpRequestBase {

    public final static String METHOD_NAME = "MOVE";

    public HttpMove() {
        super();
    }

    public HttpMove(final URI uri) {
        super();
        setURI(uri);
    }

    /**
     * @throws IllegalArgumentException if the uri is invalid.
     */
    public HttpMove(final String uri) {
        super();
        setURI(URI.create(uri));
    }

    @Override
    public String getMethod() {
        return METHOD_NAME;
    }

}


On Tue, Apr 17, 2012 at 10:27 AM, Alberto Aresca
<alberto.aresca@gmail.com> wrote:
> Hi all,
>
> A while ago a proposal for the new PATCH http verb has been made (see
> http://tools.ietf.org/html/rfc5789)
>
> Is there any plan to support it within the httpclient?
> Cheers
>
> --
> Alberto Aresca
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message