Customize / Handling Server Side Exceptions with Error Codes using ExceptionMapper with Jersey / JAX-RS in Java

The article is written for/using J2SE 6, Jersey 1.1.4.1 and Eclipse IDE for Java EE Developers [Ganymede]. Table of Content Introduction System Requirements Article Prerequisites Introduction to WebApplicationException Implementing WebApplicationException and Defining Exception Mappers for Resource Exceptions and Errors Summary Downloads Resources Feedback Introduction JAX-RS is a collection of interfaces and Java annotations that simplifies development of server-side REST applications. Representational State Transfer (REST) applications are easier to develop and easier to consume when...

read more

Calling / Invoking Secure RESTful Web Service over HTTPS with JAX-RS in Java without Keystore & Truststore Information

The article is written for/using J2SE 6, Jersey 1.1.4.1 and Eclipse IDE for Java EE Developers [Ganymede]. Table of Content Introduction System Requirements Article Prerequisites Securing JAX-RS Clients using SSL Summary Downloads Resources Feedback Introduction You are required to secure the communications between your Java™ API for RESTful Web Services (JAX-RS) application and clients that invoke the application by using Secure Sockets Layer (SSL) transport layer security. Java™ API for RESTful Web Services (JAX-RS) application might be running a Third Party Application running on same or...

read more

Sending / Transfering / Pushing Files in MultiParts / Chunks from Server to Client with RESTful Web Services in Java

Table Of Content Introduction System Requirements Article Prerequisites Writing and Deploying the Web Service Testing the Web Service with Test Client Resources Feedback Introduction The sample application we are going to develop through this tutorial includes writing a Jersey/JAX-RS and Tomcat based RESTful Web service, which will respond to the requests by a Jersey Client. The sample application also includes writing a Jersey/JAX-RS Web service client, which can receive the attachments in response. The tip uses a sample application to demonstrate some of the JAX-RS MutiPart API concepts...

read more

Introduction, developing, implementing RESTful Web Services in Java

Table Of Content Summary Document Introduction System Requirements An Introduction to RESTful Web Services RESTful Web Service Principles When to Use REST Relationships Between SQL and HTTP Verbs Creating the REST Web Service Project Creating the REST Web Service Deploying & Testing the Web Service Article Summary Resources Feedback Summary Representational State Transfer (REST) has gained widespread acceptance across the Web as a simpler alternative to SOAP and Web Services Description Language (WSDL)-based Web services. Key evidence of this shift in interface design is the adoption of...

read more