Class ServiceConfig.Webdav

java.lang.Object
org.apache.opendal.ServiceConfig.Webdav
All Implemented Interfaces:
ServiceConfig
Enclosing interface:
ServiceConfig

public static class ServiceConfig.Webdav extends Object implements ServiceConfig
Configuration for service webdav.
  • Field Details

    • disableCopy

      public final Boolean disableCopy
      Deprecated.
      WebDAV copy capability is enabled by default and this option is no longer needed.

      Deprecated: WebDAV copy capability is enabled by default.

    • disableCreateDir

      public final Boolean disableCreateDir

      Disable automatic parent directory creation before writing files.

      By default, OpenDAL checks for parent directories using PROPFIND and creates missing directories using MKCOL before writing files. Enable this option to skip those checks and MKCOL calls for servers such as bazel-remote.

      Explicit create_dir calls are unaffected.

      Default: false

    • disableDepthInfinity

      public final Boolean disableDepthInfinity

      Disable native recursive listing with WebDAV's Depth: infinity.

      Set this to true for servers that reject or ignore infinity depth. With capability simulation enabled, OpenDAL walks the directory tree using Depth: 1 requests instead.

      The default is false.

    • enableConditionalRead

      public final Boolean enableConditionalRead
      Deprecated.
      WebDAV conditional read capabilities are enabled by default. Use CapabilityOverrideLayer to override read_with_if_match, read_with_if_none_match, read_with_if_modified_since and read_with_if_unmodified_since for endpoints without ETag support.

      Deprecated: WebDAV conditional read capabilities are enabled by default.

    • enableUserMetadata

      public final Boolean enableUserMetadata
      Deprecated.
      WebDAV user metadata capability is enabled by default. Use CapabilityOverrideLayer to override write_with_user_metadata for endpoints without PROPPATCH support.

      Deprecated: WebDAV user metadata capability is enabled by default.

    • endpoint

      public final String endpoint

      endpoint of this backend

    • password

      public final String password

      password of this backend

    • root

      public final String root

      root of this backend

    • token

      public final String token

      token of this backend

    • userMetadataPrefix

      public final String userMetadataPrefix

      The XML namespace prefix for user metadata properties.

      This prefix is used in PROPPATCH/PROPFIND XML requests. Different servers may require different prefixes.

      Default: "opendal"

    • userMetadataUri

      public final String userMetadataUri

      The XML namespace URI for user metadata properties.

      This URI uniquely identifies the namespace for custom properties. Different servers may require different namespace URIs. For example, Nextcloud might work better with its own namespace.

      Default: https://opendal.apache.org/ns

    • username

      public final String username

      username of this backend

  • Constructor Details

    • Webdav

      public Webdav()
  • Method Details

    • scheme

      public String scheme()
      Description copied from interface: ServiceConfig
      The scheme of the service.
      Specified by:
      scheme in interface ServiceConfig
      Returns:
      the scheme
    • configMap

      public Map<String,String> configMap()
      Description copied from interface: ServiceConfig
      Convert the structured config to a type erased config map.

      A map-valued field becomes one entry, under the field's option name, whose value is a JSON object string, such as assume_role_session_tags = {"Team":"data"}. The map's entries are not flattened into top-level entries. Its keys are sorted, an empty map becomes {}, and an unset field has no entry.

      Specified by:
      configMap in interface ServiceConfig
      Returns:
      the config map