| org.sakaiproject.entity.api.HttpAccess
All known Subclasses: org.sakaiproject.citation.impl.CitationListAccessServlet, org.sakaiproject.metaobj.shared.mgt.HttpAccessBase,
HttpAccess | public interface HttpAccess (Code) | |
Provide entity access via http for use in the access servlet.
|
handleAccess | void handleAccess(HttpServletRequest req, HttpServletResponse res, Reference ref, Collection copyrightAcceptedRefs) throws EntityPermissionException, EntityNotDefinedException, EntityAccessOverloadException, EntityCopyrightException(Code) | | Handle an HTTP request for access. The request and response objects are provider.
The access is for the referenced entity.
Use the response object to send the headers, length, content type, and bytes of the response in whatever manner needed.
Make the response ONLY if it is permitted and exists and otherwise valid. Use the exceptions for any error handling.
Parameters: req - The request object. Parameters: res - The response object. Parameters: ref - The entity reference Parameters: copyrightAcceptedRefs - The collection (entity reference String) of entities that the end user in this session have already accepted the copyright for. throws: EntityPermissionException - Throw this if the current user does not have permission for the access. throws: EntityNotDefinedException - Throw this if the ref is not supported or the entity is not available for access in any way. throws: EntityAccessOverloadException - Throw this if you are rejecting an otherwise valid request because of some sort of server resource shortage or limit. throws: EntityCopyrightException - Throw this if you are rejecting an otherwise valid request because the user needs to agree to the copyright and has not yet done so. |
|
|