forked from lookfirst/sardine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
353 additions
and
66 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
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; | ||
} | ||
} |
Oops, something went wrong.