jet.server.api.http
Interface SendFileAuthorizor


public interface SendFileAuthorizor

This interface provides methods to judge if a user has the right to access a specific file by using SendFileServlet. Since version 8.0, jet.server.api.SendFileAuthorizor is replaced by this interface.


Method Summary
 boolean isAuthorized(java.lang.String userID, java.lang.String _path, HttpRptServer httpRptServer)
          Judges if a user has the right to access a specific file by using SendFileServlet.
 

Method Detail

isAuthorized

boolean isAuthorized(java.lang.String userID,
                     java.lang.String _path,
                     HttpRptServer httpRptServer)
Judges if a user has the right to access a specific file by using SendFileServlet.

Parameters:
userID - the user ID.
_path - the full path of the file.
httpRptServer - the server instance.
Returns:
if a user has the right to access a specific file by using SendFileServlet.