Package edu.ucsb.nceas.metacat.util
Class GeoserverUtil
java.lang.Object
edu.ucsb.nceas.metacat.util.GeoserverUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
changePassword
(String username, String password) Change the password on the geoserver.static String
Get the server URL with the Geoserver context.static boolean
Reports whether geoserver is configured.static void
-
Method Details
-
changePassword
Change the password on the geoserver. The loginAdmin method must have already been called using the same HttpClient that is passed to this method.- Parameters:
httpClient
- the HttpClient we will use to post. This should have been used in the login post.username
- the new user namepassword
- the new password- Throws:
MetacatUtilException
-
isGeoserverConfigured
Reports whether geoserver is configured.- Returns:
- a boolean that is true if geoserver is configured or bypassed
- Throws:
MetacatUtilException
-
writeConfig
- Throws:
MetacatUtilException
-
getGeoserverContextURL
public static String getGeoserverContextURL() throws edu.ucsb.nceas.utilities.PropertyNotFoundExceptionGet the server URL with the Geoserver context. This is made up of the server URL + file separator + the Geoserver context- Returns:
- string holding the server URL with context
- Throws:
edu.ucsb.nceas.utilities.PropertyNotFoundException
-