Commits

Clayton Sims committed 5b5a2d3

Update to transport messages to manually set the OR API compliance string

Comments (0)

Files changed (2)

j2me/communication/src/org/javarosa/services/transport/impl/simplehttp/SimpleHttpTransportMessage.java

 	 * An http url, to which the message will be POSTed
 	 */
 	private String url;
+	
+	private String orApiVersion = "1.0";
 
 	/**
 	 * Http response code
 	}
 
 	public HttpRequestProperties getRequestProperties() {
-		return new HttpRequestProperties(this.getConnectionMethod(), this.getContentLength(), "1.0");
+		return new HttpRequestProperties(this.getConnectionMethod(), this.getContentLength(), orApiVersion);
 	}
 	
 	public HttpRequestProperties getResponseProperties() {
 		return content;
 	}
 	
+	public void setOpenRosaApiVersion(String orApiVersion) {
+		this.orApiVersion = orApiVersion;
+	}
+	
 	public int getContentLength() {
 		if(this.getContent() != null) {
 			return getContent().length;

j2me/javarosa-app/src/org/javarosa/demo/applogic/JRDemoGetFormListHTTPState.java

 
 	public void fetchList() {
 		SimpleHttpTransportMessage message = new SimpleHttpTransportMessage(getListUrl);
+		message.setOpenRosaApiVersion(null);
 
 		try {
 			thread = TransportService.send(message, 1, 0);// only one try if