Jetty is an open-source servlet container that provides a running environment for Java-based web containers, such as JSPs and Servlets. Jetty is written in the Java language, and its APIs are published as a set of jar packages. Developers can instantiate a jetty container as an object that can quickly provide network and web connectivity for some Java applications that run independently (stand-alone).
Rest is representational state passing (English: representational, Transfer, or rest) is a software architecture style proposed by Dr. Roy Fielding in his doctoral dissertation in 2000. It is a design and development method for network application, which can reduce the complexity of development and increase the scalability of the system.
Resteasy is one of JBoss's open source projects and is a RESTful Web services framework. Bill Burke, Resteasy's developer, is also one of Jax-rs's standard-setting developers for Java EE. Jax-rs is a new standard developed by JCP to standardize the API for HTTP-based restful WEB services.
Stick to the Public Works directory structure diagram:
Attach source code: Http://files.cnblogs.com/files/francisyao/JettyEmbeded.zip
Jetty+resteasy implementation of embedded servlet server +rest Service