
Java WebSocket programming
Title:
Java WebSocket programming
Author:
Coward, Danny.
ISBN:
9780071827195
Personal Author:
Physical Description:
xxii, 230 pages ; 24 cm
General Note:
"Oracle Press."
Includes index.
Contents:
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 -- 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 -- 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^^^^
4.Configurations and Sessions -- Session State and Logical Endpoint State -- The Chat Sample -- Configuring Endpoints: ClientEndpointConfig and Server Endpoint Config -- 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 -- 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 -- 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 -- 7.Securing WebSocket Server Endpoints -- Security Concepts -- Java WebSocket API Security -- Authentication -- Authorization -- Private Communication -- Java WebSocket Security APIs -- Stock Account Application -- Summary -- 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.