changeset 262:44a340c9becc

Added stub for meta data service. flys-client/trunk@1881 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 10 May 2011 13:44:57 +0000
parents f3ea644800c4
children f56523bf4c55
files flys-client/ChangeLog flys-client/pom.xml flys-client/src/main/java/de/intevation/flys/client/client/services/MetaDataService.java flys-client/src/main/java/de/intevation/flys/client/client/services/MetaDataServiceAsync.java flys-client/src/main/java/de/intevation/flys/client/server/MetaDataServiceImpl.java flys-client/src/main/webapp/WEB-INF/web.xml
diffstat 6 files changed, 71 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue May 10 11:37:49 2011 +0000
+++ b/flys-client/ChangeLog	Tue May 10 13:44:57 2011 +0000
@@ -1,3 +1,12 @@
+2011-05-10	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/server/MetaDataServiceImpl.java,
+	  src/main/java/de/intevation/flys/client/client/services/MetaDataServiceAsync.java,
+	  src/main/java/de/intevation/flys/client/client/services/MetaDataService.java:
+	  New. Stub for new meta data service.
+
+	* src/main/webapp/WEB-INF/web.xml: Registered meta data service.
+
 2011-05-10  Raimund Renkert <rrenkert@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java:
--- a/flys-client/pom.xml	Tue May 10 11:37:49 2011 +0000
+++ b/flys-client/pom.xml	Tue May 10 13:44:57 2011 +0000
@@ -11,6 +11,7 @@
   <name>de.intevation.flys.client.FLYS</name>
   
   <properties>
+      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
       <!-- Convenience property to set the GWT version -->
       <gwtVersion>2.1.1</gwtVersion>
       <!-- GWT needs at least java 1.5 -->
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/services/MetaDataService.java	Tue May 10 13:44:57 2011 +0000
@@ -0,0 +1,18 @@
+package de.intevation.flys.client.client.services;
+
+import com.google.gwt.user.client.rpc.RemoteService;
+import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
+
+import de.intevation.flys.client.shared.exceptions.ServerException;
+
+import java.util.List;
+
+@RemoteServiceRelativePath("meta-data")
+public interface MetaDataService extends RemoteService
+{
+    List getMetaData(String serverUrl, String name)
+        throws ServerException;
+}
+// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/services/MetaDataServiceAsync.java	Tue May 10 13:44:57 2011 +0000
@@ -0,0 +1,12 @@
+package de.intevation.flys.client.client.services;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+import java.util.List;
+
+public interface MetaDataServiceAsync {
+    void getMetaData(String serverUrl, String name, AsyncCallback<List> cb);
+}
+// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/MetaDataServiceImpl.java	Tue May 10 13:44:57 2011 +0000
@@ -0,0 +1,21 @@
+package de.intevation.flys.client.server;
+
+import java.util.List;
+
+import com.google.gwt.user.server.rpc.RemoteServiceServlet;
+
+import de.intevation.flys.client.shared.exceptions.ServerException;
+
+import de.intevation.flys.client.client.services.MetaDataService;
+
+public class MetaDataServiceImpl
+extends      RemoteServiceServlet
+implements   MetaDataService
+{
+    public List getMetaData(String url, String name) 
+    throws ServerException
+    {
+        return null;
+    }
+}
+// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
--- a/flys-client/src/main/webapp/WEB-INF/web.xml	Tue May 10 11:37:49 2011 +0000
+++ b/flys-client/src/main/webapp/WEB-INF/web.xml	Tue May 10 13:44:57 2011 +0000
@@ -118,6 +118,16 @@
   </servlet-mapping>
 
   <servlet>
+    <servlet-name>meta-data</servlet-name>
+    <servlet-class>de.intevation.flys.client.server.MetaDataServiceImpl</servlet-class>
+  </servlet>
+  
+  <servlet-mapping>
+    <servlet-name>meta-data</servlet-name>
+    <url-pattern>/flys/meta-data</url-pattern>
+  </servlet-mapping>
+
+  <servlet>
     <servlet-name>mainvalues</servlet-name>
     <servlet-class>de.intevation.flys.client.server.WQInfoServiceImpl</servlet-class>
   </servlet>

http://dive4elements.wald.intevation.org