Let's take a look into WebSocket functionality and learn about the session that is initialised on first connection, the message handlers that manage messages of type test, binary and pong, how endpoints are defined with URI mappings and URI templates and what constitutes a secure endpoint when implemented by servlet container security.
- [Narrator] Okay, so let's talk…a little bit about a session.…The session object is important because all of the…interactions between a client and an endpoint…are modeled with a session object.…A session is created per client, when the client…first connects to the endpoint…and is maintained until the connection is closed.…In both a pragmatic and intonation methodologies,…the session is used to track the client…and is the logical place to maintain a reference…to the RemoteEndPoint object that is capable…of sending messages to the client.…An instance of the RemoteEndPoint…exposes messages sending capabilities.…
There are three types of messages…that a WebSocket endpoint can handle, text, binary and pong.…And for each message type, only one handler…can be registered for each session.…Within one application, there can be many endpoints.…Each must have a different URI mapping.…The WebSocket API compares the incoming URI…to the collection of endpoint URIs…and determines the best match.…Endpoint paths are either relative URIs or URI templates…
Join Alex Theedom as he guides you through the lifecycle of a WebSocket connection, and discusses the Java EE WebSocket programming methodologies: annotation and programmatic. He shows how to secure and encrypt WebSocket endpoints and use simple techniques to test their implementation. In addition, he explains how to integrate the JSON-processing API and build a front-end and server based WebSocket client.
- WebSocket usage
- WebSocket lifecycle and topology
- WebSocket front end and back end
- WebSocket methodologies
- Annotation methodology and programmatic methodology
- Coding a client API
- Using the JSON Processing API
- Coding the encoder and decoder
- Building the front end
- Testing WebSocket endpoints
Skill Level Intermediate
Java Platforms Compared: SE vs EE vs MEwith Peggy Fisher25m 38s Intermediate
1. Introduction to WebSocket
2. WebSockets Front End and Back End
3. Project Application and Structure
4. Java EE WebSocket API
5. Messages and Encoding
6. Build Web Front End
7. WebSocket Security
8. Testing WebSocket Endpoints
Next steps1m 37s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.