Java WebSocket programming

Master Application Development with Java WebSocket Build dynamic enterprise Web applications that fully leverage state-of-the-art communication technologies. Written by the leading expert on Java WebSocket programming, this Oracle Press guide offers practical development strategies and detailed exam...

Full description

Bibliographic Details
Other Authors: Coward, Danny, author (author)
Format: eBook
Language:Inglés
Published: New York : McGraw-Hill 2014.
Edition:1st edition
Subjects:
See on Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627810806719
Table of Contents:
  • Cover
  • About the Author
  • Title Page
  • Copyright Page
  • Contents at a Glance
  • Contents
  • Acknowledgments
  • Introduction
  • Chapter 1: Java WebSocket Fundamentals
  • Creating Your First WebSocket Application
  • Creating a WebSocket Endpoint
  • Deploying the Endpoint
  • Creating a WebSocket Client
  • WebSocket Endpoints
  • Programmatic Endpoints
  • Fundamental Java WebSocket API Objects
  • Inside the Echo Samples
  • Deployment Phase
  • Accepting the First Connection
  • WebSocket Messaging
  • Summary
  • Chapter 2: Java WebSocket Lifecycle
  • The WebSocket Protocol
  • Lifecycle of a Java WebSocket
  • The WebSocket Lifecycle in the Java WebSocket API
  • Annotated Endpoint Event Handling
  • Lifecycle Sample
  • Programmatic Endpoint Lifecycle
  • Number of Instances and Threading
  • Summary
  • Chapter 3: Basic Messaging
  • Messaging Overview
  • Sending Messages
  • Receiving WebSocket Messages
  • DrawingBoard Application
  • DrawingBoard Client
  • Messaging and Threading
  • WebSocket Endpoint Threading and Messaging
  • Threading and Lifecycle of Encoders and Decoders
  • Summary
  • Chapter 4: Configurations and Sessions
  • Session State and Logical Endpoint State
  • The Chat Sample
  • Configuring Endpoints: ClientEndpointConfig and ServerEndpointConfig
  • Supplying and Accessing Endpoint Configuration Information
  • Examining the Configuration Options
  • WebSocket Subprotocols and WebSocket Extensions
  • The WebSocket Session
  • The Lifecycle of the WebSocket Session
  • Summary
  • Chapter 5: Advanced Messaging
  • Checking Up on Your Connection: Pings and Pongs
  • Sending WebSocket Messages Asynchronously
  • Sending a WebSocket Message by Future
  • Sending a WebSocket Message with Handler
  • When to Send By Future and When to Send with Handler?
  • Asynchronous Send Timeouts
  • Message Batching
  • Buffering, Partial Messages, and Data Framing.
  • Guaranteeing Message Delivery
  • Sending Messages API Summary
  • The MessageModes Application
  • Overview of the MessageModes Application
  • Looking at the Code for the MessageModes Application
  • Things to Notice About the MessageModes Application
  • Summary
  • Chapter 6: WebSocket Path Mapping
  • Terminology of URIs
  • WebSocket Path Mapping
  • Exact URI Mapping
  • URI Template Paths
  • APIs Relating to URI Template Matching
  • Accessing Path Information at Runtime
  • Query Strings and Request Parameters
  • Matching Precedence
  • The Portfolio Application
  • Query Strings vs. Path Parameters vs. WebSocket Messages
  • Summary of WebSocket Path Mapping APIs
  • Summary
  • Chapter 7: Securing WebSocket Server Endpoints
  • Security Concepts
  • Java WebSocket API Security
  • Authentication
  • Authorization
  • Private Communication
  • Java WebSocket Security APIs
  • Stock Account Application
  • Summary
  • Chapter 8: WebSockets in the Java EE Platform
  • The Role of Java WebSockets in the Java EE Platform
  • Sharing Web Application State
  • HttpSession to WebSocket Session Association
  • The HttpSession Sample
  • Using EJBs from WebSocket Endpoints
  • The EJB Example
  • The Chat Redux Example
  • Summary
  • Index.