org.sakaiproject.entitybroker.access
Interface HttpServletAccessProvider


Deprecated. Use EntityViewAccessProvider instead

public interface HttpServletAccessProvider

Represents a bean which is capable of handling direct HTTP access for an entity.

This interface would be typically implemented from a tool (webapp) context, and registered with the HttpServletAccessProviderManager in a context loader listener.

If the implementation throws a SecurityException during the course of this method, the access will be directed to a login page or authentication method before being redirected to the tool.

Author:
Antranig Basman (antranig@caret.cam.ac.uk), Aaron Zeckoski (aaron@caret.cam.ac.uk)

Method Summary
 void handleAccess(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, EntityReference ref)
          Deprecated. Use EntityViewAccessProvider instead
 

Method Detail

handleAccess

void handleAccess(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res,
                  EntityReference ref)
Deprecated. Use EntityViewAccessProvider instead

Make and return the data responses for this type of data provider for a specific entity reference, use the request to get any additional sent in information you may need or want and use the response to hold the output you generate

Parameters:
ref - an entity reference
req - the servlet request (available in case you need to get anything out of it)
res - the servlet response, put the correct data response into the outputstream
Throws:
FormatUnsupportedException - if the format requested in the view is not supported
EntityException - if there is a request processing/handling failure


Copyright © 2007-2012 Sakai Project. All Rights Reserved.