UrbanPro
true

Learn Advanced Java coaching from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

How to create Rest web services in Java

Gaurav
02/09/2016 0 0

Web services are web application components that lets two different applications to communicate over the network.Let if an application which in written java provides web services can be communicated through other languages like PHP,.Net,Python etc.

 

Restful Web Services are very known among web programmers.Using web service you can allow to different applications build on any technology like PHP,.Net etc to communicate over the network in platform independent manner.

 

JAX-RS API is used to develop RestFul web services. in Java. Most commonly used implementation isJersey.JAX-RS specification provides annotations that are used by service programmer for annotating service methods and service class.

Commonly used annotations

  1. @Path: This annotation is used to associate a URI to a service class and methods.
  2. @GET:  This annotation is used to associate HTTP GET request to a service method.
  3. @POST: This annotation is used to associate HTTP POST request to a service method.
  4. @PUT: This annotation is used to associate HTTP PUT request to a service method.
  5. @DELETE: This annotation is used to associate HTTP DELETE request to a service method.
  6. @Produces:This annotation is used to specify the representation of a resource which is produced by a method.
  7. @Consumes: This annotation is used to specify the representation of a resource which is consumed by a method.

For detailed explanation click here.

0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

Comparable vs Comparator
java.lang.Comparable java.util.Comparator For comparing some other object with its own object. Ex. I am comparing myself to some other employee. Method signature is: int compareTo (T object). For...

Use of Service Locator Pattern
If we want to reuse the java code that should be the best approach w.r.t re-usability, maintanence and saving time to concentrate on our own businbess logic/requirement. In the similar approach many patterns...
M

Lambda Expressions in Java
A lambda expression, introduced in Java 8 is similar to a block of code resembling an anonymous function that can be passed to constructors or methods for execution as an argument. Examples: a)() ->...

4 Things Every Tech Startup Needs to Know About The Coaching Industry
Knowledge on any subject is widely available to those who wish to learn. However, just gathering knowledge from other people doesn’t guarantee results in business. Results come from applying what...

Improve your English.
Hello people,I know it's so much important for each one of us to be fluent in English. Holding a high degree but hesitation in speaking English often leads to rejections. So, the very first step towards...
M

Mrs S.

0 0
0
X

Looking for Advanced Java coaching Classes?

The best tutors for Advanced Java coaching Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Advanced Java coaching with the Best Tutors

The best Tutors for Advanced Java coaching Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more