You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by na...@apache.org on 2008/03/13 02:26:16 UTC

svn commit: r636597 - /xml/xindice/trunk/java/src/org/apache/xindice/webadmin/webdav/DAVResponse.java

Author: natalia
Date: Wed Mar 12 18:26:14 2008
New Revision: 636597

URL: http://svn.apache.org/viewvc?rev=636597&view=rev
Log:
New method, javadoc fixes

Modified:
    xml/xindice/trunk/java/src/org/apache/xindice/webadmin/webdav/DAVResponse.java

Modified: xml/xindice/trunk/java/src/org/apache/xindice/webadmin/webdav/DAVResponse.java
URL: http://svn.apache.org/viewvc/xml/xindice/trunk/java/src/org/apache/xindice/webadmin/webdav/DAVResponse.java?rev=636597&r1=636596&r2=636597&view=diff
==============================================================================
--- xml/xindice/trunk/java/src/org/apache/xindice/webadmin/webdav/DAVResponse.java (original)
+++ xml/xindice/trunk/java/src/org/apache/xindice/webadmin/webdav/DAVResponse.java Wed Mar 12 18:26:14 2008
@@ -45,6 +45,7 @@
      * Creates new instance of DAVRequest.
      *
      * @param response HttpServletResponse
+     * @throws IOException Servlet IOException
      */
     public DAVResponse(HttpServletResponse response) throws IOException {
         this.response = response;
@@ -87,13 +88,22 @@
 
     /**
      * Wrapper method, sets HTTP response status.
-     * @param status
+     * @param status HTTP status code
      */
     public void setStatus(int status) {
         response.setStatus(status);
     }
 
     /**
+     * Wrapper method, sends an error with HTTP response status.
+     * @param status HTTP status code
+     * @throws IOException Servlet IOException
+     */
+    public void sendError(int status) throws IOException {
+        response.sendError(status);
+    }
+
+    /**
      * Wrapper method, adds header to HTTP response.
      * @param header Header name
      * @param value Header value
@@ -113,7 +123,7 @@
 
     /**
      * Wrapper method, sets HTTP response content type
-     * @param mimeType
+     * @param mimeType MIME type of the content
      */
     public void setContentType(String mimeType) {
         response.setContentType(mimeType);
@@ -121,7 +131,7 @@
 
     /**
      * Wrapper method, sets HTTP response content length
-     * @param contentLength
+     * @param contentLength Integer that specify length of the content
      */
     public void setContentLength(int contentLength) {
         response.setContentLength(contentLength);
@@ -130,6 +140,7 @@
     /**
      * Wrapper method, returns HTTP response output stream
      * @return Servlet output stream
+     * @throws IOException Servlet IOException
      */
     public ServletOutputStream getOutputStream() throws IOException {
         return response.getOutputStream();
@@ -137,7 +148,8 @@
 
     /**
      * Wrapper method, sends redirect
-     * @param redirect
+     * @param redirect Location URL
+     * @throws IOException Servlet IOException
      */
     public void sendRedirect(String redirect) throws IOException {
         response.sendRedirect(redirect);