webdavclient4j pretty cool

125 views
Skip to first unread message

Alex-SF

unread,
Nov 19, 2009, 4:35:15 PM11/19/09
to ControlTier
I am looking at webdavclient4j (http://sourceforge.net/projects/
webdavclient4j/) as a possible replacement for our webdav client
dependencies and noticed it includes a handy command line tool.

The tool lets you connect to a WebDAV server and then access it using
ftp/shell-like commands. Curious if anybody would like this included
in the ControlTier distribution.

Here's the help output and my listing a collection.

[ Slide ] $ help
Commands:
options {http_URL|path} Print available http methods
open [http_URL] Connect to specified URL
close Close current connection
exit Exit Slide
help Print this help message
debug {ON|OFF} set debugmode
lpwd Print local working directory
lcd [path] Change local working directory
lls [-lF] [path] List contents of local directory
pwc Print working collection
cc [path] Change working collection
ls [-lF] [path] List contents of collection
url Print working URL
status Print latest http status message
get path [file] Get a resource to a file
put {URL|file} [path] Put a given file or URL to path
mkcol path ... Make new collections
delete path ... Delete resources
copy source destination Copy resource from source to
destination path
move source destination Move resource from source to
destination path
lock path [-t(xxx|inf)] [-s(SHARED|EXCLUSIVE)] [-oOWNER]
Lock specified resource.
default:
lock file -t120 -sexclusive with
current owner
unlock path [-oOWNER] Unlock specified resource.
default:
unlock file with current owner
locks [<path>] Displays locks on specified resource
propget path property ... Print value of specified property
propgetall [<path>] Print value of all properties
propput path property value Set property with given value
set URLencode {on|off} Set URL encoding flag, default: on
set debug {on|off} Set debug level, default: off
acl [<path>] Displays the ACL of path
principalcol [<path>] Displays the principal collection set
of path
grant [<namespace>] <permission> [on <path>] to <principal>
deny [<namespace>] <permission> [on <path>] to <principal>
revoke [<namespace>] <permission> [on <path>] from <principal>
versioncontrol path set a versionable resource under
versioncontrol
versioncontrol URL path create a new versioncontrolled
resource at path based on history URL
checkout path checkout of a checkedin resource
checkin path checkin of a checkedout resource
uncheckout path undoing changes on Resource since
checkedout (including checkout)
report path [<property>] getting report (version-tree) for any
resource
eReport path getting report (expand-property) for
any resource
LReport path [<property>] ON [<historyuri>] getting report (locate-
by-history)
mkws path ... Make new workspace
update path target Update a resource identified by
path to version identified by target
begin starts a new transaction (only if
server supports this)
commit commits the transaction started by
begin (only if server supports this)
abort aborts and rolls back the transaction
started by begin (only if server supports this)
Aliases: help=?, open=connect, ls=dir, pwc=pwd, cc=cd, lls=ldir,
copy=cp,
move=mv, delete=del=rm, mkcol=mkdir, propget=propfind,
propput=proppatch,
exit=quit=bye
Comment : Once executed, the debug mode will be active.
Because it's not triggered by methods yet.
[ Slide ] $ open http://localhost:8080/jackrabbit/repository/workbench
connect http://localhost:8080/jackrabbit/repository/workbench/
Nov 19, 2009 1:27:58 PM
org.apache.commons.httpclient.auth.AuthChallengeProcessor
selectAuthScheme
INFO: basic authentication scheme selected
Nov 19, 2009 1:27:58 PM
org.apache.commons.httpclient.HttpMethodDirector
processWWWAuthChallenge
INFO: No credentials available for BASIC 'jackrabbit'@localhost:8080
HttpException.getReasonCode(): 401UserName: default
Password: default
[LOCALHOST:/jackrabbit/repository/workbench/] /Users/alexh/
webdavclient4j-src-0.92/dist $ ls -l
examples 0 COLLECTION Nov 19, 2009
1:28:44 PM
seeds 0 COLLECTION Nov 19, 2009
1:28:44 PM
templates 0 COLLECTION Nov 19, 2009
1:28:44 PM
demo 0 COLLECTION Nov 19, 2009
1:28:44 PM

proc

unread,
Nov 20, 2009, 4:43:30 AM11/20/09
to ControlTier
I would like to see something like this included, definitely! Have a
couple of ideas of how I could use it!
> connecthttp://localhost:8080/jackrabbit/repository/workbench/

Alex-SF

unread,
Nov 20, 2009, 6:19:26 PM11/20/09
to ControlTier
Would you mind doing the honors and log this as a feature request? :)

http://sourceforge.net/tracker/?group_id=151079&atid=779850

proc

unread,
Nov 22, 2009, 1:07:23 PM11/22/09
to ControlTier
Sure thing. Will do it tomorrow morning.

Regards,

Michael
> > > 1:28:44 PM- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages