Mercurial > dive4elements > river
changeset 603:8cb98fa4987f
Stub for report service.
flys-client/trunk@2209 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 22 Jun 2011 15:34:52 +0000 |
parents | 3b670af34367 |
children | 84d3c5fde5bb |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/services/ReportService.java flys-client/src/main/java/de/intevation/flys/client/client/services/ReportServiceAsync.java flys-client/src/main/java/de/intevation/flys/client/server/ReportServiceImpl.java flys-client/src/main/webapp/WEB-INF/web.xml |
diffstat | 5 files changed, 71 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Wed Jun 22 15:11:15 2011 +0000 +++ b/flys-client/ChangeLog Wed Jun 22 15:34:52 2011 +0000 @@ -1,3 +1,12 @@ +2011-06-22 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/flys/client/client/services/ReportService.java, + src/main/java/de/intevation/flys/client/server/ReportServiceImpl.java, + src/main/java/de/intevation/flys/client/client/services/ReportServiceAsync.java: + Stub for report service. + + * src/main/webapp/WEB-INF/web.xml: registered new service. + 2011-06-22 Ingo Weinzierl <ingo@intevation.de> * src/main/java/de/intevation/flys/client/client/FLYSConstants.java:
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/services/ReportService.java Wed Jun 22 15:34:52 2011 +0000 @@ -0,0 +1,16 @@ +package de.intevation.flys.client.client.services; + +import com.google.gwt.user.client.rpc.RemoteService; +import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; + +@RemoteServiceRelativePath("report") +public interface ReportService +extends RemoteService +{ + String report( + String collectionId, + String url, + String locale, + String out); +} +// 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/ReportServiceAsync.java Wed Jun 22 15:34:52 2011 +0000 @@ -0,0 +1,14 @@ +package de.intevation.flys.client.client.services; + +import com.google.gwt.user.client.rpc.AsyncCallback; + +public interface ReportServiceAsync +{ + void report( + String collectionId, + String url, + String locale, + String out, + AsyncCallback<String> callback); +} +// 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/ReportServiceImpl.java Wed Jun 22 15:34:52 2011 +0000 @@ -0,0 +1,22 @@ +package de.intevation.flys.client.server; + +import com.google.gwt.user.server.rpc.RemoteServiceServlet; + +import de.intevation.flys.client.client.services.ReportService; + +public class ReportServiceImpl +extends RemoteServiceServlet +implements ReportService +{ + @Override + public String report( + String collectionId, + String url, + String locale, + String out + ) { + System.err.println("report: " + collectionId + " " + out); + return out; + } +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
--- a/flys-client/src/main/webapp/WEB-INF/web.xml Wed Jun 22 15:11:15 2011 +0000 +++ b/flys-client/src/main/webapp/WEB-INF/web.xml Wed Jun 22 15:34:52 2011 +0000 @@ -188,6 +188,16 @@ </servlet-mapping> <servlet> + <servlet-name>ReportService</servlet-name> + <servlet-class>de.intevation.flys.client.server.ReportServiceImpl</servlet-class> + </servlet> + + <servlet-mapping> + <servlet-name>ReportService</servlet-name> + <url-pattern>/flys/report</url-pattern> + </servlet-mapping> + + <servlet> <servlet-name>SetCollectionNameService</servlet-name> <servlet-class>de.intevation.flys.client.server.SetCollectionNameServiceImpl</servlet-class> </servlet>