com.fujitsu.dc.client.http.HttpPropPatchMethod.java Source code

Java tutorial

Introduction

Here is the source code for com.fujitsu.dc.client.http.HttpPropPatchMethod.java

Source

/**
 * personium.io
 * Copyright 2014 FUJITSU LIMITED
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.fujitsu.dc.client.http;

import java.net.URI;

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

///**
// * PROPPATCH.
// */
/**
 * It is used to created a new object of HttpMkColMethod. This class is the PROPPATCH method definition class.
 */
public class HttpPropPatchMethod extends HttpEntityEnclosingRequestBase {
    // /** ??. */
    /** Method Name. */
    private static final String METHOD_NAME = "PROPPATCH";

    // /**
    // * .
    // */
    /**
     * This is the default constructor calling its parent constructor.
     */
    public HttpPropPatchMethod() {
        super();
    }

    // /**
    // * .
    // * @param uri URL??URL
    // */
    /**
     * This is the parameterized constructor calling its parent constructor and setting URI.
     * @param uri URL object that set the target URL
     */
    public HttpPropPatchMethod(final URI uri) {
        super();
        setURI(uri);
    }

    // /**
    // * .
    // * @param uri URL
    // */
    /**
     * This is the parameterized constructor calling its parent constructor and setting URI after formatting it.
     * @param uri Target URL string
     */
    public HttpPropPatchMethod(final String uri) {
        super();
        setURI(URI.create(uri));
    }

    /**
     * This method returns the method name.
     * @return Method name value
     */
    @Override
    public String getMethod() {
        return METHOD_NAME;
    }
}