
Java WebSocket Programming
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- 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
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.