* @throws CatalogException
*/
protected void checkService(Element request) throws MissingParameterValueEx, InvalidParameterValueEx {
String service = request.getAttributeValue("service");
if (StringUtils.isEmpty(service)) {
throw new MissingParameterValueEx("service");
}
// TODO heikki: that csw namespace is not a valid value. Earlier comment here states: "//--- this is just a fix to the incorrect XSD schema default." Check if that's still necessary.
if(!(service.equals(Csw.SERVICE)||service.equals("http://www.opengis.net/cat/csw"))) {
throw new InvalidParameterValueEx("service", service);
}