throws SldException {
String req = getValue("REQUEST");
if ((req != null) && !req.equals("")) {
if (!req.equalsIgnoreCase("PutStyles")) {
throw new SldException("Expecting 'request=PutStyles'");
}
}
String mode = getValue("MODE");
if ((mode != null) && !mode.equals("")) {
if (mode.equalsIgnoreCase("InsertAndReplace") || mode.equalsIgnoreCase("ReplaceAll")) {
request.setMode(mode);
} else {
throw new SldException("Parameter must be 'InsertAndReplace' or 'ReplaceAll'.");
}
}
}