public class RootResource extends Object implements com.bradmcevoy.http.PropFindableResource, com.bradmcevoy.http.GetableResource, com.bradmcevoy.http.CollectionResource, com.bradmcevoy.http.QuotaResource
| Constructor and Description |
|---|
RootResource(com.bradmcevoy.common.Path path) |
| Modifier and Type | Method and Description |
|---|---|
Object |
authenticate(String user,
String password) |
boolean |
authorise(com.bradmcevoy.http.Request request,
com.bradmcevoy.http.Request.Method method,
com.bradmcevoy.http.Auth auth) |
String |
checkRedirect(com.bradmcevoy.http.Request request) |
com.bradmcevoy.http.Resource |
child(String childName) |
List<? extends com.bradmcevoy.http.Resource> |
getChildren() |
Long |
getContentLength() |
String |
getContentType(String accepts) |
Date |
getCreateDate() |
Folder |
getFolder() |
Long |
getMaxAgeSeconds(com.bradmcevoy.http.Auth auth) |
Date |
getModifiedDate() |
String |
getName() |
Long |
getQuotaAvailable() |
Long |
getQuotaUsed() |
String |
getRealm() |
String |
getUniqueId() |
void |
sendContent(OutputStream out,
com.bradmcevoy.http.Range range,
Map<String,String> params,
String contentType) |
String |
toString() |
public Folder getFolder()
public String getUniqueId()
getUniqueId in interface com.bradmcevoy.http.Resourcepublic String getName()
getName in interface com.bradmcevoy.http.Resourcepublic Object authenticate(String user, String password)
authenticate in interface com.bradmcevoy.http.Resourcepublic boolean authorise(com.bradmcevoy.http.Request request,
com.bradmcevoy.http.Request.Method method,
com.bradmcevoy.http.Auth auth)
authorise in interface com.bradmcevoy.http.Resourcepublic String getRealm()
getRealm in interface com.bradmcevoy.http.Resourcepublic Date getCreateDate()
getCreateDate in interface com.bradmcevoy.http.PropFindableResourcepublic Date getModifiedDate()
getModifiedDate in interface com.bradmcevoy.http.Resourcepublic String checkRedirect(com.bradmcevoy.http.Request request)
checkRedirect in interface com.bradmcevoy.http.Resourcepublic com.bradmcevoy.http.Resource child(String childName)
child in interface com.bradmcevoy.http.CollectionResourcepublic List<? extends com.bradmcevoy.http.Resource> getChildren()
getChildren in interface com.bradmcevoy.http.CollectionResourcepublic void sendContent(OutputStream out, com.bradmcevoy.http.Range range, Map<String,String> params, String contentType) throws IOException, com.bradmcevoy.http.exceptions.NotAuthorizedException, com.bradmcevoy.http.exceptions.BadRequestException
sendContent in interface com.bradmcevoy.http.GetableResourceIOExceptioncom.bradmcevoy.http.exceptions.NotAuthorizedExceptioncom.bradmcevoy.http.exceptions.BadRequestExceptionpublic Long getMaxAgeSeconds(com.bradmcevoy.http.Auth auth)
getMaxAgeSeconds in interface com.bradmcevoy.http.GetableResourcepublic String getContentType(String accepts)
getContentType in interface com.bradmcevoy.http.GetableResourcepublic Long getContentLength()
getContentLength in interface com.bradmcevoy.http.GetableResourcepublic Long getQuotaUsed()
getQuotaUsed in interface com.bradmcevoy.http.QuotaResourcepublic Long getQuotaAvailable()
getQuotaAvailable in interface com.bradmcevoy.http.QuotaResourceCopyright © 2018 Open Knowledge Management System S.L.. All rights reserved.