Package org.geoserver.web

Examples of org.geoserver.web.GeoServerApplication$RequestCycle


    }

    private List<String> getAvailableWMSFormats() {
        List<String> formats = new ArrayList<String>();

        final GeoServerApplication application = getGeoServerApplication();
        for (GetMapProducer producer : application
                .getBeansOfType(GetMapProducer.class)) {
            formats.add(producer.getOutputFormat());
        }
        formats = new ArrayList<String>(new HashSet<String>(formats));
        prepareFormatList(formats, new FormatComparator("format.wms."));
View Full Code Here


    }

    private List<String> getAvailableWFSFormats() {
        List<String> formats = new ArrayList<String>();

        final GeoServerApplication application = getGeoServerApplication();
        for (WFSGetFeatureOutputFormat producer : application
                .getBeansOfType(WFSGetFeatureOutputFormat.class)) {
            for (String format : producer.getOutputFormats()) {
                formats.add(format);
            }
        }
View Full Code Here

            /*
             * Here's where the extension point is applied in order to give extensions a chance to
             * provide custom behavior/components for the coverage form other than the default
             * single "url" input field
             */
            GeoServerApplication app = getGeoServerApplication();
            storeEditPanel = StoreExtensionPoints.getStoreEditPanel("parametersPanel", paramsForm,
                    store, app);
        }
        paramsForm.add(storeEditPanel);

View Full Code Here

            this.uiLocaleModel = uiLocaleModel;
        }

        @Override
        protected List<TranslationInfo> getItems() {
            GeoServerApplication app = GeoServerApplication.get();
            TranslationController controller = app.getBeanOfType(TranslationController.class);
            Set<Locale> translatedLanguages = controller.getTranslatedLanguages();
            ArrayList<TranslationInfo> list = new ArrayList<TranslationInfo>(translatedLanguages
                    .size());

            for (Locale locale : translatedLanguages) {
View Full Code Here

        super();

        final IModel translationModel;
        {
            TranslateBean translateBean;
            final GeoServerApplication application = getGeoServerApplication();
            translateBean = (TranslateBean) application.getMetaData(TRANSLATION_BEAN);
            if (translateBean == null) {
                TranslationController controller = getController();
                Map<Locale, Map<String, String>> translatedResources;
                translatedResources = controller.getTranslatedResources();

                // default locale is keyed by null
                Locale baseLocale = null;
                translateBean = new TranslateBean(baseLocale, translatedResources);
                application.setMetaData(TRANSLATION_BEAN, translateBean);
            }

            translateBean.setTargetLanguage(targetLocale);

            // translationModel = new Model(translateBean);
            translationModel = new LoadableDetachableModel() {
                private static final long serialVersionUID = 1L;

                @Override
                protected Object load() {
                    final Application application = getApplication();
                    TranslateBean translateState = (TranslateBean) application
                            .getMetaData(TRANSLATION_BEAN);
                    return translateState;
                }
            };
        }
View Full Code Here

        });
        return uiLanguageChoice;
    }

    private TranslationController getController() {
        GeoServerApplication application = getGeoServerApplication();
        TranslationController controller = application.getBeanOfType(TranslationController.class);
        return controller;
    }
View Full Code Here

        @Override
        protected Object load() {
            Set<Locale> availableTranslations;
            {
                final GeoServerApplication geoServerApplication = GeoServerApplication.get();
                final TranslateBean translateState = (TranslateBean) geoServerApplication
                        .getMetaData(TRANSLATION_BEAN);
                availableTranslations = translateState.getAvailableTranslations();
            }
            List<Locale> sorted = new ArrayList<Locale>(availableTranslations);
            if (includeDefault) {
View Full Code Here

     * @param prefixedName
     * @return
     */
    GetMapRequest getRequest() {
        if (request == null) {
            GeoServerApplication app = GeoServerApplication.get();
            request = new GetMapRequest(new WMS(app.getGeoServer()));
            Catalog catalog = app.getCatalog();
            List<MapLayerInfo> layers = expandLayers(catalog);
            request.setLayers(layers.toArray(new MapLayerInfo[layers.size()]));
            request.setFormat("application/openlayers");
           
            // in the case of groups we already know about the envelope and the target SRS
View Full Code Here

        // null... odd.
        storeInfo.setName("test storeInfo Name");

        editForm = new Form("formId");
        editForm.setModel(new Model(storeInfo));
        GeoServerApplication app = getGeoServerApplication();

        StoreEditPanel storeEditPanel = StoreExtensionPoints.getStoreEditPanel("id", editForm,
                storeInfo, app);
        assertNotNull(storeEditPanel);
        assertTrue(storeEditPanel instanceof ArcSDECoverageStoreEditPanel);
View Full Code Here

            /*
             * Here's where the extension point is applied in order to give extensions a chance to
             * provide custom behavior/components for the coverage form other than the default
             * single "url" input field
             */
            GeoServerApplication app = getGeoServerApplication();
            storeEditPanel = StoreExtensionPoints.getStoreEditPanel("parametersPanel", paramsForm,
                    storeInfo, app);
        }
        paramsForm.add(storeEditPanel);

View Full Code Here

TOP

Related Classes of org.geoserver.web.GeoServerApplication$RequestCycle

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.