WebDAV Server Examples, Java
IT Hit WebDAV Server Library for Java is provided with several examples that demonstrate how to build a WebDAV server with SQL back-end or with file system storage. You can adapt these samples to utilize almost any back-end storage including storing data in CMS/DMS/CRM, Azure or Amazon storage.
A sample HTML page included with samples demonstrates how to use IT Hit WebDAV Ajax Libray to open documents from a web page for editing, list documents and navigate folder structure as well as build search capabilities.
Online Demo Server
Requirements
The samples are tested with Java 1.8 in the following environments:
- Tomcat 7 or later
- Glassfish 4.1.1 or later
- JBoss Wildfly 9 or later or respective EAP
- WebLogic 12c or later
- WebSphere 8.5.5.11 or later
- Jetty 9.3.13 or later
Full-text Search and indexing
The samples are provided with full-text search and indexing based on use Apache Lucene as indexing engine and Apache Tika as content analysis toolkit.
The server implementation searches both file names and file content including content of Microsoft Office documents as well as any other documents which format is supported by Apache Tika, such as LibreOffice, OpenOffice, PDF, etc.
-
Spring Boot WebDAV Server Example with File System Back-end, Java
This sample provides a WebDAV server running on the Spring Boot framework with files being stored in the file system. The WebDAV requests are processed in a dedicated context, while the rest of the website processes regular HTTP requests, serving web ...
-
Spring Boot WebDAV Server Example with Oracle Back-end, Java
This sample provides a WebDAV server running on the Spring Boot framework. All data including file content, document structure, and custom attributes are stored in the Oracle database. The IT Hit WebDAV Ajax Library is used to display and browse serv ...
-
Spring Boot WebDAV Server Example with Amazon S3 Back-end, Java
This sample is a fully functional Class 2 WebDAV server that runs on the Spring Boot framework and stores all data in the Amazon S3 bucket. The WebDAV requests are processed on a /DAV/ context, while the rest of the website processes regular HTTP req ...
-
WebDAV Server Example with Oracle Back-end, Java
The sample provides Class 2 WebDAV server implementation that can be hosted in Apache Tomcat, GlassFish, JBoss, WebLogic, WebSphere or other compliant application server. All data including file content, documents structure and custom attributes is s ...
-
WebDAV Server Example with File System Back-end, Java and Kotlin
This sample is a fully functional Class 2 WebDAV server that stores all data in the file system. It utilizes file system Extended Attributes (in case of Linux and macOS) or Alternate Data Streams (in case of Windows/NTFS) to store locks and custom pr ...
-
WebDAV Server Example with Collection Synchronization Support
This sample is a fully functional Class 2 WebDAV server with collection synchronization support (RFC 6578) that stores all data in the file system. This sample is similar to what is provided by the Java demo WebDAV server at: https://webdavserver.com ...
-
Java WebDAV Server Example for Android
This sample is a Class 2 WebDAV server that runs on Android. It uses modified NanoHTTPD as an application server and publishes files from a mobile application folder or from media folder. Locks and properties in SQLite database. To see the documents ...
-
WebDAV Server Example with Versioning, Java
The sample provides DeltaV WebDAV server implementation that can be hosted in Apache Tomcat, GlassFish, JBoss, WebLogic or WebSphere. The data is stored in Oracle database. The IT Hit WebDAV Ajax Library is used to display and browse server content o ...
-
Running the WebDAV Samples
Once your sample is configured and running you will see the following web page (note that the port that the sample is using may be different from the one on the screenshots): This web page is a MyCustomHandlerPage.html included in each sample and ...
-
Configuring Full-Text Search for Files Stored in File System or in Oracle Database
The samples provided with SDK use Apache Lucene as indexing engine and Apache Tika as content analysis toolkit. The server implementation searches both file names and file content including content of Microsoft Office documents as well as any other ...
-
WebDAV Server Samples Problems and Troubleshooting
Examining Logs If things are not going as planned and you run into issues the first place to look would be the log file <Your Tomcat location>\Tomcat x.x\logs\localhost.xxxx-xx-xx.log . The logs will reflect as to what is going on and it will ...