Request Validation
The AbstractService<RQ, RS> interface declares a method to support
request validation in service implementations. RESTful as well as Functional services
implement AbstractService. Hence, services implemented using either of
the approaches can override void validateRequest(ExecutionContext<RQ>
executionContext) method to perform any validation on incoming request
before serving it. Refer to the
com.example.service.rest.ExampleObjectExtensionService class from
asset-integration-starter project to learn how
validateRequest method performs basic checks and throws
InvalidServiceRequestException to convey validation failure.
Validation failures can be conveyed using localized error messages. Please refer to the
I18n Support section to learn about localization support.