RESTful Java Web Services, Third Edition by Bogunuva Mohanram Balachandar

RESTful Java Web Services, Third Edition by Bogunuva Mohanram Balachandar

Author:Bogunuva Mohanram Balachandar
Language: eng
Format: mobi
Tags: COM060180 - COMPUTERS / Web / Web Services and APIs, COM051010 - COMPUTERS / Programming Languages / General, COM051280 - COMPUTERS / Programming Languages / Java
Publisher: Packt
Published: 2017-11-16T08:41:48+00:00


The next phase in the cycle is to convert the inbound stream into the Java object representation. This is done by matching the MessageBodyReader provider identified by the runtime.

After taking the incoming request through the configured filters, interceptors, and message body readers, the JAX-RS runtime invokes the resource class method identified for serving the request. If you have any Bean Validation annotation configured on the method parameters, it will get executed at this stage: If the validation fails and results in ConstraintViolationException, the runtime skips the execution of the method and identifies ExceptionMapper to handle the exception. The exception mapper generates the HTTP response content for the exception.

Upon successful validation, the resource method is executed. If the resource method throws some exception, the framework invokes the matching ExceptionMapper to generate the HTTP response body for the exception.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.