Package org.atomojo.app.client

Examples of org.atomojo.app.client.XMLRepresentationParser.load()


        
         // copy the entries
         Iterator<Entry> entries = source.getEntries();
         while (entries.hasNext()) {
            Entry entry = entries.next();
            Document entryDoc = parser.load(app.getEntryRepresentation("", entry));
            Iterator<EntryMedia> mediaResources = entry.getResources();
            if (mediaResources.hasNext()) {
               // we have a media entry and so copy the media
               EntryMedia media = mediaResources.next();
               Representation mediaRep = app.getStorage().getMedia(source.getPath(), source.getUUID(), media.getName());
View Full Code Here


  
   public static Identity createIdentity(Representation entity)
      throws IOException,XMLException
   {
      XMLRepresentationParser parser = new XMLRepresentationParser();
      Document doc = parser.load(entity);
      String session = doc.getDocumentElement().getAttributeValue("id");
      String id = doc.getDocumentElement().getAttributeValue("user-id");
      String alias = doc.getDocumentElement().getAttributeValue("user-alias");
      Element nameE = doc.getDocumentElement().getFirstElementNamed(IdentityFilter.NAME);
      Element emailE = doc.getDocumentElement().getFirstElementNamed(IdentityFilter.EMAIL);
View Full Code Here

         String path = request.getResourceRef().getPath();
         path = path.substring(0,path.length()-1);
         getLogger().info("Manipulating service document to adjust to path: "+path);
         try {
            XMLRepresentationParser parser = new XMLRepresentationParser();
            Document introspection = parser.load(appResponse.getEntity());
            Iterator<Element> workspaces = introspection.getDocumentElement().getElementsByName(WORKSPACE);
            while (workspaces.hasNext()) {
               Element workspace = workspaces.next();
               Iterator<Element> collections = workspace.getElementsByName(COLLECTION);
               while (collections.hasNext()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.