/** * Returns summary information about the GeoTools version and the host environment. * * @return information as a String */ public static String getEnvironmentInfo() { final String newline = String.format("%n"); final String indent = " "; final StringBuilder sb = new StringBuilder(); sb.append("GeoTools version ").append(getVersion().toString()); if (sb.toString().endsWith("SNAPSHOT")) { sb.append(" (built from r").append(getBuildRevision().toString()).append(")"); } sb.append(newline).append("Java version: "); sb.append(System.getProperty("java.version")); sb.append(newline).append("Operating system: "); sb.append(System.getProperty("os.name")).append(' ').append(System.getProperty("os.version")); return sb.toString(); }
public String newRequestHandle(WFSOperationType operation) { StringBuilder handle = new StringBuilder("GeoTools ") .append(GeoTools.getVersion()) .append("(") .append(GeoTools.getBuildRevision()) .append(") WFS ") .append(getVersion()) .append(" DataStore @"); try { handle.append(InetAddress.getLocalHost().getHostName()); } catch (Exception ignore) { handle.append("<uknown host>"); } AtomicLong reqHandleSeq = requestHandleSequences.get(operation); handle.append('#').append(reqHandleSeq.incrementAndGet()); return handle.toString(); }
public AboutGeoServerPage() { add(new Label("geotoolsVersion", GeoTools.getVersion().toString())); add(new Label("geotoolsRevision", GeoTools.getBuildRevision().toString())); } }
public AboutGeoServerPage() { add(new Label("geotoolsVersion", GeoTools.getVersion().toString())); add(new Label("geotoolsRevision", GeoTools.getBuildRevision())); add(new Label("geowebcacheVersion", getGwcVersion())); add(new Label("geowebcacheRevision", getGwcRevision())); }