My Account Log in

1 option

Java WebSocket programming / Danny Coward.

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Coward, Danny, author.
Language:
English
Subjects (All):
Java (Computer program language).
Internet programming.
Web site development.
Physical Description:
1 online resource (1 v.) : ill.
Edition:
1st edition
Place of Publication:
New York : McGraw-Hill, 2014.
Language Note:
English
System Details:
text file
Summary:
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 example applications. Java WebSocket Programming explains how to design client/server applications, incorporate full-duplex messaging, establish connections, create endpoints, handle path mapping, and secure data. You’ll also learn how to encrypt Web transmissions and enrich legacy applications with Java WebSocket. Develop Web applications using the Java WebSocket API Create and publish annotated and programmatic endpoints Manage the lifecycle events of WebSocket endpoints Maintain reliable connections across the endpoint lifecycle Manage synchronous and asynchronous messaging Define encoding and decoding strategies for complex messaging Configure message timeouts, size limits, and exceptions Map message paths and route incoming URIs to Web containers Secure data, authenticate users, and encrypt connections
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
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
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
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
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
Chapter 7: Securing WebSocket Server Endpoints
Security Concepts
Java WebSocket API Security
Authentication
Authorization
Private Communication
Java WebSocket Security APIs
Stock Account Application
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
Index.
Notes:
"Oracle Press."
Includes index.
Description based on print version record.
ISBN:
9780071827188
0071827188
OCLC:
857713440

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account