All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jd.httpservice.agent.LocalHttpDelete Maven / Gradle / Ivy

There is a newer version: 2.1.4.RELEASE
Show newest version
package com.jd.httpservice.agent;

import java.net.URI;

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

public class LocalHttpDelete extends HttpEntityEnclosingRequestBase {

    public final static String METHOD_NAME = "DELETE";

    public LocalHttpDelete() {
        super();
    }

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy