Package io.milton.http.fs
Class ClassPathResourceFactory.ClassPathResource
java.lang.Object
io.milton.http.fs.ClassPathResourceFactory.ClassPathResource
- All Implemented Interfaces:
DigestResource,GetableResource,PostableResource,Resource
- Enclosing class:
- ClassPathResourceFactory
public class ClassPathResourceFactory.ClassPathResource
extends Object
implements GetableResource, DigestResource, PostableResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(DigestResponse digestRequest) authenticate(String user, String password) booleanauthorise(Request request, Request.Method method, Auth auth) checkRedirect(Request request) getContentType(String preferredList) getMaxAgeSeconds(Auth auth) getName()getRealm()booleanvoidsendContent(OutputStream out, Range range, Map<String, String> params, String contentType)
-
Constructor Details
-
ClassPathResource
-
-
Method Details
-
sendContent
public void sendContent(OutputStream out, Range range, Map<String, String> params, String contentType) throws IOException, NotAuthorizedException, BadRequestException- Specified by:
sendContentin interfaceGetableResource- Throws:
IOExceptionNotAuthorizedExceptionBadRequestException
-
getMaxAgeSeconds
- Specified by:
getMaxAgeSecondsin interfaceGetableResource
-
getContentType
- Specified by:
getContentTypein interfaceGetableResource
-
getContentLength
- Specified by:
getContentLengthin interfaceGetableResource
-
getUniqueId
- Specified by:
getUniqueIdin interfaceResource
-
getName
-
authenticate
- Specified by:
authenticatein interfaceResource
-
authorise
-
getRealm
-
getModifiedDate
- Specified by:
getModifiedDatein interfaceResource
-
checkRedirect
- Specified by:
checkRedirectin interfaceResource
-
authenticate
- Specified by:
authenticatein interfaceDigestResource
-
isDigestAllowed
public boolean isDigestAllowed()- Specified by:
isDigestAllowedin interfaceDigestResource
-
processForm
public String processForm(Map<String, String> parameters, Map<String, throws BadRequestException, NotAuthorizedException, ConflictExceptionFileItem> files) - Specified by:
processFormin interfacePostableResource- Throws:
BadRequestExceptionNotAuthorizedExceptionConflictException
-