org.gcube.common.geoserverinterface
Class GeoserverCaller

java.lang.Object
  extended by org.gcube.common.geoserverinterface.GeoserverCaller

public class GeoserverCaller
extends Object


Constructor Summary
GeoserverCaller(String geoserver_url, String user, String password)
           
 
Method Summary
 boolean addFeatureType(FeatureTypeRest featureTypeRest)
           
 boolean addLayer(LayerRest layerRest)
           
 boolean addLayersGroup(GroupRest group)
           
 boolean addStyleToLayer(String layer, String style)
           
 boolean deleteFeatureTypes(String wokspaceName, String dataStore, String featureTypes)
           
 boolean deleteLayer(String LayerName)
           
 boolean deleteLayersGroup(String name)
           
 boolean deleteStyleSDL(String schemaName, boolean purge)
           
 CoverageStoreRest getCoverageStore(String wokspaceName, String coverageStore)
           
 CoverageTypeRest getCoverageType(String wokspaceName, String coveragestore, String coverageType)
           
 DataStoreRest getDataStore(String wokspaceName, String dataStore)
           
 FeatureTypeRest getFeatureType(String wokspaceName, String dataStore, String featureType)
           
 GeoserverDeleteMethods getGeoserverDeleteMethods()
           
 GeoserverGetMethods getGeoserverGetMethods()
           
 GeoserverModifyMethods getGeoserverModifyMethods()
           
 GeoserverPutMethods getGeoserverPutMethods()
           
 LayerRest getLayer(String nameLayer)
           
 GroupRest getLayerGroup(String nameGroup)
           
 String getLayerTitleByWms(String workspace, String layerName)
           
 List<String> getLayerTitlesByWms(List<String> workspace, List<String> layerName)
           
 InputStream getStyle(String styleName)
           
 WorkspaceRest getWorkspace(String wokspaceName)
           
 ArrayList<String> listCoverages(String wokspaceName, String coverageStore)
           
 List<String> listCoverageStores(String wokspaceName)
           
 List<String> listDataStores(String wokspaceName)
           
 ArrayList<String> listFeaturetypes(String wokspaceName, String dataStore)
           
 ArrayList<String> listLayerGroups()
           
 ArrayList<String> listLayers()
           
 ArrayList<String> listStyles()
           
 ArrayList<String> listStyles(String layerName)
           
 ArrayList<String> listWorkspaces()
           
 boolean modifyLayersGroup(GroupRest group)
           
 boolean modifyStyleSDL(String schemaName, String xmlSdl)
           
 boolean sendStyleSDL(String xmlSdl)
           
 boolean setLayer(FeatureTypeRest featureTypeRest, String defaultStyle, ArrayList<String> styles)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoserverCaller

public GeoserverCaller(String geoserver_url,
                       String user,
                       String password)
Method Detail

getGeoserverGetMethods

public GeoserverGetMethods getGeoserverGetMethods()
Returns:

getGeoserverPutMethods

public GeoserverPutMethods getGeoserverPutMethods()
Returns:

getGeoserverModifyMethods

public GeoserverModifyMethods getGeoserverModifyMethods()
Returns:

getGeoserverDeleteMethods

public GeoserverDeleteMethods getGeoserverDeleteMethods()
Returns:

getLayerTitlesByWms

public List<String> getLayerTitlesByWms(List<String> workspace,
                                        List<String> layerName)

getLayerTitleByWms

public String getLayerTitleByWms(String workspace,
                                 String layerName)

listWorkspaces

public ArrayList<String> listWorkspaces()
                                 throws Exception
Throws:
Exception

getWorkspace

public WorkspaceRest getWorkspace(String wokspaceName)
                           throws Exception
Throws:
Exception

listDataStores

public List<String> listDataStores(String wokspaceName)
                            throws Exception
Throws:
Exception

getDataStore

public DataStoreRest getDataStore(String wokspaceName,
                                  String dataStore)
                           throws Exception
Throws:
Exception

listFeaturetypes

public ArrayList<String> listFeaturetypes(String wokspaceName,
                                          String dataStore)
                                   throws Exception
Throws:
Exception

getFeatureType

public FeatureTypeRest getFeatureType(String wokspaceName,
                                      String dataStore,
                                      String featureType)
                               throws Exception
Throws:
Exception

getCoverageType

public CoverageTypeRest getCoverageType(String wokspaceName,
                                        String coveragestore,
                                        String coverageType)
                                 throws Exception
Throws:
Exception

listLayers

public ArrayList<String> listLayers()
                             throws Exception
Throws:
Exception

getLayer

public LayerRest getLayer(String nameLayer)
                   throws Exception
Throws:
Exception

listLayerGroups

public ArrayList<String> listLayerGroups()
                                  throws Exception
Throws:
Exception

getLayerGroup

public GroupRest getLayerGroup(String nameGroup)
                        throws Exception
Throws:
Exception

listStyles

public ArrayList<String> listStyles()
                             throws Exception
Throws:
Exception

listStyles

public ArrayList<String> listStyles(String layerName)
                             throws Exception
Throws:
Exception

getStyle

public InputStream getStyle(String styleName)
                     throws Exception
Throws:
Exception

listCoverageStores

public List<String> listCoverageStores(String wokspaceName)
                                throws Exception
Throws:
Exception

getCoverageStore

public CoverageStoreRest getCoverageStore(String wokspaceName,
                                          String coverageStore)
                                   throws Exception
Throws:
Exception

listCoverages

public ArrayList<String> listCoverages(String wokspaceName,
                                       String coverageStore)
                                throws Exception
Throws:
Exception

addLayersGroup

public boolean addLayersGroup(GroupRest group)
                       throws Exception
Throws:
Exception

addFeatureType

public boolean addFeatureType(FeatureTypeRest featureTypeRest)
                       throws Exception
Throws:
Exception

addLayer

public boolean addLayer(LayerRest layerRest)
                 throws Exception
Throws:
Exception

setLayer

public boolean setLayer(FeatureTypeRest featureTypeRest,
                        String defaultStyle,
                        ArrayList<String> styles)
                 throws Exception
Throws:
Exception

addStyleToLayer

public boolean addStyleToLayer(String layer,
                               String style)
                        throws Exception
Throws:
Exception

sendStyleSDL

public boolean sendStyleSDL(String xmlSdl)
                     throws Exception
Throws:
Exception

modifyLayersGroup

public boolean modifyLayersGroup(GroupRest group)
                          throws Exception
Throws:
Exception

modifyStyleSDL

public boolean modifyStyleSDL(String schemaName,
                              String xmlSdl)
                       throws Exception
Throws:
Exception

deleteLayersGroup

public boolean deleteLayersGroup(String name)
                          throws Exception
Throws:
Exception

deleteStyleSDL

public boolean deleteStyleSDL(String schemaName,
                              boolean purge)
                       throws Exception
Throws:
Exception

deleteLayer

public boolean deleteLayer(String LayerName)
                    throws Exception
Throws:
Exception

deleteFeatureTypes

public boolean deleteFeatureTypes(String wokspaceName,
                                  String dataStore,
                                  String featureTypes)
                           throws Exception
Throws:
Exception


Copyright © 2012. All Rights Reserved.