-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #322 from Ilia-poliakov/feature/versioning
implemented webdav resource versioning
- Loading branch information
Showing
9 changed files
with
324 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/com/github/sardine/impl/methods/HttpCheckin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.github.sardine.impl.methods; | ||
|
||
import org.apache.http.client.methods.HttpRequestBase; | ||
|
||
import java.net.URI; | ||
|
||
/** | ||
* Simple class for making WebDAV <code>CHECKIN</code> requests. | ||
*/ | ||
public class HttpCheckin extends HttpRequestBase { | ||
|
||
public static final String METHOD_NAME = "CHECKIN"; | ||
|
||
public HttpCheckin(String uri) { | ||
this(URI.create(uri)); | ||
} | ||
|
||
public HttpCheckin(URI uri) { | ||
this.setURI(uri); | ||
} | ||
|
||
@Override | ||
public String getMethod() { | ||
return METHOD_NAME; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/com/github/sardine/impl/methods/HttpCheckout.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.github.sardine.impl.methods; | ||
|
||
import org.apache.http.client.methods.HttpRequestBase; | ||
|
||
import java.net.URI; | ||
|
||
/** | ||
* Simple class for making WebDAV <code>CHECKOUT</code> requests. | ||
*/ | ||
public class HttpCheckout extends HttpRequestBase { | ||
|
||
public static final String METHOD_NAME = "CHECKOUT"; | ||
|
||
public HttpCheckout(String uri) { | ||
this(URI.create(uri)); | ||
} | ||
|
||
public HttpCheckout(URI uri) { | ||
this.setURI(uri); | ||
} | ||
|
||
@Override | ||
public String getMethod() { | ||
return METHOD_NAME; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/com/github/sardine/impl/methods/HttpVersionControl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.github.sardine.impl.methods; | ||
|
||
import org.apache.http.client.methods.HttpRequestBase; | ||
|
||
import java.net.URI; | ||
|
||
/** | ||
* Simple class for making WebDAV <code>VERSION-CONTROL</code> requests. | ||
*/ | ||
public class HttpVersionControl extends HttpRequestBase { | ||
|
||
public static final String METHOD_NAME = "VERSION-CONTROL"; | ||
|
||
public HttpVersionControl(String uri) { | ||
this(URI.create(uri)); | ||
} | ||
|
||
public HttpVersionControl(URI uri) { | ||
this.setURI(uri); | ||
} | ||
|
||
@Override | ||
public String getMethod() { | ||
return METHOD_NAME; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.