mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- Spring driven (configure in new web api methods)
- Support for authentication - HTTP Basic authentication implementation git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4645 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -18,8 +18,6 @@ package org.alfresco.web.api;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.servlet.ServletContext;
|
||||
|
||||
/**
|
||||
* API Service
|
||||
*
|
||||
@@ -29,13 +27,26 @@ public interface APIService
|
||||
{
|
||||
|
||||
/**
|
||||
* Initialise service
|
||||
* Gets the required authentication level for execution of this service
|
||||
*
|
||||
* @param context
|
||||
* @return the required authentication level
|
||||
*/
|
||||
public void init(ServletContext context);
|
||||
|
||||
public APIRequest.RequiredAuthentication getRequiredAuthentication();
|
||||
|
||||
/**
|
||||
* Gets the HTTP method this service is bound to
|
||||
*
|
||||
* @return HTTP method
|
||||
*/
|
||||
public APIRequest.HttpMethod getHttpMethod();
|
||||
|
||||
/**
|
||||
* Gets the HTTP uri this service is bound to
|
||||
*
|
||||
* @return HTTP uri
|
||||
*/
|
||||
public String getHttpUri();
|
||||
|
||||
/**
|
||||
* Execute service
|
||||
*
|
||||
|
Reference in New Issue
Block a user