Package io.milton.servlet
Class StaticResource
java.lang.Object
io.milton.servlet.StaticResource
- All Implemented Interfaces:
GetableResource,Resource
Used to provide access to static files via Milton
For a full implementation of webdav on a filesystem use the milton-filesysten
project
- Author:
- brad
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(String user, String password) booleanauthorise(Request request, Request.Method method, Auth auth) checkRedirect(Request request) intgetContentType(String preferredList) getMaxAgeSeconds(Auth auth) getName()getRealm()voidsendContent(OutputStream out, Range range, Map<String, String> params, String contentType)
-
Constructor Details
-
StaticResource
-
-
Method Details
-
getUniqueId
- Specified by:
getUniqueIdin interfaceResource
-
compareTo
-
sendContent
public void sendContent(OutputStream out, Range range, Map<String, String> params, String contentType) throws IOException- Specified by:
sendContentin interfaceGetableResource- Throws:
IOException
-
getName
-
authenticate
- Specified by:
authenticatein interfaceResource
-
authorise
-
getRealm
-
getModifiedDate
- Specified by:
getModifiedDatein interfaceResource
-
getContentLength
- Specified by:
getContentLengthin interfaceGetableResource
-
getContentType
- Specified by:
getContentTypein interfaceGetableResource
-
checkRedirect
- Specified by:
checkRedirectin interfaceResource
-
getMaxAgeSeconds
- Specified by:
getMaxAgeSecondsin interfaceGetableResource
-
getLockToken
-