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

Technical Writing And Its Growth.
Technical writing is practical writing that people do as the part of their job because it is practical. “Technical writing aims to get work done to change people by changing the way they do things”....

Final modifier in Java
Can’t change value of variable if marked as final. It is best practice to mark method parameter as final if its value will not changes. Variable must be initialize either using Initializer block...

Java : Command Line Arguments
The parameters which are provided to the program at the command line. Eg:d:\>java a 10 20 30 Here,“java” is an interpreter, “a” is filename,10,20,30 are arguments passed to...
S

Svg Reddy

0 0
0

Palindrome Number : Java Function
An easier way to find out whether a number is a Palindrome number or not. Eg. 121, 88, 12321 etc public boolean isPalindrome ( int n ) { int rev = 0, r; for( i = n; i > 0; i /= 10 ) { r...

Features Of Java
There is given many features of Java. They are also known as java buzzwords. The Java Features given below are simple and easy to understand. Simple. Object-Oriented. Portable. Platform independent. Secured. Robust. Architecture...
V
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