-----Original Message----- From: Pill, Juergen [mailto:[EMAIL PROTECTED] Sent: Dienstag, 15. Juli 2003 10:46 To: 'Slide Developers Mailing List'; [EMAIL PROTECTED]; '[EMAIL PROTECTED]' Subject: RE: cvs commit: jakarta-slide/src/webdav/client/src/org/apache/we bdav/lib WebdavResource.java
fyi -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Dienstag, 15. Juli 2003 10:43 To: [EMAIL PROTECTED] Subject: cvs commit: jakarta-slide/src/webdav/client/src/org/apache/webdav/lib WebdavResource.java juergen 2003/07/15 01:42:59 Modified: src/webdav/client/src/org/apache/webdav/lib/methods GetMethod.java src/webdav/client/src/org/apache/webdav/lib WebdavResource.java Log: adaptions to the new HEAD of http-commons: following methods/constructors are REMOVED: GetMethod(String path, String tempDir) GetMethod(String path, String tempDir, String tempFile) GetMethod(String path, File fileData) and WebdavResource.getMethod(File file) WebdavResource.getMethod(String path, File file) Would someone object against this change? Revision Changes Path 1.17 +25 -25 jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/GetMethod. java Index: GetMethod.java =================================================================== RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/ GetMethod.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- GetMethod.java 16 Jun 2003 15:25:22 -0000 1.16 +++ GetMethod.java 15 Jul 2003 08:42:58 -0000 1.17 @@ -96,27 +96,27 @@ super(URLUtil.URLEncode(path, "UTF-8")); } - - /** - * Method constructor. - */ - public GetMethod(String path, String tempDir) { - super(URLUtil.URLEncode(path, "UTF-8"), tempDir); - } - - - /** - * Method constructor. - */ - public GetMethod(String path, String tempDir, String tempFile) { - super(URLUtil.URLEncode(path, "UTF-8"), tempDir, tempFile); - } - - /** - * Method constructor. - */ - public GetMethod(String path, File fileData) { - super(URLUtil.URLEncode(path, "UTF-8"), fileData); - } +// those constructors are not supported by htpp client any more +// /** +// * Method constructor. +// */ +// public GetMethod(String path, String tempDir) { +// super(URLUtil.URLEncode(path, "UTF-8"), tempDir); +// } +// +// +// /** +// * Method constructor. +// */ +// public GetMethod(String path, String tempDir, String tempFile) { +// super(URLUtil.URLEncode(path, "UTF-8"), tempDir, tempFile); +// } +// +// /** +// * Method constructor. +// */ +// public GetMethod(String path, File fileData) { +// super(URLUtil.URLEncode(path, "UTF-8"), fileData); +// } } 1.64 +40 -40 jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavResource.jav a Index: WebdavResource.java =================================================================== RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavRe source.java,v retrieving revision 1.63 retrieving revision 1.64 diff -u -r1.63 -r1.64 --- WebdavResource.java 16 Jun 2003 16:01:41 -0000 1.63 +++ WebdavResource.java 15 Jul 2003 08:42:58 -0000 1.64 @@ -2273,43 +2273,43 @@ return method.getResponseBodyAsString(); } - - /** - * Execute the GET method for this WebdavResource path. - * - * @param file The local file. - * @return true if the method is succeeded. - * @exception HttpException - * @exception IOException - */ - public boolean getMethod(File file) - throws HttpException, IOException { - - return getMethod(httpURL.getPathQuery(), file); - } - - - /** - * Execute the GET method for the given path. - * - * @param path the path string. - * @param file The local file. - * @return true if the method is succeeded. - * @exception HttpException - * @exception IOException - */ - public boolean getMethod(String path, File file) - throws HttpException, IOException { - - setClient(); - // use disk to save by default - GetMethod method = new GetMethod(HttpURL.getPathQuery(path), file); - method.setUseDisk(true); - int statusCode = client.executeMethod(method); - - setStatusCode(statusCode); - return (statusCode >= 200 && statusCode < 300) ? true : false; - } +// The necessary constructors are not supported by htpp client any more +// /** +// * Execute the GET method for this WebdavResource path. +// * +// * @param file The local file. +// * @return true if the method is succeeded. +// * @exception HttpException +// * @exception IOException +// */ +// public boolean getMethod(File file) +// throws HttpException, IOException { +// +// return getMethod(httpURL.getPathQuery(), file); +// } +// +// +// /** +// * Execute the GET method for the given path. +// * +// * @param path the path string. +// * @param file The local file. +// * @return true if the method is succeeded. +// * @exception HttpException +// * @exception IOException +// */ +// public boolean getMethod(String path, File file) +// throws HttpException, IOException { +// +// setClient(); +// // use disk to save by default +// GetMethod method = new GetMethod(HttpURL.getPathQuery(path), file); +// method.setUseDisk(true); +// int statusCode = client.executeMethod(method); +// +// setStatusCode(statusCode); +// return (statusCode >= 200 && statusCode < 300) ? true : false; +// } /** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
