Added addHeader in the interface
This commit is contained in:
parent
9be6bfa8ec
commit
76873d9787
|
@ -13,6 +13,8 @@ import org.gcube.informationsystem.types.reference.Type;
|
||||||
*/
|
*/
|
||||||
public interface ResourceRegistrySchemaClient {
|
public interface ResourceRegistrySchemaClient {
|
||||||
|
|
||||||
|
public void addHeader(String name, String value);
|
||||||
|
|
||||||
public String create(String typeDefinitition) throws SchemaException, ResourceRegistryException;
|
public String create(String typeDefinitition) throws SchemaException, ResourceRegistryException;
|
||||||
|
|
||||||
public <E extends Element> Type create(Class<E> clz) throws SchemaException, ResourceRegistryException;
|
public <E extends Element> Type create(Class<E> clz) throws SchemaException, ResourceRegistryException;
|
||||||
|
|
|
@ -37,6 +37,7 @@ public class ResourceRegistrySchemaClientImpl implements ResourceRegistrySchemaC
|
||||||
|
|
||||||
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