Added addHeader in the interface
This commit is contained in:
parent
ac4b3ac056
commit
23c715a204
|
@ -14,6 +14,8 @@ import org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templ
|
||||||
*/
|
*/
|
||||||
public interface ResourceRegistryQueryTemplateClient {
|
public interface ResourceRegistryQueryTemplateClient {
|
||||||
|
|
||||||
|
public void addHeader(String name, String value);
|
||||||
|
|
||||||
public List<QueryTemplate> all() throws ResourceRegistryException;
|
public List<QueryTemplate> all() throws ResourceRegistryException;
|
||||||
|
|
||||||
public QueryTemplate create(QueryTemplate queryTemplate) throws QueryTemplateAlreadyPresentException, ResourceRegistryException;
|
public QueryTemplate create(QueryTemplate queryTemplate) throws QueryTemplateAlreadyPresentException, ResourceRegistryException;
|
||||||
|
|
|
@ -38,6 +38,7 @@ public class ResourceRegistryQueryTemplateClientImpl implements ResourceRegistry
|
||||||
|
|
||||||
protected Map<String, String> headers;
|
protected Map<String, String> headers;
|
||||||
|
|
||||||
|
@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