if (!(request instanceof CapabilitiesRequest)) {
throw new IllegalArgumentException("Not a GetCapabilities Request");
}
//UpdateSequence handling for WMS: see WMS 1.1.1 page 23
final WMSCapabilitiesRequest capreq = (WMSCapabilitiesRequest)request;
final WMS wmsConfig = capreq.getWMS();
long reqUS = -1;
if (capreq.getUpdateSequence() != null && !"".equals(capreq.getUpdateSequence().trim())) {
try {
reqUS = Long.parseLong(capreq.getUpdateSequence());
} catch (NumberFormatException nfe) {
throw new ServiceException("GeoServer only accepts numbers in the updateSequence parameter");
}
}
long geoUS = wmsConfig.getUpdateSequence();