| Modifier and Type | Field and Description |
|---|---|
String |
displayName |
String |
name |
Folder |
parent |
| Constructor and Description |
|---|
Resource(Folder parent,
PropFindResponse resp) |
Resource(Folder parent,
String name) |
Resource(Folder parent,
String name,
String displayName,
String href,
Date modifiedDate,
Date createdDate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ResourceListener l) |
void |
copyTo(Folder folder) |
void |
copyTo(Folder folder,
String destName) |
static String |
decodePath(String href)
does percentage decoding on a path portion of a url
E.g.
|
void |
delete() |
abstract File |
downloadTo(File destFolder,
ProgressListener listener) |
String |
encodedName() |
abstract String |
encodedUrl() |
protected void |
finalize() |
static long |
getCount() |
Date |
getCreatedDate() |
String |
getLockOwner() |
String |
getLockToken() |
Date |
getModifiedDate() |
Host |
host() |
String |
href()
Returns the UN-encoded url
|
void |
lock() |
void |
lock(int timeout) |
void |
moveTo(Folder folder) |
void |
moveTo(Folder folder,
String destName) |
Path |
path() |
String |
post(Map<String,String> params) |
void |
removeListener(ResourceListener l) |
void |
rename(String newName) |
String |
toString() |
int |
unlock() |
public Folder parent
public String name
public String displayName
public Resource(Folder parent, PropFindResponse resp)
public Resource(Folder parent, String name, String displayName, String href, Date modifiedDate, Date createdDate)
public static String decodePath(String href)
href - public abstract File downloadTo(File destFolder, ProgressListener listener) throws IOException, HttpException, NotAuthorizedException, BadRequestException
public static long getCount()
public abstract String encodedUrl()
protected void finalize()
throws Throwable
public void addListener(ResourceListener l)
public String post(Map<String,String> params) throws HttpException, NotAuthorizedException, ConflictException, BadRequestException, NotFoundException
public void lock()
throws HttpException,
NotAuthorizedException,
ConflictException,
BadRequestException,
NotFoundException
public void lock(int timeout)
throws HttpException,
NotAuthorizedException,
ConflictException,
BadRequestException,
NotFoundException
public int unlock()
throws HttpException,
NotAuthorizedException,
ConflictException,
BadRequestException,
NotFoundException
public void copyTo(Folder folder) throws IOException, HttpException, NotAuthorizedException, ConflictException, BadRequestException, NotFoundException
public void copyTo(Folder folder, String destName) throws IOException, HttpException, NotAuthorizedException, ConflictException, BadRequestException, NotFoundException
public void rename(String newName) throws IOException, HttpException, NotAuthorizedException, ConflictException, BadRequestException, NotFoundException
public void moveTo(Folder folder) throws IOException, HttpException, NotAuthorizedException, ConflictException, BadRequestException, NotFoundException
public void moveTo(Folder folder, String destName) throws IOException, HttpException, NotAuthorizedException, ConflictException, BadRequestException, NotFoundException
public void removeListener(ResourceListener l)
public void delete()
throws IOException,
HttpException,
NotAuthorizedException,
ConflictException,
BadRequestException,
NotFoundException
public Host host()
public String encodedName()
public String href()
public Path path()
public Date getModifiedDate()
public Date getCreatedDate()
public String getLockToken()
public String getLockOwner()
Copyright © 2021 McEvoy Software Ltd. All rights reserved.