Added addHeader in the interface
This commit is contained in:
parent
2084b6d913
commit
a61912147c
|
@ -13,6 +13,8 @@ import org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.Cont
|
||||||
*/
|
*/
|
||||||
public interface ResourceRegistryContextClient {
|
public interface ResourceRegistryContextClient {
|
||||||
|
|
||||||
|
public void addHeader(String name, String value);
|
||||||
|
|
||||||
public List<Context> all() throws ResourceRegistryException;
|
public List<Context> all() throws ResourceRegistryException;
|
||||||
|
|
||||||
public Context create(Context context) throws ContextAlreadyPresentException, ResourceRegistryException;
|
public Context create(Context context) throws ContextAlreadyPresentException, ResourceRegistryException;
|
||||||
|
|
|
@ -50,6 +50,7 @@ public class ResourceRegistryContextClientImpl implements ResourceRegistryContex
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@Override
|
||||||
public void addHeader(String name, String value) {
|
public void addHeader(String name, String value) {
|
||||||
headers.put(name, value);
|
headers.put(name, value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue