Skip to content

Commit

Permalink
7.1.10406
Browse files Browse the repository at this point in the history
  • Loading branch information
ITHitBuild committed Apr 10, 2024
1 parent 28b0a61 commit c426a40
Show file tree
Hide file tree
Showing 103 changed files with 7,770 additions and 109 deletions.
1 change: 1 addition & 0 deletions Java/android/androidfsstorage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@
<p>&nbsp;</p>
<h3 class="para d-inline next-article-heading">Next Article:</h3>
<a title="WebDAV Server with Versioning Example, Java" href="https://www.webdavsystem.com/javaserver/server_examples/deltav_storage/">WebDAV Server Example with Versioning, Java</a>

6 changes: 3 additions & 3 deletions Java/android/androidfsstorage/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ android {
jarJar {
rules = [
'stax-api-1.0.1.jar' : 'javax.xml.** com.ithit.webdav.xml.@1',
'webdav-server-7.0.10355.jar': 'javax.xml.stream.** com.ithit.webdav.xml.stream.@1'
'webdav-server-7.1.10406.jar': 'javax.xml.stream.** com.ithit.webdav.xml.stream.@1'
]
}

Expand Down Expand Up @@ -75,11 +75,11 @@ dependencies {
implementation 'commons-io:commons-io:2.7'
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation('com.ithit.webdav.integration:android-integration:7.0.10355', {
implementation('com.ithit.webdav.integration:android-integration:7.1.10406', {
exclude group: 'org.nanohttpd', module: 'nanohttpd'
})
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
jarJar 'stax:stax-api:1.0.1'
jarJar 'com.ithit.webdav:webdav-server:7.0.10355'
jarJar 'com.ithit.webdav:webdav-server:7.1.10406'
testImplementation 'junit:junit:4.12'
}
1 change: 1 addition & 0 deletions Java/jakarta/collectionsync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,4 @@ This will download IT Hit WebDAV Ajax Library files into your project. Note that
<p class="p1" style='color: rgba(0, 0, 0, 0.85); line-height: normal; font-family: ".SF NS"; font-size: 26px; margin-bottom: 0px; margin-left: 0px; font-stretch: normal; font-feature-settings: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-variation-settings: normal;'>collectionsync</p>
<h3 class="para d-inline next-article-heading">Next Article:</h3>
<a title="Java WebDAV Server for Android" href="https://www.webdavsystem.com/javaserver/server_examples/android/">Java WebDAV Server Example for Android</a>

10 changes: 5 additions & 5 deletions Java/jakarta/collectionsync/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.ithit.webdav.samples</groupId>
<artifactId>collectionsync-jakarta</artifactId>
<version>7.0.10355</version>
<version>7.1.10406</version>
<packaging>war</packaging>

<properties>
Expand All @@ -25,7 +25,7 @@
<dependency>
<groupId>com.ithit.webdav.integration</groupId>
<artifactId>jakarta-integration</artifactId>
<version>7.0.10355</version>
<version>7.1.10406</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
Expand Down Expand Up @@ -114,7 +114,7 @@
<dependency>
<groupId>com.ithit.webdav</groupId>
<artifactId>webdav-server</artifactId>
<version>7.0.10355</version>
<version>7.1.10406</version>
</dependency>
</dependencies>

Expand Down Expand Up @@ -186,7 +186,7 @@
<server>filesystem</server>
<port>11021</port>
<path>/</path>
<warSourceDirectory>target/collectionsync-jakarta-7.0.10355</warSourceDirectory>
<warSourceDirectory>target/collectionsync-jakarta-7.1.10406</warSourceDirectory>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -214,7 +214,7 @@
<configuration>
<arguments>update</arguments>
<workingDirectory>src/main/webapp/WEB-INF/wwwroot/js</workingDirectory>
<installDirectory>c:\temp\</installDirectory>
<installDirectory>C:\Users\build\AppData\Local\Temp\</installDirectory>
</configuration>
</execution>
<execution>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Java/jakarta/filesystemstorage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,4 @@ This will download IT Hit WebDAV Ajax Library files into your project. Note that
<p>&nbsp;</p>
<h3 class="para d-inline next-article-heading">Next Article:</h3>
<a title="WebDAV Server Example with Collection Synchronization support" href="https://www.webdavsystem.com/javaserver/server_examples/collection_sync/">WebDAV Server Example with Collection Synchronization Support</a>

10 changes: 5 additions & 5 deletions Java/jakarta/filesystemstorage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.ithit.webdav.samples</groupId>
<artifactId>filesystemstorage</artifactId>
<version>7.0.10355</version>
<version>7.1.10406</version>
<packaging>war</packaging>

<properties>
Expand All @@ -25,7 +25,7 @@
<dependency>
<groupId>com.ithit.webdav.integration</groupId>
<artifactId>jakarta-integration</artifactId>
<version>7.0.10355</version>
<version>7.1.10406</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
Expand Down Expand Up @@ -120,7 +120,7 @@
<dependency>
<groupId>com.ithit.webdav</groupId>
<artifactId>webdav-server</artifactId>
<version>7.0.10355</version>
<version>7.1.10406</version>
</dependency>
</dependencies>

Expand Down Expand Up @@ -192,7 +192,7 @@
<server>filesystem</server>
<port>11021</port>
<path>/</path>
<warSourceDirectory>target/filesystemstorage-jakarta-7.0.10355</warSourceDirectory>
<warSourceDirectory>target/filesystemstorage-jakarta-7.1.10406</warSourceDirectory>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -220,7 +220,7 @@
<configuration>
<arguments>update</arguments>
<workingDirectory>src/main/webapp/WEB-INF/wwwroot/js</workingDirectory>
<installDirectory>c:\temp\</installDirectory>
<installDirectory>C:\Users\build\AppData\Local\Temp\</installDirectory>
</configuration>
</execution>
<execution>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Java/jakarta/springboot3fsstorage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,4 @@ The IT Hit Java WebDAV Server Library is fully functional and does not have any
<p>&nbsp;</p>
<h3 class="para d-inline next-article-heading">Next Article:</h3>
<a title="Spring Boot framework WebDAV Server Example with Oracle back-end. Can both process WebDAV requests and serve web pages on the rest of the website." href="https://www.webdavsystem.com/javaserver/server_examples/spring_boot_sql/">Spring Boot WebDAV Server Example with Oracle Back-end, Java</a>

6 changes: 3 additions & 3 deletions Java/jakarta/springboot3fsstorage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>
<groupId>com.ithit.webdav.samples</groupId>
<artifactId>springboot3fsstorage</artifactId>
<version>7.0.10355</version>
<version>7.1.10406</version>
<name>springboot3fsstorage</name>
<description>Demo project for Spring Boot 3</description>

Expand Down Expand Up @@ -53,12 +53,12 @@
<dependency>
<groupId>com.ithit.webdav</groupId>
<artifactId>webdav-server</artifactId>
<version>7.0.10355</version>
<version>7.1.10406</version>
</dependency>
<dependency>
<groupId>com.ithit.webdav.integration</groupId>
<artifactId>jakarta-integration</artifactId>
<version>7.0.10355</version>
<version>7.1.10406</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
61 changes: 61 additions & 0 deletions Java/jakarta/springboot3s3storage/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@

<h1 class="d-xl-block d-none">Spring Boot WebDAV Server Example with Amazon S3 Back-end, Java</h1>
<p>This sample&nbsp;is a fully functional Class 2 WebDAV server that runs on the Spring Boot framework and stores all data in the Amazon S3 bucket.&nbsp;The WebDAV requests are processed on a /DAV/ context, while the rest of the website processes regular HTTP requests, serving web pages. Documents are being published from the Amazon S3 bucket with locks and custom attributed being stored in S3 Metadata.&nbsp;</p>
<p>This sample can be downloaded in the <a title="Download" href="https://www.webdavsystem.com/javaserver/download/">product download area</a> as well as it is published on&nbsp;<a href="https://github.com/ITHit/WebDAVServerSamplesJava/tree/master/Java/javax/springboots3storage">GitHub</a>.</p>
<p><span>This sample is using&nbsp;</span><a title="AJAX Library" href="https://www.webdavsystem.com/ajax/">IT Hit WebDAV Ajax Library</a><span>&nbsp;to display and browse server content on a default web page as well as to open documents for editing from a web page and save back directly to the server.</span><span></span></p>
<p>&nbsp;</p>
<h2>Requirements</h2>
<ul>
<li>Java 1.8.</li>
<li>Lombok plug-in should be installed in your favorite IDE otherwise syntax error will be displayed</li>
</ul>
<h2>Running the sample</h2>
<ol>
<li>
<p><strong>Set the license</strong>.&nbsp;Download your license file&nbsp;<a href="https://www.webdavsystem.com/javaserver/download/">here</a>. To set the license, edit the <code class="code">webdav.license</code>&nbsp;section in <code class="code"><em>\springboot\src\main\resources\application.properties</em></code>&nbsp;and specify the path to the&nbsp;<code class="code"><em>license.lic</em></code>&nbsp;file.</p>
<pre class="brush:html;auto-links:false;toolbar:false">webdav.license=C:\License.lic</pre>
The IT Hit Java WebDAV Server Library is fully functional and does not have any limitations. However, the trial period is limited to 1 month. After the trial period expires the Java WebDAV Server will stop working.<span></span></li>
<li>
<p><strong>Configure the Amazon S3 storage</strong>. You can either use an existing Amazon S3 bucket or create a new one. To create a bucket you can use the Amazon S3 <a title="web console" href="https://s3.console.aws.amazon.com/s3/home">web console</a>.&nbsp;</p>
<p><img id="__mcenew" alt="" src="https://www.webdavsystem.com/media/2127/createb.jpg" rel="122335"></p>
<p>After creating the S3 bucket you can create some folders and upload files for testing purposes.</p>
</li>
<li>
<p><strong>Configure the Amazon S3 project settings.</strong>&nbsp;In&nbsp;<code class="code">application.properties</code>&nbsp;set the following properties:</p>
<pre class="brush:xml;auto-links:false;toolbar:false"># Amazon S3 region
webdav.s3.region=
# Amazon S3 access key
webdav.s3.access-key=
# Amazon S3 secret access key
webdav.s3.secret-access-key=
# Amazon S3 bucket name
webdav.s3.bucket=
</pre>
</li>
<li>
<p><strong>Configure the application server</strong>.&nbsp;Here we will configure the WebDAV server to run on the website non-root context (<code class="code">https://server/DAV/</code>). This setting is located in the <code class="code">webdav.rootContext</code>&nbsp;section in the&nbsp;<em><code class="code">\springboot\src\main\resources\application.properties</code>.</em></p>
<pre class="brush:html;auto-links:false;toolbar:false">webdav.rootContext=/DAV/</pre>
<span><span class="warn"><span>Note:</span>&nbsp;Some WebDAV clients (such as some old versions or Mini-redirector, Microsoft Web Folders, and MS Office 2007 and earlier) will fail to connect to a non-root server. They submit configuration requests to server root and if they do not get the response they will not be able to connect.&nbsp;<span>For this reason, this sample processes OPTIONS and PROPFIND requests on all folders, including on the site root (https://server/).</span> See also&nbsp;<a title="Working with MS Office" href="https://www.webdavsystem.com/javaserver/doc/ms_office_read_only/">Making Microsoft Office to Work with WebDAV Server</a>&nbsp;and&nbsp;<a title="Opening Docs" href="https://www.webdavsystem.com/ajax/programming/open-doc-webpage/opening_ms_office_docs/">Opening Microsoft Office Documents and Other Types of Files for Editing From a Web Page</a>.<br>This Spring Boot sample supports those configuration requests and works properly on a non-root context.<br></span></span></li>
<li>
<p><strong>Running the springboot sample.&nbsp;</strong>To start the sample, change the directory to&nbsp;<em><code class="code">springboot</code>&nbsp;</em>and execute the following command:</p>
<pre class="brush:html;auto-links:false;toolbar:false">mvnw spring-boot:run</pre>
<p>If everything was set up properly you should see a sample web page on&nbsp;&nbsp;<code class="code">https://server/DAV/</code>&nbsp;URL with a list of sample files and folders previously created in S3. Now you can open documents for editing, manage documents, as well as&nbsp;<a href="https://www.webdavsystem.com/server/access/">connect to the server with any WebDAV client</a>.</p>
<p>If anything goes wrong examine the log file. For Spring Boot, the log file is usually located at <code class="code">springboot/log/engine.log</code>. You may also need to capture and examine the HTTP requests. See <a title="Troubleshooting" href="https://www.webdavsystem.com/javaserver/server_examples/troubleshooting/">this article</a> for more details.&nbsp;</p>
</li>
</ol>
<h2>The Project&nbsp;Classes</h2>
<p>On the diagram below you can see the classes in the WebDAV SpringBoot S3 sample:</p>
<p><img id="__mcenew" alt="Class diagram of the sample Java WebDAV Server running on Spring Boot" src="https://www.webdavsystem.com/media/1879/springbootdiagram.png" rel="115963"></p>
<p>To adapt the sample to your needs, you will modify these classes to read and write data from and into your storage. You can find more about this in&nbsp;<a title="Creating WebDAV Server" href="https://www.webdavsystem.com/javaserver/doc/">Creating a Class 1 WebDAV Server</a>&nbsp;and&nbsp;<a title="Class 2 / 3 Server" href="https://www.webdavsystem.com/javaserver/doc/create_class_2_webdav_server/">Creating Class 2 WebDAV Server</a>&nbsp;article as well as in the&nbsp;<a href="http://java.webdavsystem.com/">class reference documentation</a>.</p>
<p>&nbsp;</p>
<h3>See Also:</h3>
<ul>
<li><a title="Running" href="https://www.webdavsystem.com/javaserver/server_examples/running_webdav_samples/">Running the WebDAV Samples</a></li>
<li><a title="Troubleshooting" href="https://www.webdavsystem.com/javaserver/server_examples/troubleshooting/">WebDAV Server Samples Problems and Troubleshooting</a></li>
<li><a title="Creating WebDAV Server" href="https://www.webdavsystem.com/javaserver/doc/">Creating a Class 1 WebDAV Server</a>&nbsp;</li>
<li><a title="Class 2 / 3 Server" href="https://www.webdavsystem.com/javaserver/doc/create_class_2_webdav_server/">Creating a Class 2 WebDAV Server</a></li>
</ul>
<p>&nbsp;</p>
<h3 class="para d-inline next-article-heading">Next Article:</h3>
<a title="WebDAV Server Example with Oracle Back-end, Java" href="https://www.webdavsystem.com/javaserver/server_examples/sql_storage/">WebDAV Server Example with Oracle Back-end, Java</a>

Loading

0 comments on commit c426a40

Please sign in to comment.