1 23 24 package org.apache.webdav.lib.methods; 25 26 import java.io.IOException ; 27 import java.io.InputStream ; 28 import org.apache.commons.httpclient.HttpConnection; 29 import org.apache.commons.httpclient.HttpException; 30 import org.apache.commons.httpclient.HttpState; 31 import org.apache.webdav.lib.util.WebdavStatus; 32 33 34 53 public class UncheckoutMethod 54 extends XMLResponseMethodBase { 55 56 57 59 60 61 63 64 66 67 70 public UncheckoutMethod() { 71 } 72 73 74 77 public UncheckoutMethod(String path) { 78 super(path); 79 } 80 81 82 83 84 85 87 public String getName() { 88 return "UNCHECKOUT"; 89 } 90 91 96 public void parseResponse(InputStream input, HttpState state, HttpConnection conn) 97 throws IOException , HttpException { 98 try 99 { 100 int code = getStatusLine().getStatusCode(); 101 if (code == WebdavStatus.SC_CONFLICT || 102 code == WebdavStatus.SC_FORBIDDEN ) { 103 parseXMLResponse(input); 104 } 105 } 106 catch (IOException e) { 107 } 109 } 110 111 112 } 113 | Popular Tags |