public class DavResource extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_CONTENT_LENGTH
The default content-length 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 int |
DEFAULT_STATUS_CODE
The default status code if
Response.getStatus() 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,
String displayName,
List<QName> resourceTypes,
String contentLanguage,
List<QName> supportedReports,
Map<QName,String> customProps)
Represents a webdav response block.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContentLanguage() |
Long |
getContentLength() |
String |
getContentType() |
Date |
getCreation() |
Map<String,String> |
getCustomProps() |
Map<QName,String> |
getCustomPropsNS() |
String |
getDisplayName() |
String |
getEtag() |
URI |
getHref() |
Date |
getModified() |
String |
getName()
Last path component.
|
String |
getPath() |
List<QName> |
getResourceTypes() |
int |
getStatusCode() |
List<QName> |
getSupportedReports() |
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.public static final int DEFAULT_STATUS_CODE
Response.getStatus() is not set in
the Multistatus response.protected DavResource(String href, Date creation, Date modified, String contentType, Long contentLength, String etag, String displayName, List<QName> resourceTypes, String contentLanguage, List<QName> supportedReports, 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 int getStatusCode()
public Date getCreation()
public Date getModified()
public String getContentType()
public Long getContentLength()
public String getEtag()
public String getContentLanguage()
public String getDisplayName()
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 © 2019. All rights reserved.