# HG changeset patch # User Sascha L. Teichmann # Date 1308756892 0 # Node ID 8cb98fa4987f1c037c9c28175d904e29d208bf90 # Parent 3b670af343676a8435bb9e523d6fbc6712d20dae Stub for report service. flys-client/trunk@2209 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 3b670af34367 -r 8cb98fa4987f flys-client/ChangeLog --- 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 + + * 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 * src/main/java/de/intevation/flys/client/client/FLYSConstants.java: diff -r 3b670af34367 -r 8cb98fa4987f flys-client/src/main/java/de/intevation/flys/client/client/services/ReportService.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 : diff -r 3b670af34367 -r 8cb98fa4987f flys-client/src/main/java/de/intevation/flys/client/client/services/ReportServiceAsync.java --- /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 callback); +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : diff -r 3b670af34367 -r 8cb98fa4987f flys-client/src/main/java/de/intevation/flys/client/server/ReportServiceImpl.java --- /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 : diff -r 3b670af34367 -r 8cb98fa4987f flys-client/src/main/webapp/WEB-INF/web.xml --- 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 @@ + ReportService + de.intevation.flys.client.server.ReportServiceImpl + + + + ReportService + /flys/report + + + SetCollectionNameService de.intevation.flys.client.server.SetCollectionNameServiceImpl