Working of Filters & Interceptors in RESTFul web service (Jersey /example)
Request response flow in client server (REST Web service) We have shown the request response mechanism of service and client […]
Request response flow in client server (REST Web service) We have shown the request response mechanism of service and client […]
Given a user defined object or POJO having null fields (i.e. some fields are null). When we are serializing object the null
Multipart file upload client is capable of uploading different kind of files to RESTFul web service using Jersey framework. 1. What
Multipart file upload client: File upload client is capable of uploading different kind of files using apache httpclient. File upload
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.
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.