WebDavServiceImpl
@Deprecated public class WebDavServiceImpl extends Object implements WebDavService
WebDavService
.Modifier and Type | Field and Description |
---|---|
protected Charset |
charset
Deprecated.
Charset used to encode paths in URLs.
|
static String |
FILTER_ALL_ITEMS
Deprecated.
|
protected SiteAwareConfigProfileLoader<org.craftercms.commons.config.profiles.webdav.WebDavProfile> |
profileLoader
Deprecated.
Instance of
SiteAwareConfigProfileLoader used to load the configuration file. |
protected Set<QName> |
properties
Deprecated.
Properties to request to the server when listing resources.
|
static String |
PROPERTY_CONTENT_TYPE
Deprecated.
|
static String |
PROPERTY_DISPLAY_NAME
Deprecated.
|
static String |
PROPERTY_RESOURCE_TYPE
Deprecated.
|
Constructor and Description |
---|
WebDavServiceImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getName(com.github.sardine.DavResource resource)
Deprecated.
|
protected org.craftercms.commons.config.profiles.webdav.WebDavProfile |
getProfile(String site,
String profileId)
Deprecated.
|
protected String |
getUrl(com.github.sardine.DavResource resource,
String baseUrl,
String deliveryUrl,
String basePath)
Deprecated.
|
List<WebDavItem> |
list(String site,
String profileId,
String path,
String type)
Deprecated.
Lists resources in the specified path.
|
void |
setProfileLoader(SiteAwareConfigProfileLoader<org.craftercms.commons.config.profiles.webdav.WebDavProfile> profileLoader)
Deprecated.
|
String |
upload(String site,
String profileId,
String path,
String filename,
InputStream content)
Deprecated.
Uploads a file in the specified path.
|
public static final String PROPERTY_DISPLAY_NAME
public static final String PROPERTY_CONTENT_TYPE
public static final String PROPERTY_RESOURCE_TYPE
public static final String FILTER_ALL_ITEMS
protected SiteAwareConfigProfileLoader<org.craftercms.commons.config.profiles.webdav.WebDavProfile> profileLoader
SiteAwareConfigProfileLoader
used to load the configuration file.protected Charset charset
public void setProfileLoader(SiteAwareConfigProfileLoader<org.craftercms.commons.config.profiles.webdav.WebDavProfile> profileLoader)
protected org.craftercms.commons.config.profiles.webdav.WebDavProfile getProfile(String site, String profileId) throws WebDavException
WebDavException
public List<WebDavItem> list(String site, String profileId, String path, String type) throws WebDavException
list
in interface WebDavService
site
- the name of the siteprofileId
- the id of the profilepath
- the relative path to listtype
- mime type used for filteringWebDavException
- if there is an error connecting to the server or listing the resourcesprotected String getUrl(com.github.sardine.DavResource resource, String baseUrl, String deliveryUrl, String basePath)
protected String getName(com.github.sardine.DavResource resource)
public String upload(String site, String profileId, String path, String filename, InputStream content) throws WebDavException
upload
in interface WebDavService
site
- the name of the siteprofileId
- the id of the profilepath
- the relative path to upload the filefilename
- the name of the file to uploadcontent
- stream providing the content of the fileWebDavException
- if there is an error connecting to the server or uploading the fileCopyright © 2023 CrafterCMS. All rights reserved.