public class ZSyncResourceFactory.ZSyncAdapterResource extends Object implements GetableResource, ReplaceableResource, DigestResource
| Constructor and Description |
|---|
ZSyncAdapterResource(GetableResource r,
String realPath,
String host) |
| Modifier and Type | Method and Description |
|---|---|
Object |
authenticate(DigestResponse digestRequest) |
Object |
authenticate(String user,
String password) |
boolean |
authorise(Request request,
Request.Method method,
Auth auth) |
String |
checkRedirect(Request request) |
Long |
getContentLength() |
String |
getContentType(String accepts) |
Long |
getMaxAgeSeconds(Auth auth) |
Date |
getModifiedDate() |
String |
getName() |
String |
getRealm() |
String |
getUniqueId() |
boolean |
isDigestAllowed() |
void |
replaceContent(InputStream in,
Long length) |
void |
sendContent(OutputStream out,
Range range,
Map<String,String> params,
String contentType) |
public ZSyncAdapterResource(GetableResource r, String realPath, String host)
public void sendContent(OutputStream out, Range range, Map<String,String> params, String contentType) throws IOException, NotAuthorizedException, BadRequestException
sendContent in interface GetableResourceIOExceptionNotAuthorizedExceptionBadRequestExceptionpublic void replaceContent(InputStream in, Long length) throws BadRequestException, ConflictException, NotAuthorizedException
replaceContent in interface ReplaceableResourceBadRequestExceptionConflictExceptionNotAuthorizedExceptionpublic Long getMaxAgeSeconds(Auth auth)
getMaxAgeSeconds in interface GetableResourcepublic String getContentType(String accepts)
getContentType in interface GetableResourcepublic Long getContentLength()
getContentLength in interface GetableResourcepublic String getUniqueId()
getUniqueId in interface Resourcepublic Object authenticate(String user, String password)
authenticate in interface Resourcepublic boolean authorise(Request request, Request.Method method, Auth auth)
public Date getModifiedDate()
getModifiedDate in interface Resourcepublic String checkRedirect(Request request)
checkRedirect in interface Resourcepublic Object authenticate(DigestResponse digestRequest)
authenticate in interface DigestResourcepublic boolean isDigestAllowed()
isDigestAllowed in interface DigestResourceCopyright © 2021 McEvoy Software Ltd. All rights reserved.