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 63 public class CheckinMethod 64 extends XMLResponseMethodBase { 65 66 67 69 70 71 73 74 76 77 80 public CheckinMethod() { 81 } 82 83 84 87 public CheckinMethod(String path) { 88 super(path); 89 } 90 91 92 93 94 95 97 99 104 public void parseResponse(InputStream input, HttpState state, HttpConnection conn) 105 throws IOException , HttpException { 106 try 107 { 108 if (getStatusLine().getStatusCode() == WebdavStatus.SC_CONFLICT || 109 getStatusLine().getStatusCode() == WebdavStatus.SC_FORBIDDEN ) { 110 parseXMLResponse(input); 111 } 112 } 113 catch (IOException e) { 114 } 116 } 117 118 public String getName() { 119 return "CHECKIN"; 120 } 121 } 122 | Popular Tags |