Package org.vfny.geoserver.config

Examples of org.vfny.geoserver.config.DataStoreConfig


        int index = selectedNewFeatureType.indexOf(DataConfig.SEPARATOR);
        String dataStoreID = selectedNewFeatureType.substring(0, index);
        String featureTypeName = selectedNewFeatureType.substring(index
                + DataConfig.SEPARATOR.length());

        DataStoreConfig dsConfig = dataConfig.getDataStore(dataStoreID);
        DataStore dataStore = dsConfig.findDataStore(request.getSession().getServletContext());

        FeatureTypeConfig ftConfig;
        //JD: GEOS-399, wrap rest of method in try catch block in order to
        // report back nicely to app
    try {
View Full Code Here


            HttpServletResponse response)
    throws IOException, ServletException {

        FeatureTypeConfig ftConfig = (FeatureTypeConfig) request.getSession().getAttribute(DataConfig.SELECTED_FEATURE_TYPE);
        DataConfig dataConfig = getDataConfig();
        DataStoreConfig dsConfig = dataConfig.getDataStore(ftConfig.getDataStoreId());
        DataStore dataStore = dsConfig.findDataStore(request.getSession().getServletContext());
        FeatureType featureType = dataStore.getSchema(ftConfig.getName());
        FeatureSource fs = dataStore.getFeatureSource(featureType.getTypeName());
       
        ftConfig.setLatLongBBox(DataStoreUtils.getBoundingBoxEnvelope(fs));
        request.getSession().setAttribute(DataConfig.SELECTED_FEATURE_TYPE, ftConfig);
View Full Code Here

    public ActionForward execute(ActionMapping mapping, ActionForm form,
        UserContainer user, HttpServletRequest request, HttpServletResponse response)
        throws IOException, ServletException {

        DataDataStoresNewForm newForm = (DataDataStoresNewForm) form;
        DataStoreConfig newDataStoreConfig;

        newDataStoreConfig = new DataStoreConfig(newForm.getDataStoreID(),
                newForm.getSelectedDescription());

        getUserContainer(request).setDataStoreConfig(newDataStoreConfig);

        return mapping.findForward("config.data.store.editor");
View Full Code Here

TOP

Related Classes of org.vfny.geoserver.config.DataStoreConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.