public interface Resource extends Comparable<Resource>
| Modifier and Type | Method and Description |
|---|---|
Object |
authenticate(String user,
String password)
Check the given credentials, and return a relevant object if accepted.
|
boolean |
authorise(Request request,
Request.Method method,
Auth auth)
Return true if the current user is permitted to access this resource using
the specified method.
|
String |
checkRedirect(Request request)
Determine if a redirect is required for this request, and if so return
the URL to redirect to.
|
Date |
getModifiedDate()
The date and time that this resource, or any part of this resource, was last
modified.
|
String |
getName()
Note that this name MUST be consistent with URL resolution in your ResourceFactory
If they arent consistent Milton will generate a different href in PropFind
responses then what clients have request and this will cause either an
error or no resources to be displayed
|
String |
getRealm()
Return the security realm for this resource.
|
String |
getUniqueId() |
compareToString getUniqueId()
String getName()
Object authenticate(String user, String password)
user - - the username provided by the user's agentpassword - - the password provided by the user's agentboolean authorise(Request request, Request.Method method, Auth auth)
String getRealm()
Date getModifiedDate()
Copyright © 2015. All rights reserved.