@@ -0,0 +1,2520 @@
+/*******************************************************************************%0A * Copyright (C) 2011 CKLab%0A * %0A * Permission is hereby granted, free of charge, to any person obtaining a copy of%0A * this software and associated documentation files (the %22Software%22), to deal in%0A * the Software without restriction, including without limitation the rights to%0A * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies%0A * of the Software, and to permit persons to whom the Software is furnished to do%0A * so, subject to the following conditions:%0A * %0A * The above copyright notice and this permission notice shall be included in all%0A * copies or substantial portions of the Software.%0A * %0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0A * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER%0A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,%0A * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE%0A * SOFTWARE.%0A ******************************************************************************/%0Apackage com.cklab.httpconn.request;%0A%0A%0A/**%0A * Post class.%0A * %0A * Used for an HTTP POST request.%0A * %0A * @author cklab%0A *%0A */%0Apublic class Delete extends HTTPRequest %7B%0A%0A%09/**%0A%09 * Construct a DELETE object to the given Page. SSL off by default.%0A%09 * %0A%09 * @param page%0A%09 *            the page to request%0A%09 */%0A%09public Delete(String page) %7B%0A%09%09this(page, false);%0A%09%7D%0A%0A%09/**%0A%09 * Convert an HTTPRequest into a Delete object.%0A%09 * %0A%09 * @param req%0A%09 *            the HTTPRequest%0A%09 */%0A%09public Delete(HTTPRequest req) %7B%0A%09%09this(req.getPage(), req.getCookies(), req.isUsingSSL());%0A%09%7D%0A%0A%09/**%0A%09 * Construct a Delete object to the given page.%0A%09 * %0A%09 * @param page%0A%09 *            the page to request%0A%09 * @param useSSL%0A%09 *            whether or not to use SSL.%0A%09 */%0A%09public Delete(String page, boolean useSSL) %7B%0A%09%09this(page, null, useSSL);%0A%09%7D%0A%0A%09/**%0A%09 * Construct a Delete object to the given page and using the given cookies.%0A%09 * %0A%09 * @param page%0A%09 *            the page to request%0A%09 * @param cookies%0A%09 *            the cookies (e.g.%0A%09 *            %22cookieName1=cookieVal1; cookieName2=cookieVal2%22)%0A%09 * @param useSSL%0A%09 *            whether or not to use SSL.%0A%09 */%0A%09public Delete(String page, String cookies, boolean useSSL) %7B%0A%09%09super(%22DELETE%22, page, null, cookies, useSSL);%0A%09%7D%0A%0A%7D%0A

Add DELETE request