git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/information-system/gCubeIS/Registry@4482 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
522c3e5e0a
commit
0acb0fe142
|
@ -136,7 +136,7 @@ public class RegistryFactory{
|
||||||
resource = ResourceType.valueOf(mess.getType()).getResourceClass();
|
resource = ResourceType.valueOf(mess.getType()).getResourceClass();
|
||||||
resource.load(new BufferedReader(new InputStreamReader(new ByteArrayInputStream(profile.getBytes("UTF-8")), "UTF-8")));
|
resource.load(new BufferedReader(new InputStreamReader(new ByteArrayInputStream(profile.getBytes("UTF-8")), "UTF-8")));
|
||||||
|
|
||||||
if (mess.getType().compareTo("GenericResource")==0){
|
if (mess.getType().compareTo(GCUBEGenericResource.TYPE)==0){
|
||||||
System.out.println(((GCUBEGenericResource) resource).getBody());
|
System.out.println(((GCUBEGenericResource) resource).getBody());
|
||||||
}
|
}
|
||||||
//the parse Profile class allows to extract from profiles information about type/SCOPE/UniqueID
|
//the parse Profile class allows to extract from profiles information about type/SCOPE/UniqueID
|
||||||
|
|
|
@ -75,7 +75,7 @@ public class ProfileResource extends GCUBEWSResource {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
resource.store(writer);
|
resource.store(writer);
|
||||||
|
System.out.println("create Profile "+ writer.toString());
|
||||||
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
||||||
factory.setNamespaceAware(true);
|
factory.setNamespaceAware(true);
|
||||||
DocumentBuilder builder = factory.newDocumentBuilder();
|
DocumentBuilder builder = factory.newDocumentBuilder();
|
||||||
|
|
Loading…
Reference in New Issue