This commit is contained in:
Lucio Lelii 2008-10-09 22:26:23 +00:00
parent 522c3e5e0a
commit 0acb0fe142
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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();