*
* @throws Exception
* @throws ServiceException
*/
public void validateSchemaSLD(File f, GetMapRequest getMapRequest) throws Exception {
SLDValidator validator = new SLDValidator();
List errors = null;
try {
FileInputStream in = null;
try {
in = new FileInputStream(f);
errors = validator.validateSLD(in, getMapRequest.getBaseUrl());
} finally {
if (in != null) {
in.close();
}
}