2006/unicorn/src/org/w3c/unicorn/contract WADLUnmarshallerXPath.java,1.4,1.5 WADLUnmarshaller.java,1.3,1.4

Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/contract
In directory hutz:/tmp/cvs-serv26854/src/org/w3c/unicorn/contract

Modified Files:
	WADLUnmarshallerXPath.java WADLUnmarshaller.java 
Log Message:
extracts the index page uri of an observer based on the "base" attribute of the "resources" tag

Index: WADLUnmarshallerXPath.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/contract/WADLUnmarshallerXPath.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- WADLUnmarshallerXPath.java	23 Sep 2009 09:16:29 -0000	1.4
+++ WADLUnmarshallerXPath.java	19 Oct 2009 17:16:35 -0000	1.5
@@ -105,6 +105,8 @@
 	 */
 	private Map<EnumInputMethod, InputMethod> mapOfInputMethod = new LinkedHashMap<EnumInputMethod, InputMethod>();
 
+	private String indexURI;
+	
 	/**
 	 * Create the object to Unmarshall WADL with XPATH
 	 * 
@@ -233,6 +235,8 @@
 				"resources").item(0);
 		final String sBaseURI = aNodeResource.getAttributes().getNamedItem(
 				"base").getNodeValue();
+		
+		indexURI = sBaseURI;
 
 		final NodeList aNodeListMethod = this.aDocument
 				.getElementsByTagName("method");
@@ -441,4 +445,8 @@
 		this.nameOfOutputParameter = nameOfOutputParameter;
 	}
 
+	public String getIndexUri() {
+		return indexURI;
+	}
+
 }

Index: WADLUnmarshaller.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/contract/WADLUnmarshaller.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- WADLUnmarshaller.java	18 Sep 2009 17:17:59 -0000	1.3
+++ WADLUnmarshaller.java	19 Oct 2009 17:16:35 -0000	1.4
@@ -43,4 +43,6 @@
 
 	public List<MimeType> getSupportedMimeTypes();
 
+	public String getIndexUri();
+
 }

Received on Monday, 19 October 2009 17:16:39 UTC