background preloader

— Java.net

— Java.net

Capitolo 25. Remoting Seam fornisce un metodo per accedere in modo remoto i componenti da una pagina web, usando AJAX (Asynchronous Javascript and XML). Il framework per questa funzionalità viene fornito con quasi nessuno sforzo di sviluppo - i componenti richiedono solamente una semplice annotazione per diventare accessibile via AJAX. Questo capitolo descrive i passi richiesti per costruire una pagina web abilitata a AJAX, poi spiega con maggior dettaglio le caratteristiche del framework Seam Remoting. L'interazione lato client con i componenti viene eseguita tutta tramite l'oggetto Javascript Seam. Si cominci con un semplice esempio per vedere come funziona l'oggetto Seam @Stateless@Name("helloAction")public class HelloAction implements HelloLocal { public String sayHello(String name) { return "Hello, " + name; }} E' anche necessario creare un'interfaccia locale per il nuovo componente - tenete a mente in particolare l'annotazione @WebRemote, poiché è necessaria a rendere un metodo accessibile via remoting:

Preface Links: Table of Contents | Single HTML This is user guide for Jersey 2.8-SNAPSHOT. We are trying to keep it up to date as we add new features. When reading the user guide, please consult also our Jersey API documentation as an additional source of information about Jersey features and API. If you would like to contribute to the guide or have questions on things not covered in our docs, please contact us atusers@jersey.java.net. Text formatting conventions First mention of any Jersey and JAX-RS API component in a section links to the API documentation of the referenced component. Emphasised font is used to a call attention to a newly introduce concept, when it first occurs in the text. In some of the code listings, certain lines are too long to be displayed on one line for the available page width. This is an overly long line that \ might not fit the available page \ width and had to be broken into \ multiple lines. Should read as:

Creating a RESTful Root Resource Class - The Java EE 6 Tutorial Root resource classes are POJOs that are either annotated with @Path or have at least one method annotated with @Path or a request method designator, such as @GET, @PUT, @POST, or @DELETE. Resource methods are methods of a resource class annotated with a request method designator. This section explains how to use JAX-RS to annotate Java classes to create RESTful web services. Developing RESTful Web Services with JAX-RS JAX-RS is a Java programming language API designed to make it easy to develop applications that use the REST architecture. The JAX-RS API uses Java programming language annotations to simplify the development of RESTful web services. Table 20-1 lists some of the Java programming annotations that are defined by JAX-RS, with a brief description of how each is used. Table 20-1 Summary of JAX-RS Annotations Overview of a JAX-RS Application The following code sample is a very simple example of a root resource class that uses JAX-RS annotations: @Path("/users/{username}")

Django REST framework request.py If you're doing REST-based web service stuff ... you should ignore request.POST.— Malcom Tredinnick, Django developers group REST framework's Request class extends the standard HttpRequest, adding support for REST framework's flexible request parsing and request authentication. REST framework's Request objects provide flexible request parsing that allows you to treat requests with JSON data or other media types in the same way that you would normally deal with form data. request.DATA returns the parsed content of the request body. This is similar to the standard request.POST attribute except that: It supports parsing the content of HTTP methods other than POST, meaning that you can access the content of PUT and PATCH requests.It supports REST framework's flexible request parsing, rather than just supporting form data. For more details see the parsers documentation. request.FILES returns any uploaded files that may be present in the content of the request body. .parsers .user .auth

Currently using this on current project at VISA. No complaints. Not sure how it performs under load. Has good unit test support. by superunknown Apr 10

Related: