Creating a security REST web server

I am very new to creating web servers - and I had several attempts to understand them and write a fast web server, but it never "clicked". At the moment, I have the impression that REST will be most suitable for my purposes (I will explain later).

Can someone show me an example of basic code in Java (using Tomcat Apache) or a tutorial resource to show how a web server is:

  • It can be used for security — that is, transmitting some value for client identification — it will either refuse or provide access to the client depending on some criteria — perhaps a search list.
  • Once the client is successfully received, they will be allowed to pass a few more values ​​to the web server, which will be used to write the row in the database table.

Many thanks.

PS - I would think that maybe there was something that comes with Eclipse Ganymede? If someone can confirm?

+5
source share
2 answers

I also suggest you watch Restlet

+1
source

Java - JAX-RS. "" , JAX-RS ; . , , , .

BTW JAX-RS Servlet - WAR ( Jersery) - -, , - .

+3

All Articles