Represents the portion of a namespace required for the configuration of geoserver. Defines namespaces to be used by the datastores.
4344454647484950515253
DataNamespacesSelectForm namespacesForm = (DataNamespacesSelectForm) form; String action = namespacesForm.getAction(); DataConfig dataConfig = (DataConfig) getDataConfig(); NameSpaceConfig config = null; Locale locale = (Locale) request.getLocale(); MessageResources messages = servlet.getResources(); String edit = HTMLEncoder.decode(messages.getMessage(locale, "label.edit"));
343536373839404142434445
throws IOException, ServletException { DataNamespacesNewForm namespacesForm = (DataNamespacesNewForm) form; String prefix = namespacesForm.getPrefix(); NameSpaceConfig config = new NameSpaceConfig(); config.setPrefix(prefix); getUserContainer(request).setNamespaceConfig(config); return mapping.findForward("config.data.namespace.editor"); }
35363738394041424344454647484950
String URI = namespacesForm.getURI(); String prefix = namespacesForm.getPrefix(); DataConfig dataConfig = (DataConfig) getDataConfig(); NameSpaceConfig config = null; config = getUserContainer(request).getNamespaceConfig(); config.setPrefix(prefix); config.setUri(URI); dataConfig.addNameSpace(prefix, config); getApplicationState().notifyConfigChanged(); return mapping.findForward("config.data.namespace");
55565758596061626364656667
defaultChecked = false; ServletContext context = getServlet().getServletContext(); DataConfig config = (DataConfig) context.getAttribute(DataConfig.CONFIG_KEY); NameSpaceConfig nsConfig; nsConfig = Requests.getUserContainer(request).getNamespaceConfig(); _default = nsConfig.isDefault(); prefix = nsConfig.getPrefix(); URI = nsConfig.getUri(); }