public class MailResource extends Object implements com.bradmcevoy.http.CopyableResource, com.bradmcevoy.http.DeletableResource, com.bradmcevoy.http.GetableResource, com.bradmcevoy.http.MoveableResource, com.bradmcevoy.http.PropFindableResource, com.bradmcevoy.http.PropPatchableResource, com.bradmcevoy.http.QuotaResource
Constructor and Description |
---|
MailResource(Mail mail) |
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) |
void |
copyTo(com.bradmcevoy.http.CollectionResource newParent,
String newName) |
void |
delete() |
Long |
getContentLength() |
String |
getContentType(String accepts) |
Date |
getCreateDate() |
Long |
getMaxAgeSeconds(com.bradmcevoy.http.Auth auth) |
Date |
getModifiedDate() |
String |
getName() |
Long |
getQuotaAvailable() |
Long |
getQuotaUsed() |
String |
getRealm() |
String |
getUniqueId() |
void |
moveTo(com.bradmcevoy.http.CollectionResource newParent,
String newName) |
void |
sendContent(OutputStream out,
com.bradmcevoy.http.Range range,
Map<String,String> params,
String contentType) |
void |
setProperties(com.bradmcevoy.http.webdav.PropPatchHandler.Fields fields) |
String |
toString() |
public MailResource(Mail mail)
public String getUniqueId()
getUniqueId
in interface com.bradmcevoy.http.Resource
public String getName()
getName
in interface com.bradmcevoy.http.Resource
public Object authenticate(String user, String password)
authenticate
in interface com.bradmcevoy.http.Resource
public boolean authorise(com.bradmcevoy.http.Request request, com.bradmcevoy.http.Request.Method method, com.bradmcevoy.http.Auth auth)
authorise
in interface com.bradmcevoy.http.Resource
public String getRealm()
getRealm
in interface com.bradmcevoy.http.Resource
public Date getCreateDate()
getCreateDate
in interface com.bradmcevoy.http.PropFindableResource
public Date getModifiedDate()
getModifiedDate
in interface com.bradmcevoy.http.Resource
public String checkRedirect(com.bradmcevoy.http.Request request)
checkRedirect
in interface com.bradmcevoy.http.Resource
public Long getMaxAgeSeconds(com.bradmcevoy.http.Auth auth)
getMaxAgeSeconds
in interface com.bradmcevoy.http.GetableResource
public String getContentType(String accepts)
getContentType
in interface com.bradmcevoy.http.GetableResource
public Long getContentLength()
getContentLength
in interface com.bradmcevoy.http.GetableResource
public 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.GetableResource
IOException
com.bradmcevoy.http.exceptions.NotAuthorizedException
com.bradmcevoy.http.exceptions.BadRequestException
public void delete() throws com.bradmcevoy.http.exceptions.NotAuthorizedException, com.bradmcevoy.http.exceptions.ConflictException, com.bradmcevoy.http.exceptions.BadRequestException
delete
in interface com.bradmcevoy.http.DeletableResource
com.bradmcevoy.http.exceptions.NotAuthorizedException
com.bradmcevoy.http.exceptions.ConflictException
com.bradmcevoy.http.exceptions.BadRequestException
public void setProperties(com.bradmcevoy.http.webdav.PropPatchHandler.Fields fields)
setProperties
in interface com.bradmcevoy.http.PropPatchableResource
public void moveTo(com.bradmcevoy.http.CollectionResource newParent, String newName) throws com.bradmcevoy.http.exceptions.ConflictException, com.bradmcevoy.http.exceptions.NotAuthorizedException, com.bradmcevoy.http.exceptions.BadRequestException
moveTo
in interface com.bradmcevoy.http.MoveableResource
com.bradmcevoy.http.exceptions.ConflictException
com.bradmcevoy.http.exceptions.NotAuthorizedException
com.bradmcevoy.http.exceptions.BadRequestException
public void copyTo(com.bradmcevoy.http.CollectionResource newParent, String newName) throws com.bradmcevoy.http.exceptions.NotAuthorizedException, com.bradmcevoy.http.exceptions.BadRequestException, com.bradmcevoy.http.exceptions.ConflictException
copyTo
in interface com.bradmcevoy.http.CopyableResource
com.bradmcevoy.http.exceptions.NotAuthorizedException
com.bradmcevoy.http.exceptions.BadRequestException
com.bradmcevoy.http.exceptions.ConflictException
public Long getQuotaUsed()
getQuotaUsed
in interface com.bradmcevoy.http.QuotaResource
public Long getQuotaAvailable()
getQuotaAvailable
in interface com.bradmcevoy.http.QuotaResource
Copyright © 2016. All rights reserved.