Revision 7b27f0dc src/com/rackspace/cloud/files/api/client/parsers/ContainerObjectXMLparser.java
b/src/com/rackspace/cloud/files/api/client/parsers/ContainerObjectXMLparser.java | ||
---|---|---|
4 | 4 |
import java.util.HashMap; |
5 | 5 |
import java.util.Map; |
6 | 6 |
|
7 |
import javax.security.auth.Subject; |
|
8 |
|
|
7 | 9 |
import org.xml.sax.Attributes; |
8 | 10 |
import org.xml.sax.helpers.DefaultHandler; |
9 | 11 |
|
... | ... | |
31 | 33 |
} |
32 | 34 |
|
33 | 35 |
public void endDocument() { |
34 |
Log.v(LOG, "endDocument = true");
|
|
36 |
Log.v(LOG, "endDocument = true "+files);
|
|
35 | 37 |
} |
36 | 38 |
|
37 | 39 |
public void startElement(String uri, String name, String qName, |
... | ... | |
45 | 47 |
} else if ("x_object_meta".equals(name)) { |
46 | 48 |
metadata = new HashMap<String, String>(); |
47 | 49 |
} |
50 |
else if ("subdir".equals(name)) { |
|
51 |
Log.i(LOG, "inside:"+name+" "+atts.getValue(0)); |
|
52 |
object = new ContainerObjects(); |
|
53 |
object.setSubDir(true); |
|
54 |
Log.i(LOG,true+" "+atts.getLength()); |
|
55 |
for(int i=0;i<atts.getLength();i++){ |
|
56 |
Log.i(LOG,true+" "+atts.getQName(i)+" "+atts.getLocalName(i)+" "+atts.getValue(i)); |
|
57 |
if(atts.getLocalName(i).equals("name")){ |
|
58 |
object.setName(atts.getValue(i)); |
|
59 |
break; |
|
60 |
} |
|
61 |
} |
|
62 |
object.setCName(object.getName()); |
|
63 |
files.add(object); |
|
64 |
Log.i(LOG,"set name:"+object.getName()); |
|
65 |
object=null; |
|
66 |
} |
|
48 | 67 |
} |
49 | 68 |
|
50 | 69 |
public void endElement(String uri, String name, String qName) { |
Also available in: Unified diff