diff options
| author | Alexandru Simion <mailto:al.simion@jacobs-university.de> | 2009-04-14 21:28:53 +0200 |
|---|---|---|
| committer | Sorin Stancu-Mara <smsorin@gmail.com> | 2009-04-14 23:46:35 +0200 |
| commit | 3422ca8a8a7a0870e416a54b9bd00f1c2cd70173 (patch) | |
| tree | 8af2e9b3721e5c2f14fb5731ae8efe08781e0d9f /src/wcs | |
| parent | aade634cb098aaebe383d45a21195c44e3d3f071 (diff) | |
Changed headers - added LGPL boilerplate text and removed unnecessary headers
Diffstat (limited to 'src/wcs')
| -rw-r--r-- | src/wcs/server/cli/CLI.java | 24 | ||||
| -rw-r--r-- | src/wcs/server/core/MetadataDb.java | 27 | ||||
| -rw-r--r-- | src/wcs/server/core/WCSException.java | 28 | ||||
| -rw-r--r-- | src/wcs/server/core/convertGetCoverage.java | 26 | ||||
| -rw-r--r-- | src/wcs/server/core/executeDescribeCoverage.java | 25 | ||||
| -rw-r--r-- | src/wcs/server/core/executeGetCapabilities.java | 25 | ||||
| -rw-r--r-- | src/wcs/server/servlet/WCS.java | 25 | ||||
| -rw-r--r-- | src/wcs/server/servlet/WCSTest.java | 27 | ||||
| -rw-r--r-- | src/wcs/server/servlet/newWcsServlet.java | 26 |
9 files changed, 205 insertions, 28 deletions
diff --git a/src/wcs/server/cli/CLI.java b/src/wcs/server/cli/CLI.java index 2a23be4..9f90d6c 100644 --- a/src/wcs/server/cli/CLI.java +++ b/src/wcs/server/cli/CLI.java @@ -1,3 +1,25 @@ +/* + * This file is part of %PACKAGENAME%. + * + * %PACKAGENAME% is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * %PACKAGENAME% is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with %PACKAGENAME%. If not, see <http://www.gnu.org/licenses/>. + * + * For more information please see <http://www.%PACKAGENAME%.org> + * or contact Peter Baumann via <baumann@rasdaman.com>. + * + * Copyright 2009 Jacobs University Bremen, Peter Baumann. + */ + package wcs.server.cli; import wcs.server.core.executeGetCapabilities; @@ -22,8 +44,6 @@ import wcs.server.core.ProcessCoverage; * Command Line Interface class, for testing the WCS Server operation * Converts an WCS XML input file into a WCPS XML input file.<br /> * Settings are read from the file "input-output.txt", in the current folder. - * - * @author Andrei Aiordachioaie */ public class CLI { diff --git a/src/wcs/server/core/MetadataDb.java b/src/wcs/server/core/MetadataDb.java index de6056f..a311a01 100644 --- a/src/wcs/server/core/MetadataDb.java +++ b/src/wcs/server/core/MetadataDb.java @@ -1,3 +1,25 @@ +/* + * This file is part of %PACKAGENAME%. + * + * %PACKAGENAME% is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * %PACKAGENAME% is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with %PACKAGENAME%. If not, see <http://www.gnu.org/licenses/>. + * + * For more information please see <http://www.%PACKAGENAME%.org> + * or contact Peter Baumann via <baumann@rasdaman.com>. + * + * Copyright 2009 Jacobs University Bremen, Peter Baumann. + */ + package wcs.server.core; import java.io.FileInputStream; @@ -8,11 +30,6 @@ import java.sql.SQLException; import java.sql.Statement; import java.util.Properties; -/** - * Class to facilitate access to the PostgreSQL metadata database. - * - * @author Andrei Aiordachioaie - */ public class MetadataDb { Connection con; diff --git a/src/wcs/server/core/WCSException.java b/src/wcs/server/core/WCSException.java index 9f46a07..fdb9d9d 100644 --- a/src/wcs/server/core/WCSException.java +++ b/src/wcs/server/core/WCSException.java @@ -1,4 +1,27 @@ +/* + * This file is part of %PACKAGENAME%. + * + * %PACKAGENAME% is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * %PACKAGENAME% is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with %PACKAGENAME%. If not, see <http://www.gnu.org/licenses/>. + * + * For more information please see <http://www.%PACKAGENAME%.org> + * or contact Peter Baumann via <baumann@rasdaman.com>. + * + * Copyright 2009 Jacobs University Bremen, Peter Baumann. + */ + package wcs.server.core; + import net.opengis.ows.v_1_0_0.ExceptionReport; import net.opengis.ows.v_1_0_0.ExceptionType; @@ -6,9 +29,8 @@ import net.opengis.ows.v_1_0_0.ExceptionType; * Exception class for the WCS server. * This class can return an error report, than can be marshalled into a * WCS-standard compliant XML structure describing the error that has happened. - * - * @author Andrei Aiordachioaie */ + public class WCSException extends Exception { private static final long serialVersionUID = 847843429L; @@ -70,4 +92,4 @@ public class WCSException extends Exception { { return report; } -}
\ No newline at end of file +} diff --git a/src/wcs/server/core/convertGetCoverage.java b/src/wcs/server/core/convertGetCoverage.java index 412b0f1..15d1726 100644 --- a/src/wcs/server/core/convertGetCoverage.java +++ b/src/wcs/server/core/convertGetCoverage.java @@ -1,3 +1,25 @@ +/* + * This file is part of %PACKAGENAME%. + * + * %PACKAGENAME% is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * %PACKAGENAME% is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with %PACKAGENAME%. If not, see <http://www.gnu.org/licenses/>. + * + * For more information please see <http://www.%PACKAGENAME%.org> + * or contact Peter Baumann via <baumann@rasdaman.com>. + * + * Copyright 2009 Jacobs University Bremen, Peter Baumann. + */ + package wcs.server.core; import java.io.File; @@ -15,16 +37,14 @@ import net.opengis.wcs.v_1_1_0.RangeSubsetType; import net.opengis.wcs.v_1_1_0.TimePeriodType; import wcs.server.core.SliceCoverageExprType.SetInterpolationDefault; - /** * This class takes a WCS GetCoverage XML request and converts this request into * a WCPS ProcessCoverage XML request. It is the user's responsibility to pass * the WCPS request to a WCPS server in order to view to result. * NOTE: This class was tested with the WCPS server developed at Jacobs University, * with a web client available at http://kahlua.eecs.jacobs-university.de/wcps-maitai/. - * - * @author Andrei Aiordachioaie */ + public class convertGetCoverage{ private GetCoverage wcs; diff --git a/src/wcs/server/core/executeDescribeCoverage.java b/src/wcs/server/core/executeDescribeCoverage.java index fb75bda..4438780 100644 --- a/src/wcs/server/core/executeDescribeCoverage.java +++ b/src/wcs/server/core/executeDescribeCoverage.java @@ -1,3 +1,25 @@ +/* + * This file is part of %PACKAGENAME%. + * + * %PACKAGENAME% is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * %PACKAGENAME% is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with %PACKAGENAME%. If not, see <http://www.gnu.org/licenses/>. + * + * For more information please see <http://www.%PACKAGENAME%.org> + * or contact Peter Baumann via <baumann@rasdaman.com>. + * + * Copyright 2009 Jacobs University Bremen, Peter Baumann. + */ + package wcs.server.core; import java.sql.ResultSet; @@ -23,9 +45,8 @@ import net.opengis.wcs.v_1_1_0.SpatialDomainType; * NOTE: Since the WCPS and WCS services share the format of DescribeCoverage * request and response, this class can also answer WCPS DescribeCoverage * requests. In fact, this is what it does! - * - * @author Andrei Aiordachioaie */ + public class executeDescribeCoverage { private DescribeCoverage input; diff --git a/src/wcs/server/core/executeGetCapabilities.java b/src/wcs/server/core/executeGetCapabilities.java index 0acca03..3af7c89 100644 --- a/src/wcs/server/core/executeGetCapabilities.java +++ b/src/wcs/server/core/executeGetCapabilities.java @@ -1,3 +1,25 @@ +/* + * This file is part of %PACKAGENAME%. + * + * %PACKAGENAME% is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * %PACKAGENAME% is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with %PACKAGENAME%. If not, see <http://www.gnu.org/licenses/>. + * + * For more information please see <http://www.%PACKAGENAME%.org> + * or contact Peter Baumann via <baumann@rasdaman.com>. + * + * Copyright 2009 Jacobs University Bremen, Peter Baumann. + */ + package wcs.server.core; import java.sql.ResultSet; @@ -27,9 +49,8 @@ import net.opengis.wcs.v_1_1_0.GetCapabilities; * NOTE: Since the WCPS and WCS services share the format of GetCapabilities * request and response, this class can also answer WCPS GetCapabilities * requests. In fact, this is what it does! - * - * @author Andrei Aiordachioaie */ + public class executeGetCapabilities { private final static String SERVLET_URL = "http://kahlua.eecs.jacobs-university.de/wcs-andrei/"; diff --git a/src/wcs/server/servlet/WCS.java b/src/wcs/server/servlet/WCS.java index 67dfd67..7437f8d 100644 --- a/src/wcs/server/servlet/WCS.java +++ b/src/wcs/server/servlet/WCS.java @@ -1,3 +1,25 @@ +/* + * This file is part of %PACKAGENAME%. + * + * %PACKAGENAME% is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * %PACKAGENAME% is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with %PACKAGENAME%. If not, see <http://www.gnu.org/licenses/>. + * + * For more information please see <http://www.%PACKAGENAME%.org> + * or contact Peter Baumann via <baumann@rasdaman.com>. + * + * Copyright 2009 Jacobs University Bremen, Peter Baumann. + */ + package wcs.server.servlet; import wcs.server.core.*; @@ -18,9 +40,8 @@ import net.opengis.wcs.v_1_1_0.GetCoverage; * - GetCapabilities * - DescribeCoverage * - GetCoverage - * - * @author Andrei Aiordachioaie */ + public class WCS { private static Boolean ok; diff --git a/src/wcs/server/servlet/WCSTest.java b/src/wcs/server/servlet/WCSTest.java index f66d77a..609630d 100644 --- a/src/wcs/server/servlet/WCSTest.java +++ b/src/wcs/server/servlet/WCSTest.java @@ -1,3 +1,25 @@ +/* + * This file is part of %PACKAGENAME%. + * + * %PACKAGENAME% is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * %PACKAGENAME% is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with %PACKAGENAME%. If not, see <http://www.gnu.org/licenses/>. + * + * For more information please see <http://www.%PACKAGENAME%.org> + * or contact Peter Baumann via <baumann@rasdaman.com>. + * + * Copyright 2009 Jacobs University Bremen, Peter Baumann. + */ + package wcs.server.servlet; import java.io.File; @@ -8,11 +30,6 @@ import org.apache.commons.io.FileUtils; import org.junit.*; import org.junit.Assert; -/** - * - * - * @author Andrei Aiordachioaie - */ public class WCSTest { // Location of the input files, relative to the project folder root diff --git a/src/wcs/server/servlet/newWcsServlet.java b/src/wcs/server/servlet/newWcsServlet.java index 64288d6..cacfb4b 100644 --- a/src/wcs/server/servlet/newWcsServlet.java +++ b/src/wcs/server/servlet/newWcsServlet.java @@ -1,3 +1,25 @@ +/* + * This file is part of %PACKAGENAME%. + * + * %PACKAGENAME% is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * %PACKAGENAME% is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with %PACKAGENAME%. If not, see <http://www.gnu.org/licenses/>. + * + * For more information please see <http://www.%PACKAGENAME%.org> + * or contact Peter Baumann via <baumann@rasdaman.com>. + * + * Copyright 2009 Jacobs University Bremen, Peter Baumann. + */ + package wcs.server.servlet; import java.io.File; @@ -22,10 +44,6 @@ import wcps.server.core.CachedMetadataSource; import wcps.server.core.DbMetadataSource; import wcps.server.core.WCPS; -/** - * - * @author Andrei Aiordachioaie - */ public class newWcsServlet extends HttpServlet { private static final long serialVersionUID = 84786549L; |
