throw new IllegalArgumentException(
"Unknown Service Type: This request processor cannot handle requests of type "
+ request.getServiceType().name());
}
RequestType requestType = request.getDevModeRequest().getRequestType();
if (requestType != null) {
switch (requestType) {
case CAPABILITY_EXCHANGE:
return processCapabilityExchange();
case RESTART_WEB_SERVER:
return processRestartServer();
default: {
break;
}
}
}
throw new IllegalArgumentException(
"Unknown DevModeService Request: The DevModeService cannot handle requests of type "
+ requestType == null ? "(unknown)" : requestType.name());
}