Browse Source

Improve Web Servlet section structure

pull/1551/head
Rossen Stoyanchev 7 years ago
parent
commit
d4677be5c0
  1. 9
      src/docs/asciidoc/web/webflux.adoc
  2. 3718
      src/docs/asciidoc/web/webmvc.adoc
  3. 8
      src/docs/asciidoc/web/websocket.adoc

9
src/docs/asciidoc/web/webflux.adoc

@ -544,7 +544,7 @@ In this example the methods returns a String to be written to the response body. @@ -544,7 +544,7 @@ In this example the methods returns a String to be written to the response body.
[[webflux-ann-controller]]
=== @Controller declaration
=== @Controller
[.small]#<<web.adoc#mvc-ann-controller,Same in Spring MVC>>#
You can define controller beans using a standard Spring bean definition.
@ -567,13 +567,10 @@ your Java configuration: @@ -567,13 +567,10 @@ your Java configuration:
}
----
[NOTE]
====
`@RestController` is a composed annotation that is itself annotated with `@Controller` and
`@ResponseBody` indicating a controller whose every method inherits the type-level
`@RestController` is a composed annotation that is itself annotated with
`@Controller` and `@ResponseBody` indicating a controller whose every method inherits the type-level
`@ResponseBody` annotation and therefore writes to the response body (vs model-and-vew
rendering).
====
[[webflux-ann-requestmapping]]

3718
src/docs/asciidoc/web/webmvc.adoc

File diff suppressed because it is too large Load Diff

8
src/docs/asciidoc/web/websocket.adoc

@ -48,7 +48,7 @@ and also provides additional value-add as explained in the rest of the introduct @@ -48,7 +48,7 @@ and also provides additional value-add as explained in the rest of the introduct
[[websocket-into-fallback-options]]
=== WebSocket Fallback Options
=== Fallback Options
An important challenge to adoption is the lack of support for WebSocket in some
browsers. Notably the first Internet Explorer version to support WebSocket is
version 10 (see http://caniuse.com/websockets for support by browser versions).
@ -67,7 +67,7 @@ application otherwise. @@ -67,7 +67,7 @@ application otherwise.
[[websocket-intro-architecture]]
=== A Messaging Architecture
=== Messaging
Aside from short-to-midterm adoption challenges, using WebSocket
brings up important design considerations that are important to recognize
early on, especially in contrast to what we know about building web applications today.
@ -94,7 +94,7 @@ annotation based programming model. @@ -94,7 +94,7 @@ annotation based programming model.
[[websocket-intro-sub-protocol]]
=== Sub-Protocol Support in WebSocket
=== WebSocket Sub-Protocol
WebSocket does imply a __messaging architecture__ but does not mandate the
use of any specific __messaging protocol__. It is a very thin layer over TCP
that transforms a stream of bytes into a stream of messages
@ -127,7 +127,7 @@ WebSocket and over the web. @@ -127,7 +127,7 @@ WebSocket and over the web.
[[websocket-intro-when-to-use]]
=== Should I Use WebSocket?
=== Do I Use WebSocket?
With all the design considerations surrounding the use of WebSocket, it is
reasonable to ask, "When is it appropriate to use?".

Loading…
Cancel
Save