Visão Geral
Este curso ensina programadores Java experientes a construir serviços web RESTful usando Java. O curso começa com uma visão geral do desenvolvimento de serviços da Web na plataforma Java EE, incluindo SOAP, WSDL, REST, JAX-WS, JAXB e JAX-RS. Os alunos aprendem a trabalhar com JAXB para vincular modelos de objetos Java ao XML Schema. A implementação de Jersey é usada para criar serviços RESTful desde simples interações de valor único até serviços mais sofisticados que gerenciam operações CRUD (criar/recuperar/atualizar/excluir) em tipos de dados mais complexos, usando JAXB para empacotar e desempacotar dados na rede.
Conteúdo Programatico
The Programmable Web and Its Inhabitants
- Kinds of Things on the Programmable Web
- HTTP: Documents in Envelopes
- Method Information
- Scoping Information
- The Competing Architectures
- Technologies on the Programmable Web
Writing Web Service Clients
- Web Services Are Web Sites
- Making the Request: HTTP Libraries
- Processing the Response: XML Parsers
- JSON Parsers: Handling Serialized Data
What Makes RESTful Services Different
- Introducing the Simple Storage Service
- Object-Oriented Design of S3
- Resources
- HTTP Response Codes
- An S3 Client
- Request Signing and Access Control
- Using the S3 Client Library
The Resource-Oriented Architecture
- Resource-Oriented What Now?
- What?s a Resource?
- URIs
- Addressability
- Statelessness
- Representations
- Links and Connectedness
- The Uniform Interface
Designing Read-Only Resource-Oriented Services
- Resource Design
- Turning Requirements Into Read-Only Resources
- Figure Out the Data Set
- Split the Data Set into Resources
- Name the Resources
- Design Your Representations
- Link the Resources to Each Other
- The HTTP Response
Designing Read/Write Resource-Oriented Services
- User Accounts as Resources
- Custom Places
- A Look Back at the Map Service
Service Implementation
- A Social Bookmarking Web Service
- Figuring Out the Data Set
- Resource Design
- Design the Representation(s) Accepted from the Client
- Design the Representation(s) Served to the Client
- Connect Resources to Each Other
- What?s Supposed to Happen?
- What Might Go Wrong?
- Controller Code
- Model Code
- What Does the Client Need to Know?
REST and ROA Best Practices
- Resource-Oriented Basics
- The Generic ROA Procedure
- Addressability
- State and Statelessness
- Connectedness
- The Uniform Interface
- Resource Design
- URI Design
- Outgoing Representations
- Incoming Representations
- Service Versioning
- Permanent URIs Versus Readable URIs
- Standard Features of HTTP
The Building Blocks of Services
- Representation Formats
- Prepackaged Control Flows
- Hypermedia Technologies
The Resource-Oriented Architecture vs. Big Web Services
- What Problems Are Big Web Services Trying to Solve?
- SOAP
- WSDL
- UDDI
- Security
- Reliable Messaging
- Transactions
- BPEL, ESB, and SOA
Ajax Applications as REST Clients
- From AJAX to Ajax
- The Ajax Architecture
- The Advantages of Ajax
- The Disadvantages of Ajax
- REST Goes Better
- Making the Request
- Handling the Response
- JSON
- Cross-Browser Issues and Ajax Libraries