Java tutorial
/** * 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; ///** // * MKCOL. // */ /** * It is used to created a new object of HttpMkColMethod. This class is the MKCOL method definition class. */ public class HttpMkColMethod extends HttpEntityEnclosingRequestBase { // /** ??. */ /** Method Name. */ private static final String METHOD_NAME = "MKCOL"; // /** // * . // */ /** * This is the default constructor calling its parent constructor. */ public HttpMkColMethod() { 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 HttpMkColMethod(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 HttpMkColMethod(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; } }