Added addHeader in the interface

This commit is contained in:
Luca Frosini 2023-03-01 14:24:04 +01:00
parent 2084b6d913
commit a61912147c
2 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,8 @@ import org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.Cont
*/
public interface ResourceRegistryContextClient {
public void addHeader(String name, String value);
public List<Context> all() throws ResourceRegistryException;
public Context create(Context context) throws ContextAlreadyPresentException, ResourceRegistryException;

View File

@ -50,6 +50,7 @@ public class ResourceRegistryContextClientImpl implements ResourceRegistryContex
};
@Override
public void addHeader(String name, String value) {
headers.put(name, value);
}