public class ServletResource extends Object implements GetableResource
| Constructor and Description |
|---|
ServletResource(File file,
String localPath,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse response) |
ServletResource(String localPath,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse response) |
| Modifier and Type | Method and Description |
|---|---|
Object |
authenticate(String user,
String password) |
boolean |
authorise(Request request,
Request.Method method,
Auth auth) |
String |
checkRedirect(Request request) |
int |
compareTo(Resource res) |
Long |
getContentLength() |
String |
getContentType(String preferredList) |
LockToken |
getLockToken() |
Long |
getMaxAgeSeconds(Auth auth) |
Date |
getModifiedDate() |
String |
getName() |
String |
getRealm() |
String |
getUniqueId() |
void |
sendContent(OutputStream out,
Range range,
Map<String,String> params,
String contentType) |
public ServletResource(File file, String localPath, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse response)
public ServletResource(String localPath, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse response)
public String getUniqueId()
getUniqueId in interface Resourcepublic int compareTo(Resource res)
public void sendContent(OutputStream out, Range range, Map<String,String> params, String contentType) throws IOException
sendContent in interface GetableResourceIOExceptionpublic 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 Long getContentLength()
getContentLength in interface GetableResourcepublic String getContentType(String preferredList)
getContentType in interface GetableResourcepublic String checkRedirect(Request request)
checkRedirect in interface Resourcepublic Long getMaxAgeSeconds(Auth auth)
getMaxAgeSeconds in interface GetableResourcepublic LockToken getLockToken()
Copyright © 2021 McEvoy Software Ltd. All rights reserved.