Restful Java with Jax RS 1st Edition by Burke Bill – Ebook PDF Instant Download/Delivery: 0596158041, 9780596158040
Full download Restful Java with Jax RS 1st Edition after payment

Product details:
ISBN 10: 0596158041
ISBN 13: 9780596158040
Author: Burke Bill
Restful Java with Jax RS 1st Table of contents:
Who Should Read This Book
How This Book Is Organized
Part I, REST and the JAX-RS Standard
Part II, JAX-RS Workbook
Conventions Used in This Book
Using Code Examples
We’d Like to Hear from You
Safari® Books Online
Acknowledgments
Part I. REST and the JAX-RS Standard
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
The engine of application state
Wrapping Up
Chapter 2. Designing RESTful Services
The Object Model
Model the URIs
Defining the Data Format
Read and Update Format
Common link element
The details
Create Format
Assigning HTTP Methods
Browsing All Orders, Customers, or Products
Obtaining Individual Orders, Customers, or Products
Creating an Order, Customer, or Product
Creating with PUT
Creating with POST
Updating an Order, Customer, or Product
Removing an Order, Customer, or Product
Cancelling an Order
Overloading the meaning of DELETE
States versus operations
Wrapping Up
Chapter 3. Your First JAX-RS Service
Developing a JAX-RS RESTful Service
Customer: The Data Class
CustomerResource: Our JAX-RS Service
Creating customers
Retrieving customers
Updating a customer
Utility methods
JAX-RS and Java Interfaces
Inheritance
Deploying Our Service
Deployment Within a Servlet Container
Wrapping Up
Chapter 4. HTTP Method and URI Matching
Binding HTTP Methods
HTTP Method Extensions
@Path
Binding URIs
@Path Expressions
Template parameters
Regular expressions
Precedence rules
Encoding
Matrix Parameters
Subresource Locators
Full Dynamic Dispatching
Wrapping Up
Chapter 5. JAX-RS Injection
The Basics
@PathParam
More Than One Path Parameter
Scope of Path Parameters
PathSegment and Matrix Parameters
Matching with multiple PathSegments
Programmatic URI Information
@MatrixParam
@QueryParam
Programmatic Query Parameter Information
@FormParam
@HeaderParam
Raw Headers
@CookieParam
Common Functionality
Automatic Java Type Conversion
Primitive type conversion
Java object conversion
Collections
Conversion failures
@DefaultValue
@Encoded
Wrapping Up
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 and Form Input
javax.xml.transform.Source
JAXB
Intro to JAXB
JAXB JAX-RS Handlers
Managing your own JAXBContexts with ContextResolvers
JAXB and JSON
XML to JSON using BadgerFish
JSON and JSON Schema
Custom Marshalling
MessageBodyWriter
Adding pretty printing
Pluggable JAXBContexts using ContextResolvers
MessageBodyReader
Life Cycle and Environment
Wrapping Up
Chapter 7. Response Codes, Complex 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
Wrapping Up
Chapter 8. HTTP Content Negotiation
Conneg Explained
Preference Ordering
Language Negotiation
Encoding Negotiation
JAX-RS and Conneg
Method Dispatching
Leveraging Conneg with JAXB
Complex Negotiation
Viewing Accept headers
Variant processing
Negotiation by URI Patterns
Leveraging Content Negotiation
Creating New Media Types
Flexible Schemas
Wrapping Up
Chapter 9. HATEOAS
HATEOAS and Web Services
Atom Links
Advantages of Using HATEOAS with Web Services
Location transparency
Decoupling interaction details
Reduced state transition errors
W3C standardized relationships
Link Headers Versus Atom Links
HATEOAS and JAX-RS
Building URIs with UriBuilder
Relative URIs with UriInfo
Wrapping Up
Chapter 10. Scaling JAX-RS Applications
Caching
HTTP Caching
Expires Header
Cache-Control
Revalidation and Conditional GETs
Last-Modified
ETag
JAX-RS and conditional GETs
Concurrency
JAX-RS and Conditional Updates
Wrapping Up
Chapter 11. Deployment and Integration
Deployment
The Application Class
Deployment Within a JAX-RS-Unaware Container
Deployment Within a JAX-RS-Aware Container
Deployment Within Java EE 6
Configuration
Older Java EE Containers
Within Java EE 6 Containers
EJB Integration
Spring Integration
Wrapping Up
Chapter 12. Securing JAX-RS
Authentication
Basic Authentication
Digest Authentication
Client Certificate Authentication
Authorization
Authentication and Authorization in JAX-RS
Enforcing Encryption
Authorization Annotations
Programmatic Security
Wrapping Up
Chapter 13. RESTful Java Clients
java.net.URL
Caching
Authentication
Client Certificate authentication
Advantages and Disadvantages
Apache HttpClient
Authentication
Client Certificate authentication
Advantages and Disadvantages
RESTEasy Client Framework
Authentication
Advantages and Disadvantages
RESTEasy Client Proxies
Advantages and Disadvantages
Wrapping Up
Chapter 14. JAX-RS Implementations
Jersey
Embeddable Jersey
Client API
WADL
Data Formats
Atom
JSON
MIME multipart
Model, View, and Controller
Component Integration
Apache CXF
Aggregating Request Parameters into Beans
Converting Request Parameters into Custom Types
Static Resolution of Subresources
Client API
Supporting Services Without JAX-RS Annotations
Intercepting Requests and Responses
Promoting XSLT and XPath As First-Class Citizens
Support for Suspended Invocations
Support for Multipart Formats
Integration with Distributed OSGi RI
Support for WADL
Component Integration
JBoss RESTEasy
Embedded Container
Asynchronous HTTP
Interceptor Framework
Client “Browser” Cache
Server-Side Caching
GZIP Compression
Data Formats
Atom
Multipart
Component Integration
Wrapping Up
Part II. JAX-RS Workbook
Chapter 15. Workbook Introduction
Installing RESTEasy and the Examples
Example Requirements and Structure
Code Directory Structure
Environment Setup
Chapter 16. Examples for Chapter 3
Build and Run the Example Program
Deconstructing pom.xml
Running the Build
Examining the Source Code
Chapter 17. Examples for Chapter 4
Example ex04_1: HTTP Method Extension
Build and Run the Example Program
The Server Code
The Client Code
Example ex04_2: @Path with Expressions
Build and Run the Example Program
The Server Code
The Client Code
Example ex04_3: Subresource Locators
Build and Run the Example Program
The Server Code
The Client Code
Chapter 18. Examples for Chapter 5
Example ex05_1: Injecting URI Information
The Server Code
The Client Code
Build and Run the Example Program
Example ex05_2: Forms and Cookies
The Server Code
Server Configuration
Build and Run the Example Program
Chapter 19. Examples for Chapter 6
Example ex06_1: Using JAXB
The Client Code
Changes to pom.xml
Build and Run the Example Program
Example ex06_2: Creating a Content Handler
The Content Handler Code
The Resource Class
The Application Class
The Client Code
Build and Run the Example Program
Chapter 20. Examples for Chapter 7
Example ex07_1: ExceptionMapper
The Client Code
Build and Run the Example Program
Chapter 21. Examples for Chapter 8
Example ex08_1: Conneg with JAX-RS
The Client Code
Build and Run the Example Program
Example ex08_2: Conneg via URL Patterns
The Server Code
Build and Run the Example Program
Chapter 22. Examples for Chapter 9
Example ex09_1: Atom Links
The Server Code
The Client Code
Build and Run the Example Program
Example ex09_2: Link Headers
The Server Code
OrderResource
StoreResource
The Client Code
Build and Run the Example Program
Chapter 23. Examples for Chapter 10
Example ex10_1: Caching and Concurrent Updates
The Server Code
The Client Code
Build and Run the Example Program
Chapter 24. Examples for Chapter 11
Example ex11_1: EJB and JAX-RS
Project Structure
The EJB Project
The EJB code
The ExceptionMappers
The WAR Project
The EAR Project
Build and Run the Example Program
Example ex11_2: Spring and JAX-RS
Build and Run the Example Program
People also search for Restful Java with Jax RS 1st:
restful java with jax rs 2.0
restful java with jax rs 2.0 by bill burke
restful java with jax rs 2.0 2nd edition
jax-rs example
restful java with jax-rs
Tags: Burke Bill, Restful Java, Jax RS


