org.apache.chemistry.opencmis.commons.spi
Interface AuthenticationProvider

All Superinterfaces:
Serializable

public interface AuthenticationProvider
extends Serializable

Authentication provider interface.


Method Summary
 Map<String,List<String>> getHTTPHeaders(String url)
          Returns a set of HTTP headers (key-value pairs) that should be added to a HTTP call.
 Element getSOAPHeaders(Object portObject)
          Returns a SOAP header that should be added to a Web Services call.
 void putResponseHeaders(String url, int statusCode, Map<String,List<String>> headers)
          Receives the HTTP headers after a call.
 

Method Detail

getHTTPHeaders

Map<String,List<String>> getHTTPHeaders(String url)
Returns a set of HTTP headers (key-value pairs) that should be added to a HTTP call. This will be called by the AtomPub and the Web Services binding. You might want to check the binding in use before you set the headers.

Parameters:
url - the URL of the HTTP call
Returns:
the HTTP headers or null if no additional headers should be set

getSOAPHeaders

Element getSOAPHeaders(Object portObject)
Returns a SOAP header that should be added to a Web Services call.

Parameters:
portObject - the port object
Returns:
the SOAP headers or null if no additional headers should be set

putResponseHeaders

void putResponseHeaders(String url,
                        int statusCode,
                        Map<String,List<String>> headers)
Receives the HTTP headers after a call.

Parameters:
url - the URL
statusCode - the status code
headers - the HTTP headers


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.