Skip to content

Commit

Permalink
First pass at websocket (#174)
Browse files Browse the repository at this point in the history
Signed-off-by: Guillermo González de Agüero <z06.guillermo@gmail.com>
  • Loading branch information
ggam authored and bshannon committed Sep 16, 2019
1 parent 19d268b commit c9a7334
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 15 deletions.
10 changes: 5 additions & 5 deletions src/main/jbake/content/websocket.adoc
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
type=page
status=published
title=Java API for WebSocket
title=Jakarta WebSocket
next=websocket001.html
prev=servlets018.html
~~~~~~
= Java API for WebSocket
= Jakarta WebSocket


[[GKJIQ5]][[java-api-for-websocket]]

19 Java API for WebSocket
-------------------------
19 Jakarta WebSocket
--------------------


This chapter describes the Java API for WebSocket (JSR 356), which
This chapter describes Jakarta WebSocket, which
provides support for creating WebSocket applications. WebSocket is an
application protocol that provides full-duplex communications between
two peers over the TCP protocol.
Expand Down
8 changes: 4 additions & 4 deletions src/main/jbake/content/websocket002.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ Creating WebSocket Applications in the Jakarta EE Platform
Creating WebSocket Applications in the Jakarta EE Platform
----------------------------------------------------------

The Jakarta EE platform includes the Java API for WebSocket (JSR 356),
The Jakarta EE platform includes Jakarta WebSocket,
which enables you to create, configure, and deploy WebSocket endpoints
in web applications. The WebSocket client API specified in JSR 356 also
in web applications. The WebSocket client API specified in Jakarta WebSocket also
enables you to access remote WebSocket endpoints from any Java
application.

The Java API for WebSocket consists of the following packages.
Jakarta WebSocket consists of the following packages.

* The `javax.websocket.server` package contains annotations, classes,
and interfaces to create and configure server endpoints.
Expand All @@ -27,7 +27,7 @@ interfaces, and exceptions that are common to client and server
endpoints.
WebSocket endpoints are instances of the `javax.websocket.Endpoint`
class. The Java API for WebSocket enables you to create two kinds of
class. Jakarta WebSocket enables you to create two kinds of
endpoints: programmatic endpoints and annotated endpoints. To create a
programmatic endpoint, you extend the `Endpoint` class and override its
lifecycle methods. To create an annotated endpoint, you decorate a Java
Expand Down
2 changes: 1 addition & 1 deletion src/main/jbake/content/websocket007.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Using Encoders and Decoders
Using Encoders and Decoders
---------------------------

The Java API for WebSocket provides support for converting between
Jakarta WebSocket provides support for converting between
WebSocket messages and custom Java types using encoders and decoders. An
encoder takes a Java object and produces a representation that can be
transmitted as a WebSocket message; for example, encoders typically
Expand Down
2 changes: 1 addition & 1 deletion src/main/jbake/content/websocket010.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Specifying an Endpoint Configurator Class
Specifying an Endpoint Configurator Class
-----------------------------------------

The Java API for WebSocket enables you to configure how the container
Jakarta WebSocket enables you to configure how the container
creates server endpoint instances. You can provide custom endpoint
configuration logic to:

Expand Down
2 changes: 1 addition & 1 deletion src/main/jbake/content/websocket012.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ executes the blocking operation in a different thread using the
`ManagedExecutorService.submit` method from Concurrency Utilities for
Jakarta EE.

The Java API for WebSocket specification requires that Jakarta EE
Jakarta WebSocket specification requires that Jakarta EE
implementations instantiate endpoint classes once per connection. This
facilitates the development of WebSocket endpoints, because you are
guaranteed that only one thread is executing the code in a WebSocket
Expand Down
5 changes: 2 additions & 3 deletions src/main/jbake/content/websocket013.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ Further Information about WebSocket
Further Information about WebSocket
-----------------------------------

For more information on WebSocket in Jakarta EE, see the Java API for
WebSocket specification:
For more information on WebSocket in Jakarta EE, see the Jakarta WebSocket specification:

`http://www.jcp.org/en/jsr/detail?id=356`
`https://jakarta.ee/specifications/websocket/1.1/`


0 comments on commit c9a7334

Please sign in to comment.