Download Curso Java Web Services with REST

Document related concepts
no text concepts found
Transcript
Curso Java Web Services with REST
Descripción:
 Los servicios Web están diseñados para permitir acceso basado en
Web a software distribuido y servicios de negocio. Ofrecen un
estándar y una arquitectura de servicio abierto para el desarrollo de
componentes que les permite ser accedidos desde la Web con
protocolos estándares como HTTP and y formatos XML para mensajes
y descripción de servicios.
 En nuestro curso de Web Services aprenderás una de las diferentes
tecnologías que permiten el desarrollo Java de Web Services: REST.
Este curso es 30% teórico y 70% práctico.
 Los Servicios Web realizados se programan y ponen en producción
utilizando Eclipse o MyEclipse.
Duración: 35 horas
Audiencia: Desarrolladores y arquitectos que requieran crear Servicios
Web para comunicar aplicaciones multi-plataforma.
Prerrequisitos: Conocimiento o experiencia en programación Java y
XML.
Curso Java Web Services with REST
Desarrollo y Capacitación en Internet S. A. de C. V.
Altadena No. 26 Col. Nápoles CP 03810, México D. F.
Tel. (52)(55) 5523-4756
www.dcinternet.com.mx
1
Contenido
Chapter 1. Introduction to REST








REST and the Rebirth of HTTP
RESTful Architectural Principles
Addressability
The Uniform, Constrained Interface
Why Is the Uniform Interface Important?
Representation-Oriented
Communicate Statelessly
HATEOAS
Chapter 2. Designing RESTful Services












The Object Model
Model the URIs
Defining the Data Format
Read and Update Format
Create Format
Assigning HTTP Methods
Browsing All Orders, Customers, or Products
Obtaining Individual Orders, Customers, or
Products
Creating an Order, Customer, or Product
Updating an Order, Customer, or Product
Removing an Order, Customer, or Product
Cancelling an Order
Developing a JAX-RS RESTful Service
Customer: The Data Class
CustomerResource: Our JAX-RS Service
JAX-RS and Java Interfaces
Inheritance
Deploying Our Service
Writing a Client
Chapter 4. HTTP Method and URI Matching



























The Basics
@PathParam
More Than One Path Parameter
Scope of Path Parameters
PathSegment and Matrix Parameters
Programmatic URI Information
@MatrixParam
@QueryParam
Programmatic Query Parameter Information
@FormParam
@HeaderParam
Raw Headers
@CookieParam
@BeanParam
Common Functionality
Automatic Java Type Conversion
@DefaultValue
@Encoded
Chapter 6. JAX-RS Content Handlers

















Built-in Content Marshalling
javax.ws.rs.core.StreamingOutput
java.io.InputStream, java.io.Reader
java.io.File
byte[]
String, char[]
MultivaluedMap<String, String> and Form Input
javax.xml.transform.Source
JAXB
Intro to JAXB
JAXB JAX-RS Handlers
JAXB and JSON
JSON and JSON Schema
Custom Marshalling
MessageBodyWriter
MessageBodyReader
Life Cycle and Environment
DCInternet
Chapter 3. Your First JAX-RS Service







Chapter 5. JAX-RS Injection
Binding HTTP Methods
HTTP Method Extensions
@Path
Binding URIs
@Path Expressions
Matrix Parameters
Subresource Locators
Full Dynamic Dispatching
Gotchas in Request Matching
Curso Java Web Services with REST
Desarrollo y Capacitación en Internet S. A. de C. V.
Altadena No. 26 Col. Nápoles CP 03810, México D. F.
Tel. (52)(55) 5523-4756
www.dcinternet.com.mx
Chapter 7. Server Responses and Exception
Handling











Default Response Codes
Successful Responses
Error Responses
Complex Responses
Returning Cookies
The Status Enum
javax.ws.rs.core.GenericEntity
Exception Handling
javax.ws.rs.WebApplicationException
Exception Mapping
Exception Hierarchy
2
Chapter 8. JAX-RS Client API







Introduction
Bootstrapping with ClientBuilder
Client and WebTarget
Building and Invoking Requests
Invocation
Exception Handling
Configuration Scopes
Chapter 9. HTTP Content Negotiation












Conneg Explained
Preference Ordering
Language Negotiation
Encoding Negotiation
JAX-RS and Conneg
Method Dispatching
Leveraging Conneg with JAXB
Complex Negotiation
Negotiation by URI Patterns
Leveraging Content Negotiation
Creating New Media Types
Flexible Schemas
Chapter 12. Filters and Interceptors












Server-Side Filters
Server Request Filters
Server Response Filters
Reader and Writer Interceptors
Client-Side Filters
Deploying Filters and Interceptors
Ordering Filters and Interceptors
Per-JAX-RS Method Bindings
DynamicFeature
Name Bindings
DynamicFeature Versus @NameBinding
Exception Processing
Chapter 13. Asynchronous JAX-RS












AsyncInvoker Client API
Using Futures
Using Callbacks
Futures Versus Callbacks
Server Asynchronous Response Processing
AsyncResponse API
Exception Handling
Cancel
Status Methods
Timeouts
Callbacks
Use Cases for AsyncResponse
DCInternet
Chapter 10. HATEOAS
 HATEOAS and Web Services
 Atom Links
 Advantages of Using HATEOAS with Web
Services
 Link Headers Versus Atom Links
 HATEOAS and JAX-RS
 Building URIs with UriBuilder
 Relative URIs with UriInfo
 Building Links and Link Headers
 Writing Link Headers
 Embedding Links in XML
Chapter 11. Scaling JAX-RS Applications







Caching
HTTP Caching
Expires Header
Cache-Control
Revalidation and Conditional GETs
Concurrency
JAX-RS and Conditional Updates
Curso Java Web Services with REST
Desarrollo y Capacitación en Internet S. A. de C. V.
Altadena No. 26 Col. Nápoles CP 03810, México D. F.
Tel. (52)(55) 5523-4756
www.dcinternet.com.mx
14. Deployment and Integration








Deployment
The Application Class
Deployment Within a JAX-RS-Aware Container
Deployment Within a JAX-RS-Unaware
Container
Configuration
Basic Configuration
EJB Integration
Spring Integration
Chapter 15. Securing JAX-RS















Authentication
Basic Authentication
Digest Authentication
Client Certificate Authentication
Authorization
Authentication and Authorization in JAX-RS
Enforcing Encryption
Authorization Annotations
Programmatic Security
Client Security
Verifying the Server
OAuth 2.0
Signing and Encrypting Message Bodies
Digital Signatures
Encrypting Representations
3
Chapter 16. Alternative Java Clients









java.net.URL
Caching
Authentication
Advantages and Disadvantages
Apache HttpClient
Authentication
Advantages and Disadvantages
RESTEasy Client Proxies
Advantages and Disadvantages
Formas de pago:
Este pago debe realizarse en una sola exhibición de las siguientes maneras:
1. Depósito en Banamex cuenta 4923239 Sucursal 575 a nombre de Desarrollo
y Capacitación en Internet, S. A. de C. V. (CLABE en caso de transferencia
electrónica vía Internet 002180057549232394) o
2. Cheque a nombre de Desarrollo y Capacitación en Internet, S. A. de C. V.
Clave SWIFT para traspasos internacionales: BNMXMXMM
DCInternet
Curso Java Web Services with REST
Desarrollo y Capacitación en Internet S. A. de C. V.
Altadena No. 26 Col. Nápoles CP 03810, México D. F.
Tel. (52)(55) 5523-4756
www.dcinternet.com.mx
4