- 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:
David Caruana
2006-12-18 19:32:33 +00:00
parent 5dcea0fbd1
commit 173e38d6ef
9 changed files with 907 additions and 545 deletions

View File

@@ -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
*