Merge branch 'master' of gitea@code-repo.d4science.org:gCubeSystem/resource-registry-schema-client.git
This commit is contained in:
commit
0bd6be8c3f
|
@ -13,6 +13,8 @@ import org.gcube.informationsystem.types.reference.Type;
|
|||
*/
|
||||
public interface ResourceRegistrySchemaClient {
|
||||
|
||||
public void addHeader(String name, String value);
|
||||
|
||||
public String create(String typeDefinitition) 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;
|
||||
|
||||
@Override
|
||||
public void addHeader(String name, String value) {
|
||||
headers.put(name, value);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue