public class WebDavHelper extends Object
| Constructor and Description |
|---|
WebDavHelper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
createFolder(String webDavDirectory,
WebDavClient webDavClient)
creates the given webdav collection (a sub directory in the file system), if it does not exists.
|
static boolean |
deleteFileFromWebDAV(String fileName,
WebDavClient webDavClient,
String webDavDirectory)
DOCUMENT ME!
|
static BufferedImage |
downloadImageFromWebDAV(String fileName,
String webDavDirectory,
WebDavClient webDavClient,
Component parent)
DOCUMENT ME!
|
static BufferedImage |
downloadImageFromWebDAV(String fileName,
String webDavDirectory,
WebDavClient webDavClient,
Component parent,
IIOReadProgressListener progressListener)
DOCUMENT ME!
|
static String |
encodeURL(String url)
DOCUMENT ME!
|
static String |
generateWebDAVFileName(String prefix,
File originalFile)
DOCUMENT ME!
|
static boolean |
isUrlAccessible(WebDavClient webDavClient,
String url)
DOCUMENT ME!
|
static int |
uploadFileToWebDAV(String fileName,
File toUpload,
String webDavDirectory,
WebDavClient webDavClient,
Component parent)
DOCUMENT ME!
|
static int |
uploadFileToWebDAV(String fileName,
InputStream toUpload,
String webDavDirectory,
WebDavClient webDavClient,
Component parent)
DOCUMENT ME!
|
static int |
uploadFileToWebDAVWithPreemptiveAuth(String fileName,
File toUpload,
String webDavDirectory,
WebDavClient webDavClient,
Component parent)
Uploads the given file and does not use a ProgressMonitorInputStream.
|
public static String generateWebDAVFileName(String prefix, File originalFile)
prefix - DOCUMENT ME!originalFile - DOCUMENT ME!public static int uploadFileToWebDAV(String fileName, File toUpload, String webDavDirectory, WebDavClient webDavClient, Component parent) throws IOException
fileName - DOCUMENT ME!toUpload - DOCUMENT ME!webDavDirectory - DOCUMENT ME!webDavClient - DOCUMENT ME!parent - DOCUMENT ME!IOException - DOCUMENT ME!public static int uploadFileToWebDAV(String fileName, InputStream toUpload, String webDavDirectory, WebDavClient webDavClient, Component parent) throws IOException
fileName - DOCUMENT ME!toUpload - DOCUMENT ME!webDavDirectory - DOCUMENT ME!webDavClient - DOCUMENT ME!parent - DOCUMENT ME!IOException - DOCUMENT ME!public static int uploadFileToWebDAVWithPreemptiveAuth(String fileName, File toUpload, String webDavDirectory, WebDavClient webDavClient, Component parent) throws IOException
fileName - DOCUMENT ME!toUpload - DOCUMENT ME!webDavDirectory - DOCUMENT ME!webDavClient - DOCUMENT ME!parent - DOCUMENT ME!IOException - DOCUMENT ME!public static int createFolder(String webDavDirectory, WebDavClient webDavClient) throws IOException
webDavDirectory - the webdav collection to createwebDavClient - a webdav clientIOException - DOCUMENT ME!public static boolean isUrlAccessible(WebDavClient webDavClient, String url)
webDavClient - DOCUMENT ME!url - DOCUMENT ME!public static boolean deleteFileFromWebDAV(String fileName, WebDavClient webDavClient, String webDavDirectory)
fileName - DOCUMENT ME!webDavClient - DOCUMENT ME!webDavDirectory - DOCUMENT ME!public static String encodeURL(String url)
url - DOCUMENT ME!public static BufferedImage downloadImageFromWebDAV(String fileName, String webDavDirectory, WebDavClient webDavClient, Component parent) throws IOException
fileName - DOCUMENT ME!webDavDirectory - DOCUMENT ME!webDavClient - DOCUMENT ME!parent - DOCUMENT ME!IOException - DOCUMENT ME!public static BufferedImage downloadImageFromWebDAV(String fileName, String webDavDirectory, WebDavClient webDavClient, Component parent, IIOReadProgressListener progressListener) throws IOException
fileName - DOCUMENT ME!webDavDirectory - DOCUMENT ME!webDavClient - DOCUMENT ME!parent - DOCUMENT ME!progressListener - DOCUMENT ME!IOException - DOCUMENT ME!Copyright © 2012–2026 cismet GmbH. All rights reserved.