Class MetadataConverter
- java.lang.Object
-
- org.gcube.datatransfer.resolver.gis.MetadataConverter
-
public class MetadataConverter extends Object
The Class MetadataConverter.- Author:
- Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it May 15, 2017
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerloggerstatic StringNOT_FOUNDprotected static StringSERVICE_WMS
-
Constructor Summary
Constructors Constructor Description MetadataConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GeoserverBaseUrigetGeoserverBaseUri(String uri)Gets the geoserver base uri.static GisLayerItemgetWMSOnLineResource(GeonetworkInstance geonetowrkInstance, String uuid)Gets the WMS on line resource.
-
-
-
Field Detail
-
SERVICE_WMS
protected static final String SERVICE_WMS
- See Also:
- Constant Field Values
-
logger
protected static org.slf4j.Logger logger
-
NOT_FOUND
public static final String NOT_FOUND
- See Also:
- Constant Field Values
-
-
Method Detail
-
getGeoserverBaseUri
public static GeoserverBaseUri getGeoserverBaseUri(String uri)
Gets the geoserver base uri.- Parameters:
uri- the uri- Returns:
- the input uri without the parameters, (the uri substring from start to index of '?' char (if exists)) if geoserver base url not found, geoserver url otherwise
-
getWMSOnLineResource
public static GisLayerItem getWMSOnLineResource(GeonetworkInstance geonetowrkInstance, String uuid) throws Exception
Gets the WMS on line resource.- Parameters:
geonetowrkInstance- the geonetowrk instanceuuid- the uuid- Returns:
- the WMS on line resource
- Throws:
Exception- the exception
-
-