Class WebDavStatus

java.lang.Object
com.ithit.webdav.server.exceptions.WebDavStatus

public class WebDavStatus extends Object
Various status to describe operation result for an item.
  • Field Details

    • OK

      public static final WebDavStatus OK
      OK.
    • ACCESS_DENIED

      public static final WebDavStatus ACCESS_DENIED
      Access denied.
    • CONFLICT

      public static final WebDavStatus CONFLICT
      Conflict.
    • CREATED

      public static final WebDavStatus CREATED
    • FAILED_DEPENDENCY

      public static final WebDavStatus FAILED_DEPENDENCY
    • LOCKED

      public static final WebDavStatus LOCKED
    • NO_CONTENT

      public static final WebDavStatus NO_CONTENT
    • NOT_ALLOWED

      public static final WebDavStatus NOT_ALLOWED
    • PRECONDITION_FAILED

      public static final WebDavStatus PRECONDITION_FAILED
    • INTERNAL_ERROR

      public static final WebDavStatus INTERNAL_ERROR
    • BAD_REQUEST

      public static final WebDavStatus BAD_REQUEST
    • MULTISTATUS

      public static final WebDavStatus MULTISTATUS
    • NOT_FOUND

      public static final WebDavStatus NOT_FOUND
    • METHOD_NOT_ALLOWED

      public static final WebDavStatus METHOD_NOT_ALLOWED
    • NOT_MODIFIED

      public static final WebDavStatus NOT_MODIFIED
    • PARTIAL_CONTENT

      public static final WebDavStatus PARTIAL_CONTENT
    • FORBIDDEN

      public static final WebDavStatus FORBIDDEN
    • NOT_IMPLEMENTED

      public static final WebDavStatus NOT_IMPLEMENTED
    • UNSUPPORTED_MEDIA_TYPE

      public static final WebDavStatus UNSUPPORTED_MEDIA_TYPE
    • INSUFFICIENT_STORAGE

      public static final WebDavStatus INSUFFICIENT_STORAGE
  • Constructor Details

    • WebDavStatus

      public WebDavStatus(int code, String description)
      Initializes instance.
      Parameters:
      code - HTTP Code.
      description - Description.
  • Method Details

    • getCode

      public int getCode()
      Retrieves code.
      Returns:
      HTTP code.
    • getDescription

      public String getDescription()
      Retrieves description.
      Returns:
      Description.
    • getHttpString

      public String getHttpString()
      Retrieves string to be put in response.
      Returns:
      String to be put in response.