public class DavResource extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_CONTENT_LENGTH
The default content-lenght if
Getcontentlength is not set in
the Multistatus response. |
static String |
DEFAULT_CONTENT_TYPE
The default content-type if
Getcontenttype is not set in
the Multistatus response. |
static String |
HTTPD_UNIX_DIRECTORY_CONTENT_TYPE
content-type for
Collection. |
| Modifier | Constructor and Description |
|---|---|
|
DavResource(Response response)
Converts the given
Response to a DavResource. |
protected |
DavResource(String href,
Date creation,
Date modified,
String contentType,
Long contentLength,
String etag,
Map<QName,String> customProps)
Represents a webdav response block.
|
| Modifier and Type | Method and Description |
|---|---|
Long |
getContentLength() |
String |
getContentType() |
Date |
getCreation() |
Map<String,String> |
getCustomProps() |
Map<QName,String> |
getCustomPropsNS() |
String |
getEtag() |
URI |
getHref() |
Date |
getModified() |
String |
getName()
Last path component.
|
String |
getPath() |
boolean |
isDirectory()
Implementation assumes that every resource with a content type of
httpd/unix-directory is a directory. |
String |
toString() |
public static final String DEFAULT_CONTENT_TYPE
Getcontenttype is not set in
the Multistatus response.public static final long DEFAULT_CONTENT_LENGTH
Getcontentlength is not set in
the Multistatus response.public static final String HTTPD_UNIX_DIRECTORY_CONTENT_TYPE
Collection.protected DavResource(String href, Date creation, Date modified, String contentType, Long contentLength, String etag, Map<QName,String> customProps) throws URISyntaxException
href - URI to the resource as returned from the serverURISyntaxException - If parsing the href from the response element failspublic DavResource(Response response) throws URISyntaxException
Response to a DavResource.response - The response complex type of the multistatusURISyntaxException - If parsing the href from the response element failspublic Date getCreation()
public Date getModified()
public String getContentType()
public Long getContentLength()
public String getEtag()
public boolean isDirectory()
httpd/unix-directory is a directory.public Map<String,String> getCustomProps()
public Map<QName,String> getCustomPropsNS()
public URI getHref()
public String getName()
getHref()public String getPath()
getHref()Copyright © 2013. All Rights Reserved.