The "serverinfo" web service provides meta data about INTGeoServer v2 itself.
A typical URL for the serverinfo is: http://myserver.mycompany.com:8080/INTGeoServer/json/serverinfo
No URL parameters are required.
This web service is typically used to test whether a INTGeoServer instance is available.
Here is an example response. This response has been formatted to improve readability
{
"supportsBroadcasts":true,
"name":"INT GeoServer",
"version":"2.58",
"build":"59-9a27c9ecab57160bb95ad5203c640a46b37e37f2",
"fileProviderEncoders":"plain",
"fileSeparator":"\\",
"fileProvider":"Default",
"homePath":"D:\\data",
"localTime":{
"day":28,
"dayOfYear":209,
"month":6,
"year":2017,
"hour":3,
"minute":46,
"second":56,
"millisecond":5
},
"intViewerGeoServer":{
"type":"expires",
"expiration":{
"daysUntilExpiration":29,
"day":21,
"dayOfYear":265,
"month":8,
"year":2016
}
},
"acceptableSeismicCompression":[
"HaarWavelets U",
"NoCompress"
],
"acceptableReservoirCompression":[
]
}
The supportsBroadcasts entry will be present only if the INTGeoBroadcastService has been installed.
The name entry represents the name of the INTGeoServer instance. This is useful when you need to identify uniquely each server. By default, the name is "INT GeoServer". You can customize this name by setting the INT_GEOSERVER_NAME environment variable on the server. You can provide your own naming scheme by implementing your own class extending com.interactive.intgeo.server.nameproviders.AbstractIntGeoServerNameProvider
The version entry represents the full version number of the INTGeoServer instance. By default, this is the concatenation of the two context parameters found in the web.xml file:. Example:
<context-param>
<description>INTGeoServer version major</description>
<param-name>com.interactive.intgeo.server.VersionMajor</param-name>
<param-value>2</param-value>
</context-param>
<context-param>
<description>INTGeoServer version minor</description>
<param-name>com.interactive.intgeo.server.VersionMinor</param-name>
<param-value>46</param-value>
</context-param>
The build entry represents the hash code of the INTGeoServer instance build. By default, this is the value of the context parameters found in the web.xml file:. Example:
<context-param>
<description>INTGeoServer build version</description>
<param-name>com.interactive.intgeo.server.VersionBuild</param-name>
<param-value>59-9a27c9ecab57160bb95ad5203c640a46b37e37f2</param-value>
</context-param>
The fileProviderEncoders entry represents the collection of path encoders that are supported. The most common entries are plain and b64. You can provide your own encoding scheme by implementing your own class extending com.interactive.intgeo.server.pathencoders.AbstractPathEncoder
The fileSeparator entry is the file separator being used by the server.
The fileProvider entry represents the way that virtual paths are mapped to actual disk paths. The most common entries are Default and SamePath. You can provide your own mapping scheme by implementing your own class extending com.interactive.intgeo.server.filesproviders.AbstractIntGeoServerFilesProvider
The homePath entry is only available if the fileProvider is Default. It represents the path of the home directory. All paths are relative to that home directory. You can customize this path by setting the INT_GEOSERVER_HOME environment variable on the server. If INTGeoServer is configured to have confidential paths, the homePath will not be included.
The localTime entry represents the time of the server. day is the day of the month (from 1 to 31). dayOfYear is the number of days since January 1st (the value is 1 for January 1st). month is the number of months since January 1st (from 1 to 12). year is the year in the Gregorian calendar (ex: 2016). hour is the hour of the day (from 0 to 23). minute is the minute within this hour (from 0 to 59). second is the number of seconds within this minute (from 0 to 59). millisecond is the number of milliseconds within this second (from 0 to 999).
The intViewerGeoServer entry represents the expiration date of the INTGeoServer license in use. The type can be either expires or permanent. When the type is expires, the expiration date is specified using the same date format as the local time, but without the hour/minute/second/millisecond. INTGeoServer clients are encouraged to use the provided license information to warn the user if the license is about to expire.
The acceptableSeismicCompression entry lists all available compression types for seismic data. The type of compression used is done using the typeTransform parameter when accessing seismic traces. See more about adding your own compression here.
The acceptableReservoirCompression entry lists all available compression types for reservoir data. The type of compression used is done using the typeTransform parameter when accessing reservoir data.
The content of the serverinfo service is pluggable. To add your own JSON content, implement the com.interactive.intgeoapi.server.serverinfo.AbstractServerInfoProvider class.