File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes How URI get mapped to resources Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How URI get mapped to resources" Watch "How URI get mapped to resources" New topic
Author

How URI get mapped to resources

Rupali Patwa
Greenhorn

Joined: Jun 04, 2012
Posts: 4
Hi,

I am unable to understand URI maps to resources. and resources are things or domain objects.Because whenever we write rest ful application most of the URIs get mapped to java methods

Suppose I have class Employee

Since client can not directly access domain objects we expose some service to let clients manipulate object of employee class

i.e I may not write

@Path("/emp")
public class Employee{
}

@Path("/employee")
public class EmplyeeService{
@GET
@Path("/{"id"}
public Emplyee getEmployee(@PathParam("id" int id){
............
}

}

So my most of the URIs get mapped to java methods and very few one to domain objects
Can somebody explain this


thanks
Rupali
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How URI get mapped to resources