Logging aspect in RESTful web service – spring aop (log requests/responses)
RESTFul web service using spring AOP log request,response information. Create PointCut expression Before, After, Around in REST Web Service.
RESTFul web service using spring AOP log request,response information. Create PointCut expression Before, After, Around in REST Web Service.
Jersey framework REST Service to catch user defined exception using ExceptionMapper to catch application exceptions in java (example)
In this post we are going to discuss about the exception mapper implementation using jersey framework. Exception handling is need for our applications. The jersey ExceptionMapper provide cross cutting concern, where in we can able to catch all application exception at one place. we do not need to handle the exceptions in each and every function. In this post, we will throw and catch following exceptions.
In this post we are going to discuss about the validation of REST parameter. We will develop our web service using Jersey framework. We have already discussed about the Validation of REST parameter using Jersey Framework (Validating Request parameters) Part I.
In our web application, we generally expose the APIs to be invoked by clients. So there is always the requirement for validation of query params, path params, header params etc at the server. If we need to validate the these params before we start service the request of clients.
REST vs SOAP
REST and SOAP are different concepts altogether, We have summarized the few basic differences of REST and SOAP.
RESTFul web service logging filter implementation example using jersey framework container request / response filters (log header, REST information etc.)
REST Service : REST is acronym used for Representational State Transfer. REST is architectural style which is mostly used to build web services. In the REST paradigm we are always thinking about the resources similarly what like in OOPS we are thinking about the objects.