Interface HttpServletAccessProvider


  • public interface HttpServletAccessProvider
    Deprecated.
    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 Detail

      • handleAccess

        void handleAccess​(HttpServletRequest req,
                          HttpServletResponse res,
                          EntityReference ref)
        Deprecated.
        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