/** * @return the service workspace */ public static DeegreeWorkspace getServiceWorkspace() { return getInstance().workspace; }
/** * Returns the {@link ModuleInfo}s for the deegree modules accessible by the webapp classloader. * * @return module infos, never <code>null</code>, but can be empty */ public static Collection<ModuleInfo> getModulesInfo() { return getInstance().modulesInfo; }
/** * @return the service configuration */ public static OwsManager getServiceConfiguration() { return getInstance().serviceConfiguration; }
private static void addHeaders( HttpServletResponse response ) { // add cache control headers response.addHeader( "Cache-Control", "no-cache, no-store" ); // add deegree header response.addHeader( "deegree-version", getInstance().version ); }
public static void restart( String path, HttpServletResponse resp ) throws IOException, ServletException { Pair<DeegreeWorkspace, String> p = getWorkspaceAndPath( path ); resp.setContentType( "text/plain" ); try { if ( p.second != null ) { Workspace ws = p.first.getNewWorkspace(); List<ResourceIdentifier<?>> ids = WorkspaceUtils.getPossibleIdentifiers( ws, p.second ); for ( ResourceIdentifier<?> id : ids ) { WorkspaceUtils.reinitializeChain( ws, id ); } return; } OGCFrontController fc = OGCFrontController.getInstance(); fc.setActiveWorkspaceName( p.first.getName() ); fc.reload(); } catch ( Exception e ) { IOUtils.write( "Error while reloading: " + e.getLocalizedMessage() + "\n", resp.getOutputStream() ); return; } IOUtils.write( "Restart complete.", resp.getOutputStream() ); }
+ ( System.currentTimeMillis() - entryTime ) + " ms." ); } finally { getInstance().CONTEXT.remove(); responseBuffer.flushBuffer(); if ( mainConfig.isValidateResponses() != null && mainConfig.isValidateResponses() ) {