diff --git a/edexOsgi/com.raytheon.uf.edex.datadelivery.harvester/utility/common_static/base/datadelivery/WFSServiceConfig.xml b/edexOsgi/com.raytheon.uf.edex.datadelivery.harvester/utility/common_static/base/datadelivery/WFSServiceConfig.xml
index 4e8ca8b76e..1a4961f263 100644
--- a/edexOsgi/com.raytheon.uf.edex.datadelivery.harvester/utility/common_static/base/datadelivery/WFSServiceConfig.xml
+++ b/edexOsgi/com.raytheon.uf.edex.datadelivery.harvester/utility/common_static/base/datadelivery/WFSServiceConfig.xml
@@ -2,7 +2,7 @@
- yyyy-MM-dd'T'HH:mm:ss.SSSZ
+ yyyy-MM-dd'T'HH:mm:ss.SSS
@@ -35,6 +35,6 @@
-
+
\ No newline at end of file
diff --git a/edexOsgi/com.raytheon.uf.edex.dataprovideragent/.classpath b/edexOsgi/com.raytheon.uf.edex.dataprovideragent/.classpath
index e27aa38055..ad32c83a78 100644
--- a/edexOsgi/com.raytheon.uf.edex.dataprovideragent/.classpath
+++ b/edexOsgi/com.raytheon.uf.edex.dataprovideragent/.classpath
@@ -2,4 +2,6 @@
+
+
diff --git a/edexOsgi/com.raytheon.uf.edex.dataprovideragent/META-INF/MANIFEST.MF b/edexOsgi/com.raytheon.uf.edex.dataprovideragent/META-INF/MANIFEST.MF
index b55c014926..5e023f1521 100644
--- a/edexOsgi/com.raytheon.uf.edex.dataprovideragent/META-INF/MANIFEST.MF
+++ b/edexOsgi/com.raytheon.uf.edex.dataprovideragent/META-INF/MANIFEST.MF
@@ -5,9 +5,3 @@ Bundle-SymbolicName: com.raytheon.uf.edex.dataprovideragent
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: RAYTHEON
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
-Require-Bundle: com.raytheon.uf.edex.purgesrv;bundle-version="1.12.1174",
- com.raytheon.uf.edex.core;bundle-version="1.12.1174",
- com.raytheon.uf.common.util;bundle-version="1.12.1174",
- com.raytheon.uf.common.dataplugin;bundle-version="1.12.1174",
- com.raytheon.uf.common.registry.ebxml;bundle-version="1.0.0",
- com.raytheon.uf.common.datadelivery.request;bundle-version="1.0.0"
diff --git a/edexOsgi/com.raytheon.uf.edex.dataprovideragent/src/com/raytheon/uf/edex/dataprovideragent/package-info.java b/edexOsgi/com.raytheon.uf.edex.dataprovideragent/src/com/raytheon/uf/edex/dataprovideragent/package-info.java
new file mode 100644
index 0000000000..acda1b0695
--- /dev/null
+++ b/edexOsgi/com.raytheon.uf.edex.dataprovideragent/src/com/raytheon/uf/edex/dataprovideragent/package-info.java
@@ -0,0 +1,5 @@
+//
+// Placeholder for src directory
+//
+
+package com.raytheon.uf.edex.dataprovideragent;
diff --git a/edexOsgi/com.raytheon.uf.edex.ogc.registry/src/com/raytheon/uf/edex/ogc/registry/RegistryFeatureTypeModifier.java b/edexOsgi/com.raytheon.uf.edex.ogc.registry/src/com/raytheon/uf/edex/ogc/registry/RegistryFeatureTypeModifier.java
index 82c807e628..3e60c370c7 100644
--- a/edexOsgi/com.raytheon.uf.edex.ogc.registry/src/com/raytheon/uf/edex/ogc/registry/RegistryFeatureTypeModifier.java
+++ b/edexOsgi/com.raytheon.uf.edex.ogc.registry/src/com/raytheon/uf/edex/ogc/registry/RegistryFeatureTypeModifier.java
@@ -21,8 +21,10 @@ package com.raytheon.uf.edex.ogc.registry;
import java.util.List;
+import com.raytheon.uf.common.datadelivery.harvester.Agent;
import com.raytheon.uf.common.datadelivery.harvester.ConfigLayer;
import com.raytheon.uf.common.datadelivery.harvester.HarvesterConfig;
+import com.raytheon.uf.common.datadelivery.harvester.HarvesterConfigurationManager;
import com.raytheon.uf.common.datadelivery.harvester.OGCAgent;
import com.raytheon.uf.common.status.IUFStatusHandler;
import com.raytheon.uf.common.status.UFStatus;
@@ -90,12 +92,16 @@ public class RegistryFeatureTypeModifier implements IFeatureTypeModifier {
* @return
*/
public ConfigLayer getConfigLayer(String name) {
- ConfigLayer layer = null;
- if (config.getAgent() != null) {
- if (config.getAgent() instanceof OGCAgent) {
- layer = ((OGCAgent) config.getAgent()).getLayer(name);
+
+ if (layer == null) {
+ Agent agent = getHarvesterConfig().getAgent();
+ if (agent != null) {
+ if (agent instanceof OGCAgent) {
+ layer = ((OGCAgent) agent).getLayer(name);
+ }
}
}
+
return layer;
}
@@ -146,5 +152,18 @@ public class RegistryFeatureTypeModifier implements IFeatureTypeModifier {
return crs;
}
+
+ /**
+ * Get the Harvester Configuration
+ * @return
+ */
+ protected HarvesterConfig getHarvesterConfig() {
+
+ if (config == null) {
+ config = HarvesterConfigurationManager.getOGCConfiguration();
+ }
+
+ return config;
+ }
}
diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.madis.registry/res/spring/madis-ogc-registry.xml b/edexOsgi/com.raytheon.uf.edex.plugin.madis.registry/res/spring/madis-ogc-registry.xml
index 5d8906c6c6..1811a66f72 100644
--- a/edexOsgi/com.raytheon.uf.edex.plugin.madis.registry/res/spring/madis-ogc-registry.xml
+++ b/edexOsgi/com.raytheon.uf.edex.plugin.madis.registry/res/spring/madis-ogc-registry.xml
@@ -3,10 +3,6 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
-
-
-
-
@@ -42,12 +38,6 @@
-
-
-
-
+
+
-
-
+
java.lang.Throwable
diff --git a/edexOsgi/com.raytheon.uf.edex.registry.ebxml/META-INF/services/com.raytheon.uf.common.serialization.ISerializableObject b/edexOsgi/com.raytheon.uf.edex.registry.ebxml/META-INF/services/com.raytheon.uf.common.serialization.ISerializableObject
index dddf55c133..0c2125ff89 100644
--- a/edexOsgi/com.raytheon.uf.edex.registry.ebxml/META-INF/services/com.raytheon.uf.common.serialization.ISerializableObject
+++ b/edexOsgi/com.raytheon.uf.edex.registry.ebxml/META-INF/services/com.raytheon.uf.common.serialization.ISerializableObject
@@ -1,2 +1 @@
com.raytheon.uf.edex.registry.ebxml.services.query.adhoc.AdhocQueryExpression
-com.raytheon.uf.edex.registry.ebxml.services.rest.RestResponse
\ No newline at end of file
diff --git a/tests/manual/com/raytheon/uf/common/comm/HttpProxiedValidClientCredentialsTest.java b/tests/manual/com/raytheon/uf/common/comm/HttpProxiedValidClientCredentialsTest.java
index e7a390cc18..92d19ac0c8 100644
--- a/tests/manual/com/raytheon/uf/common/comm/HttpProxiedValidClientCredentialsTest.java
+++ b/tests/manual/com/raytheon/uf/common/comm/HttpProxiedValidClientCredentialsTest.java
@@ -21,6 +21,9 @@ package com.raytheon.uf.common.comm;
import static org.junit.Assert.assertEquals;
+import java.io.BufferedReader;
+import java.io.FileReader;
+import java.io.IOException;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
@@ -125,7 +128,10 @@ public class HttpProxiedValidClientCredentialsTest {
MockWfsRequestBuilder wrb = new MockWfsRequestBuilder(getRetrievalAttribute());
String request = wrb.getRequest();
+ //String request = getRequest("/home/dhladky/Desktop/good.xml");
+ System.out.println(request);
URI uri = new URI(conn.getUrl());
+ //URI uri = new URI("http://stormy.oma.us.ray.com:8085/wfs");
HttpPost post = new HttpPost(uri);
System.out.println("HTTPS URL: "+conn.getUrl());
@@ -235,8 +241,8 @@ public class HttpProxiedValidClientCredentialsTest {
private Time getTime() {
- String startDateString = "2013-07-29T17:00:00.000";
- String endDateString = "2013-07-29T18:00:00.000";
+ String startDateString = "2013-08-30T12:40:00.000";
+ String endDateString = "2013-08-30T14:15:00.000";
Time time = new Time();
time.setFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
@@ -247,4 +253,39 @@ public class HttpProxiedValidClientCredentialsTest {
return time;
}
-}
+
+ /**
+ * Used in cases where you have XML you want to read in and test
+ * @param path
+ * @return
+ */
+ private String getRequest(String path) {
+
+ StringBuffer fileData = new StringBuffer(1000);
+ BufferedReader reader = null;
+ try {
+
+ reader = new BufferedReader(new FileReader(path));
+ char[] buf = new char[1024];
+ int numRead = 0;
+ while ((numRead = reader.read(buf)) != -1) {
+ String readData = String.valueOf(buf, 0, numRead);
+ fileData.append(readData);
+ buf = new char[1024];
+ }
+ reader.close();
+ } catch (Exception e) {
+ System.out.println("Didn't read file correctly!" + e);
+ } finally {
+ if (reader != null) {
+ try {
+ reader.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+
+ return fileData.toString();
+ }
+}
\ No newline at end of file