Merge branch 'master' of gitea@code-repo.d4science.org:gCubeSystem/resource-registry-context-client.git

This commit is contained in:
Luca Frosini 2023-03-02 14:51:48 +01:00
commit f445b1765e
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

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