Index
A
- @ApplicationPath annotation / More on JAX-RS annotations, Java EE and Server-sent Events
- @Asynchronous annotation / Asynchronous processing in EJB 3.1 and 3.2
- addEventListener function / Server-sent Events and JavaScript
- anatomy, SSE / The SSE anatomy
- applications, based on Server-sent Events
- best practices / Best practices for applications based on Server-sent Events
- Application subclass
- defining / Defining the Application subclass
- asynchronous EJB invocation
- Asynchronous Servlet client
- using, in event notification application / The Asynchronous Servlet client used by the application
- asynchronous session bean
- developing / Developing an asynchronous session bean
- async session bean
- client servlet, developing for / Developing a client servlet for the async session bean
B
- Base URI / Safety and idempotence
- Bean Validation API
- using, with JAX-RS / Using the Bean Validation API with JAX-RS
- best practices, Server-sent Events based applications
- origin, checking for event source / Checking if the event source's origin is as expected
- working with proxy servers / Working with proxy servers and Server-sent Events
- working with Server-sent Events / Working with proxy servers and Server-sent Events
- fault tolerance, handling / Handling fault tolerance for Server-sent Events
- best practices, WebSockets based applications
- about / Best practices for WebSockets based applications
- rate, limiting of sending data / Throttling the rate of sending data
- maximum size, controlling of message / Controlling the maximum size of the message
- working with proxy servers / Working with proxy servers and WebSockets
- working with WebSockets / Working with proxy servers and WebSockets
- binary data
- blob
- book
- searching, JavaScript used / Using JavaScript
- chekcing out, JavaScript used / Using JavaScript
- returning, JavaScript used / Using JavaScript
- placing on hold, JavaScript used / Using JavaScript
- book, checking out
- JAX-RS resource method, for DELETE request / The JAX-RS resource method for the DELETE request
- book, placing on hold
- JAX-RS resource method, for asynchronous POST request / The JAX-RS resource method for the asynchronous POST request
- book, returning
- JAX-RS resource method, for asynchronous POST request / The JAX-RS resource method for the POST request
- BookCollectionWriter class
- implementing, in library application / JAX-RS Entity Provider: BookCollectionWriter
- books collection
- browsing, in library application / Browsing the collection of books
- browsing, JavaScript used / Using JavaScript
- books collection, browsing
- JAX-RS resource method, for GET request / The JAX-RS resource method for the GET request
- book search
- WebSockets endpoint / The WebSockets endpoint
C
- @ClientEndpoint annotation / Java EE and WebSockets
- about / The Java WebSocket Client API
- attributes / The Java WebSocket Client API
- value attribute / The Java WebSocket Client API
- encoders attribute / The Java WebSocket Client API
- decoders attribute / The Java WebSocket Client API
- configurator attribute / The Java WebSocket Client API
- subprotocols attribute / The Java WebSocket Client API
- @Consumes annotation / More on JAX-RS annotations, MessageBodyReader, Java EE and Server-sent Events
- @Context annotation / More on JAX-RS annotations, Java EE and Server-sent Events
- chunked transfer encoding, long polling / Chunked transfer encoding
- Client API, for JAX-RS / The Client API for JAX-RS
- client servlet
- developing, for async session bean / Developing a client servlet for the async session bean
- close function / Server-sent Events and JavaScript, Browser and JavaScript support for WebSockets
- components, RESTful Web Services
- base URI / Safety and idempotence
- media type / Safety and idempotence
- HTTP methods / Safety and idempotence
- content types / Entities in JAX-RS
- createRequest() function / Using JavaScript
- custom entity providers, JAX-RS
- about / Custom entity providers in JAX-RS
- MessageBodyReader / MessageBodyReader
- MessageBodyWriter / MessageBodyWriter
D
- @DELETE annotation / More on JAX-RS annotations, Java EE and Server-sent Events
- Data Confidentiality (CONFIDENTIAL) / Security and WebSockets
- Data Integrity (INTEGRAL) / Security and WebSockets
- decode() method / Encoders and decoders in Java API for WebSockets
- decoders
- DELETE request
- about / Verbs in REST, Safety and idempotence
E
- EJB
- interacting, with Twitter Search API / The EJB that interacts with the Twitter Search API
- EJB 3.1
- asynchronous processing / Asynchronous processing in EJB 3.1 and 3.2
- EJB 3.2
- asynchronous processing / Asynchronous processing in EJB 3.1 and 3.2
- EJB timer / The event notification GUI
- emerging standards
- SSE / Server-sent Events
- ID, associating with event / Associating an ID with an event
- WebSockets / WebSockets
- and Java EE / Java EE and the emerging standards
- comparing / Comparison and use cases of different programming models and standards
- encoders
- entities, JAX-RS / Entities in JAX-RS
- event
- ID, associating with / Associating an ID with an event
- event based API
- used, for manipulating JSON documents / Manipulating JSON documents using the event-based API
- event names
- associating, with events / Associating event names with events
- event notification application
- about / Event notification application
- projects layout / The project's layout
- GUI / The event notification GUI
- detailed look / A detailed look at the event notification application
- web.xml / The web.xml
- servlet deployment descriptor, deploying / The web.xml
- Application class, implementing / The implementation of the Application class
- JAX-RS resource, using / The JAX-RS resource used by the application
- Asynchronous Servlet client, using / The Asynchronous Servlet client used by the application
- EJB, interacting with Twitter Search API / The EJB that interacts with the Twitter Search API
- events
- event names, associating with / Associating event names with events
- EventSource
- about / Server-sent Events
- EventSource interface
- addEventListener function / Server-sent Events and JavaScript
- removeEventListener event function / Server-sent Events and JavaScript
- onmessage event function / Server-sent Events and JavaScript
- onerror event function / Server-sent Events and JavaScript
- onopen event function / Server-sent Events and JavaScript
- close function / Server-sent Events and JavaScript
F
- fault tolerance
- handling, for Server-sent Events / Handling fault tolerance for Server-sent Events
- features, JAX-RS
- Client API / Introduction to JAX-RS, The Client API for JAX-RS
- server side asynchronous support / Introduction to JAX-RS
- bean validation support / Introduction to JAX-RS, Using the Bean Validation API with JAX-RS
- filters
- about / Filters and interceptors
- fire-and-forget mechanism / Asynchronous processing in EJB 3.1 and 3.2
G
- @GET annotation / More on JAX-RS annotations, Java EE and Server-sent Events
- getData() method / Developing a Server-sent Event client using Jersey API
- GET request
- about / Verbs in REST, Safety and idempotence
- getSize() method / MessageBodyWriter
- GlassFish
- GlassFish v4.0
- google-gson / Producing and parsing JSON documents
- GUI, event notification application / The event notification GUI
- GUI, library application / The library application GUI
H
- HEAD request
- about / Verbs in REST, Safety and idempotence
- HTML page, library application / The HTML page
- HTTP / Polling
- HTTP methods / Safety and idempotence
I
- ID
- associating, with event / Associating an ID with an event
- idempotent method, REST / Safety and idempotence
- interceptors
- about / Filters and interceptors
- invoke-and-check-later mechanism
- isWritable() method / MessageBodyWriter
J
- Jackson / Producing and parsing JSON documents
- Java API, for WebSockets
- JavaBeans / Using the Bean Validation API with JAX-RS
- Java EE
- and emerging standards / Java EE and the emerging standards
- and Server-sent Events / Java EE and Server-sent Events
- and WebSockets / Java EE and WebSockets
- JavaScript
- and Server-sent Events / Server-sent Events and JavaScript
- Java Web Socket Client API
- about / The Java WebSocket Client API
- javax.json package / An overview of JSON API
- JAX-RS
- about / Introduction to JAX-RS
- features / Introduction to JAX-RS
- root resource, defining / Defining a root resource as identified by a URI
- methods, defining for resource / Defining the methods for the resource
- MIME types, defining / Defining the MIME types
- Application subclass, defining / Defining the Application subclass
- subresources, defining / Defining the subresources
- entities / Entities in JAX-RS
- custom entity providers / Custom entity providers in JAX-RS
- Bean Validation API, using with / Using the Bean Validation API with JAX-RS
- JAX-RS 2.0
- new features / New features in JAX-RS 2.0
- JAX-RS annotations
- @Produces annotation / More on JAX-RS annotations
- about / More on JAX-RS annotations
- @Consumes annotation / More on JAX-RS annotations
- @POST annotation / More on JAX-RS annotations
- @Path / More on JAX-RS annotations
- @Produces / More on JAX-RS annotations
- @Consumes / More on JAX-RS annotations
- @GET / More on JAX-RS annotations
- @POST / More on JAX-RS annotations
- @DELETE / More on JAX-RS annotations
- @PathParam / More on JAX-RS annotations
- @ApplicationPath / More on JAX-RS annotations
- @Context / More on JAX-RS annotations
- JAX-RS Entity Provider / JAX-RS Entity Provider: BookCollectionWriter
- JAX-RS resource
- using, in event notification application / The JAX-RS resource used by the application
- JAXB / MessageBodyReader
- Jersey API
- used, for developing Server-sent Event client / Developing a Server-sent Event client using Jersey API
- JMS (Java Message Service) / Asynchronous processing in EJB 3.1 and 3.2
- JSON-P API
- JSON API
- overview / An overview of JSON API
- JsonParser class / An overview of JSON API
- JsonGenerator class / An overview of JSON API
- JsonBuilder class / An overview of JSON API
- JsonReader class / An overview of JSON API
- JsonWriter class / An overview of JSON API
- JsonArray class / An overview of JSON API
- JsonString class / An overview of JSON API
- JsonNumber class / An overview of JSON API
- JsonArray class / An overview of JSON API
- JsonBuilder class / An overview of JSON API
- JSON documents
- producing / Producing and parsing JSON documents, Producing JSON documents
- parsing / Producing and parsing JSON documents, Parsing JSON documents
- manipulating, event based API used / Manipulating JSON documents using the event-based API
- manipulating, JSON object model used / Manipulating JSON documents using the JSON object model
- generating / Generating JSON documents
- JSON format / Producing and parsing JSON documents
- JsonGenerator class / An overview of JSON API
- JsonNumber class / An overview of JSON API
- JsonObject class / An overview of JSON API
- JSON object model
- used, for manipulating JSON documents / Manipulating JSON documents using the JSON object model
- JsonParser class / An overview of JSON API
- JsonReader class / An overview of JSON API
- JsonString class / An overview of JSON API
- JsonWriter class / An overview of JSON API
- JSR 353 Java API for JSON Processing / The Asynchronous Servlet client used by the application
L
- Last-Event-ID / Handling fault tolerance for Server-sent Events
- library application
- about / The library application
- deploying / How the application is deployed
- projects layout / The project's layout
- GUI / The library application GUI
- interaction, monitoring / Application interaction monitoring
- detailed look / A detailed look at the library application
- servlet deployment descriptor, configuring / The web.xml
- web.xml / The web.xml
- Application subclass, implementing / The Application subclass
- JAX-RS Entity Provider / JAX-RS Entity Provider: BookCollectionWriter
- BookCollectionWriter class, implementing / JAX-RS Entity Provider: BookCollectionWriter
- HTML page / The HTML page
- book collection, browsing / Browsing the collection of books
- book, searching / Searching for a book
- book, checking out / Checking out a book
- book, returning / Returning a book
- hold, placing on book / Placing a hold on a book
- Singleton EJB BookService / The Singleton EJB BookService
- long polling
- about / Long polling, Comparison and use cases of different programming models and standards
- chunked transfer encoding / Chunked transfer encoding
- limitations / Chunked transfer encoding
- long polling client
- and XMLHttpRequest / Long polling clients and XMLHttpRequest
M
- marshalling / MessageBodyReader
- Maven
- MDBs (Message Driven Beans) / Asynchronous processing in EJB 3.1 and 3.2
- media type / Safety and idempotence
- MessageBodyReader interface
- about / MessageBodyReader
- MessageBodyWriter interface
- about / MessageBodyWriter
- messages data
- MIME types
- defining / Defining the MIME types
N
- new features, JAX-RS 2.0
- asynchronous request processing / Asynchronous request and response processing
- asynchronous response processing / Asynchronous request and response processing
- filters / Filters and interceptors
- interceptors / Filters and interceptors
- NIO API / NIO API and Servlet 3.1
O
- @OnClose annotation / Java EE and WebSockets
- @OnError annotation / Java EE and WebSockets
- @OnMessage annotation / Java EE and WebSockets, Encoders and decoders in Java API for WebSockets
- @OnOpen annotation / Java EE and WebSockets, Encoders and decoders in Java API for WebSockets
- OAuth / The EJB that interacts with the Twitter Search API
- object model API / When to use the streaming versus the object API
- onAllDataRead method / Introducing ReadListener and WriteListener
- onclose event function / Browser and JavaScript support for WebSockets
- onDataAvailable method / Introducing ReadListener and WriteListener
- onerror event function / Server-sent Events and JavaScript, Browser and JavaScript support for WebSockets
- onError method / Introducing ReadListener and WriteListener
- onEvent() method / Developing a Server-sent Event client using Jersey API
- onmessage event function / Server-sent Events and JavaScript, Browser and JavaScript support for WebSockets
- onopen event function / Server-sent Events and JavaScript, Browser and JavaScript support for WebSockets
- onWritePossible method / Introducing ReadListener and WriteListener
- Outboundevent.Builder API / Working with proxy servers and Server-sent Events
P
- @Path annotation / More on JAX-RS annotations, Java EE and Server-sent Events
- @PathParam annotation / Defining the subresources, More on JAX-RS annotations, Java EE and Server-sent Events, Java EE and WebSockets
- @POST annotation / More on JAX-RS annotations, Java EE and Server-sent Events
- @Produces annotation / More on JAX-RS annotations, MessageBodyReader, Java EE and Server-sent Events
- @Provider annotation / MessageBodyReader
- POJOs
- converting, to RESTful endpoints / Converting POJOs to RESTful resources
- Polifill
- polling
- POST request
- about / Verbs in REST, Safety and idempotence
- processRequest function / Server-sent Events and JavaScript
- programming models
- about / The programming models
- polling / Polling
- long polling / Long polling
- projects layout, event notification application / The project's layout
- projects layout, library application / The project's layout
- proxy servers
- working with / Working with proxy servers and Server-sent Events
- PUT request
- about / Verbs in REST, Safety and idempotence
Q
- Quality of Service (QoS) / The SSE anatomy
R
- ReadListener interface
- about / Introducing ReadListener and WriteListener
- onDataAvailable method / Introducing ReadListener and WriteListener
- onAllDataRead method / Introducing ReadListener and WriteListener
- onError method / Introducing ReadListener and WriteListener
- removeEventListener event function / Server-sent Events and JavaScript
- Remy Polyfill
- requests, REST
- GET / Verbs in REST
- POST / Verbs in REST
- PUT / Verbs in REST
- DELETE / Verbs in REST
- HEAD / Verbs in REST
- response
- validation errors, reading from / Reading validation errors from the response
- REST
- about / Understanding REST
- requests / Verbs in REST
- safe method / Safety and idempotence
- idempotent method / Safety and idempotence
- RESTful endpoints
- POJOs, converting to / Converting POJOs to RESTful resources
- RESTful Web Service
- about / RESTful Web Services
- components / Safety and idempotence
- retry directive / Connection loss and reconnecting retries
- root resource, JAX-RS
S
- @ServerEndpoint annotation / Java EE and WebSockets
- about / Encoders and decoders in Java API for WebSockets
- attributes / Encoders and decoders in Java API for WebSockets
- value attribute / Encoders and decoders in Java API for WebSockets
- encoders attribute / Encoders and decoders in Java API for WebSockets
- decoders attribute / Encoders and decoders in Java API for WebSockets
- configurator attribute / Encoders and decoders in Java API for WebSockets
- subprotocols attribute / Encoders and decoders in Java API for WebSockets
- safe method, REST / Safety and idempotence
- sendBrowseRequest() function / Browsing the collection of books
- sendCheckoutRequest() function / Using JavaScript
- send function
- sendHoldRequest() function / Using JavaScript
- serialize
- Server-sent Event client
- developing, Jersey API used / Developing a Server-sent Event client using Jersey API
- Server-sent Events
- and JavaScript / Server-sent Events and JavaScript
- and Java EE / Java EE and Server-sent Events
- about / Server-sent Events
- working with / Working with proxy servers and Server-sent Events
- fault tolerance, handling for / Handling fault tolerance for Server-sent Events
- Servlet 3.1
- about / Introducing Servlet 3.1
- ReadListener interface / Introducing ReadListener and WriteListener
- WriteListener interface / Introducing ReadListener and WriteListener
- modifications / More changes in Servlet 3.1
- Servlet API interfaces
- modifications / Changes in the Servlet API interfaces
- ServletInputStream interface
- about / Changes in the Servlet API interfaces
- isFinished property / Changes in the Servlet API interfaces
- isReady property / Changes in the Servlet API interfaces
- setReadListener method / Changes in the Servlet API interfaces
- ServletOutputStream interface
- isReady method / Changes in the Servlet API interfaces
- setWriteListener method / Changes in the Servlet API interfaces
- Singleton EJB BookService
- SSE
- startUpdating function / Polling
- StAX / Manipulating JSON documents using the event-based API
- streaming event based API / When to use the streaming versus the object API
- subresources
- defining / Defining the subresources
T
- twitter4j API / The EJB that interacts with the Twitter Search API
- Twitter Search API
- EJB, interacting with / The EJB that interacts with the Twitter Search API
- Twitter v1.1 API / The EJB that interacts with the Twitter Search API
U
- unmarshalling / MessageBodyReader
- updateDiv function / Polling
V
- validation
- about / Using the Bean Validation API with JAX-RS
- enabling, in application / Enabling validation in the application
- validation errors
- reading, from response / Reading validation errors from the response
W
- WebSocket class
- WebSocket constructor / Browser and JavaScript support for WebSockets
- send function / Browser and JavaScript support for WebSockets
- onopen event function / Browser and JavaScript support for WebSockets
- onclose event function / Browser and JavaScript support for WebSockets
- onmessage event function / Browser and JavaScript support for WebSockets
- onerror event function / Browser and JavaScript support for WebSockets
- close function / Browser and JavaScript support for WebSockets
- WebSocket constructor / Browser and JavaScript support for WebSockets
- Web socket handshake / WebSocket handshake
- WebSockets
- about / WebSockets, Comparison and use cases of different programming models and standards
- JavaScript support / Browser and JavaScript support for WebSockets
- browsers support / Browser and JavaScript support for WebSockets
- and Java EE / Java EE and WebSockets
- securing / Security and WebSockets
- WebSockets based applications
- best practices / Best practices for WebSockets based applications
- willDecode() method / Encoders and decoders in Java API for WebSockets
- WriteListener interface
- writeTo() method / MessageBodyWriter
X
- XML format / Producing and parsing JSON documents
- XMLHttpRequest object
- about / Long polling clients and XMLHttpRequest
- and long polling client / Long polling clients and XMLHttpRequest