juergen 02/05/15 05:05:29
Modified: src/webdav/server/org/apache/slide/webdav/method
ReportMethod.java
Log:
Removed useless constants.
(ralf)
Revision Changes Path
1.28 +5 -15
jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/ReportMethod.java
Index: ReportMethod.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/ReportMethod.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- ReportMethod.java 15 May 2002 11:44:37 -0000 1.27
+++ ReportMethod.java 15 May 2002 12:05:29 -0000 1.28
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/ReportMethod.java,v
1.27 2002/05/15 11:44:37 juergen Exp $
- * $Revision: 1.27 $
- * $Date: 2002/05/15 11:44:37 $
+ * $Header:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/ReportMethod.java,v
1.28 2002/05/15 12:05:29 juergen Exp $
+ * $Revision: 1.28 $
+ * $Date: 2002/05/15 12:05:29 $
*
* ====================================================================
*
@@ -168,23 +168,13 @@
/**
* An implementation of the DeltaV <code>REPORT</code> method.
*
- * @version $Revision: 1.27 $
+ * @version $Revision: 1.28 $
*
* @author <a href="mailto:[EMAIL PROTECTED]">Ralf Stuckert</a>
*/
public class ReportMethod extends WebdavMethod implements DeltavConstants,
AclConstants {
/**
- * String constant for <code>text/xml</code>.
- */
- public static final String TEXT_XML = "text/xml";
-
- /**
- * String constant for <code>UTF-8</code>.
- */
- public static final String ENCODING = "UTF-8";
-
- /**
* String constant for <code>http://</code>.
*/
public static final String HTTP_PROTOCOL = "http://";
@@ -580,7 +570,7 @@
protected void executeRequest() throws IOException, WebdavException {
// content type must be set BEFORE calling getWriter()
- getResponse().setContentType(TEXT_XML + "; charset=" + ENCODING);
+ getResponse().setContentType(TEXT_XML_UTF_8);
Element resultElement = null;
try {
if (R_VERSION_TREE.equals(requestedReport)) {
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>