public class ClassPathResourceFactory.ClassPathResource extends Object implements GetableResource, DigestResource, PostableResource
| Constructor and Description |
|---|
ClassPathResource(String host,
Path path,
InputStream content) |
| 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 preferredList) |
Long |
getMaxAgeSeconds(Auth auth) |
Date |
getModifiedDate() |
String |
getName() |
String |
getRealm() |
String |
getUniqueId() |
boolean |
isDigestAllowed() |
String |
processForm(Map<String,String> parameters,
Map<String,FileItem> files) |
void |
sendContent(OutputStream out,
Range range,
Map<String,String> params,
String contentType) |
public ClassPathResource(String host, Path path, InputStream content)
public void sendContent(OutputStream out, Range range, Map<String,String> params, String contentType) throws IOException, NotAuthorizedException, BadRequestException
sendContent in interface GetableResourceIOExceptionNotAuthorizedExceptionBadRequestExceptionpublic Long getMaxAgeSeconds(Auth auth)
getMaxAgeSeconds in interface GetableResourcepublic String getContentType(String preferredList)
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 DigestResourcepublic String processForm(Map<String,String> parameters, Map<String,FileItem> files) throws BadRequestException, NotAuthorizedException, ConflictException
processForm in interface PostableResourceBadRequestExceptionNotAuthorizedExceptionConflictExceptionCopyright © 2021 McEvoy Software Ltd. All rights reserved.