Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Commit 44a591b

Browse files
fix table formats
1 parent 0d6d95b commit 44a591b

File tree

5 files changed

+33
-41
lines changed

5 files changed

+33
-41
lines changed

src/main/jbake/content/servlets002.adoc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title=Servlet Lifecycle
44
next=servlets003.html
55
prev=servlets001.html
66
~~~~~~
7-
Servlet Lifecycle
8-
=================
7+
= Servlet Lifecycle
8+
99

1010
[[BNAFI]]
1111

@@ -58,11 +58,11 @@ contains an `HttpSession`.
5858

5959
[[sthref97]][[BNAFL]]
6060

61-
Table 17-1 Servlet Lifecycle Events
61+
*Table 17-1 Servlet Lifecycle Events*
6262

63-
[width="40%",cols="46%,54%,",options="header",]
63+
[width="90%",cols="15%,30%,45%"]
6464
|=======================================================================
65-
|Object |Event |Listener Interface and Event Class
65+
|*Object* |*Event* |*Listener Interface and Event Class*
6666
|Web context |Initialization and destruction
6767
|`javax.servlet.ServletContextListener` and `ServletContextEvent`
6868

@@ -136,5 +136,3 @@ A Servlet Exception Has Occurred
136136

137137
But you can also specify that the container should return a specific
138138
error page for a given exception.
139-
140-

src/main/jbake/content/servlets003.adoc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title=Sharing Information
44
next=servlets004.html
55
prev=servlets002.html
66
~~~~~~
7-
Sharing Information
8-
===================
7+
= Sharing Information
8+
99

1010
[[BNAFO]]
1111

@@ -37,11 +37,11 @@ objects.
3737

3838
[[sthref98]][[BNAFQ]]
3939

40-
Table 17-2 Scope Objects
40+
*Table 17-2 Scope Objects*
4141

42-
[width="54%",cols="30%,70%,",options="header",]
42+
[width="90%",cols="15%,25%,50"]
4343
|=======================================================================
44-
|Scope Object |Class |Accessible From
44+
|*Scope Object* |*Class* |*Accessible From*
4545
|Web context |`javax.servlet.ServletContext` |Web components within a
4646
web context. See link:servlets008.html#BNAGL[Accessing the Web Context].
4747

@@ -89,5 +89,3 @@ When resources can be accessed concurrently, they can be used in an
8989
inconsistent fashion. You prevent this by controlling the access using
9090
the synchronization techniques described in the Threads lesson at
9191
`http://docs.oracle.com/javase/tutorial/essential/concurrency/`.
92-
93-

src/main/jbake/content/servlets012.adoc

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title=Asynchronous Processing
44
next=servlets013.html
55
prev=servlets011.html
66
~~~~~~
7-
Asynchronous Processing
8-
=======================
7+
= Asynchronous Processing
8+
99

1010
[[BEIGCFDF]]
1111

@@ -86,11 +86,11 @@ the `AsyncContext` class.
8686

8787
[[sthref104]][[BEICFIEC]]
8888

89-
Table 17-3 Functionality Provided by the AsyncContext Class
89+
*Table 17-3 Functionality Provided by the AsyncContext Class*
9090

91-
[width="38%",cols="100%,",options="header",]
91+
[width="90%",cols="20%,70"]
9292
|=======================================================================
93-
|Method Signature |Description
93+
|*Method Signature* |*Description*
9494
|`void start(Runnable run)` a|
9595
The container provides a different thread in which the blocking
9696
operation can be processed.
@@ -159,7 +159,7 @@ public class SyncServlet extends HttpServlet {
159159
}
160160
161161
@Override
162-
public void doGet(HttpServletRequest request,
162+
public void doGet(HttpServletRequest request,
163163
HttpServletResponse response) {
164164
response.setContentType("text/html;charset=UTF-8");
165165
String param = request.getParameter("param");
@@ -178,7 +178,7 @@ public class AsyncServlet extends HttpServlet {
178178
/* ... Same variables and init method as in SyncServlet ... */
179179
180180
@Override
181-
public void doGet(HttpServletRequest request,
181+
public void doGet(HttpServletRequest request,
182182
HttpServletResponse response) {
183183
response.setContentType("text/html;charset=UTF-8");
184184
final AsyncContext acontext = request.startAsync();
@@ -209,5 +209,3 @@ sends it to the client.
209209
210210
The service method of `AsyncServlet` returns immediately, and the
211211
request is processed in the asynchronous context.
212-
213-

src/main/jbake/content/servlets013.adoc

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title=Nonblocking I/O
44
next=servlets014.html
55
prev=servlets012.html
66
~~~~~~
7-
Nonblocking I/O
8-
===============
7+
= Nonblocking I/O
8+
99

1010
[[BEIHICDH]]
1111

@@ -52,11 +52,11 @@ interfaces for read listeners and write listeners.
5252

5353
[[sthref106]][[BEIFDICJ]]
5454

55-
Table 17-4 Nonblocking I/O Support in javax.servlet.ServletInputStream
55+
*Table 17-4 Nonblocking I/O Support in javax.servlet.ServletInputStream*
5656

57-
[width="50%",cols="100%,",options="header",]
57+
[width="80%",cols="20%,60%"]
5858
|=======================================================================
59-
|Method |Description
59+
|*Method* |*Description*
6060
|`void setReadListener(ReadListener rl)` |Associates this input stream
6161
with a listener object that contains callback methods to read data
6262
asynchronously. You provide the listener object as an anonymous class or
@@ -71,11 +71,11 @@ object.
7171

7272
[[sthref107]][[BEIFIIIH]]
7373

74-
Table 17-5 Nonblocking I/O Support in javax.servlet.ServletOutputStream
74+
*Table 17-5 Nonblocking I/O Support in javax.servlet.ServletOutputStream*
7575

76-
[width="50%",cols=",100%",options="header",]
76+
[width="80%",cols="20%,60%"]
7777
|=======================================================================
78-
|Method |Description
78+
|*Method* |*Description*
7979
|`void setWriteListener(WriteListener wl)` |Associates this output
8080
stream with a listener object that contains callback methods to write
8181
data asynchronously. You provide the write listener object as an
@@ -89,11 +89,11 @@ blocking.
8989

9090
[[sthref108]][[BEIFGJCG]]
9191

92-
Table 17-6 Listener Interfaces for Nonblocking I/O Support
92+
*Table 17-6 Listener Interfaces for Nonblocking I/O Support*
9393

94-
[width="52%",cols="37%,63%,",options="header",]
94+
[width="99%",cols="20%,20%,60%"]
9595
|=======================================================================
96-
|Interface |Methods |Description
96+
|*Interface* |*Methods* |*Description*
9797
|`ReadListener` a|
9898
`void onDataAvailable()`
9999

@@ -133,12 +133,12 @@ and link:#BEIFGJCG[Table 17-6].
133133
@WebServlet(urlPatterns={"/asyncioservlet"}, asyncSupported=true)
134134
public class AsyncIOServlet extends HttpServlet {
135135
@Override
136-
public void doPost(HttpServletRequest request,
136+
public void doPost(HttpServletRequest request,
137137
HttpServletResponse response)
138138
throws IOException {
139139
final AsyncContext acontext = request.startAsync();
140140
final ServletInputStream input = request.getInputStream();
141-
141+
142142
input.setReadListener(new ReadListener() {
143143
byte buffer[] = new byte[4*1024];
144144
StringBuilder sbuilder = new StringBuilder();
@@ -175,5 +175,3 @@ stream associated with the request and assigns a read listener defined
175175
as an inner class. The listener reads parts of the request as they
176176
become available and then writes some response to the client when it
177177
finishes reading the request.
178-
179-

src/main/jbake/content/servlets014.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ described in link:#BEIBDHAG[Table 17-7].
5252

5353
[[sthref110]][[BEIBDHAG]]
5454

55-
Table 17-7 Protocol Upgrade Support
55+
*Table 17-7 Protocol Upgrade Support*
5656

57-
[width="31%",cols="100%,",options="header",]
57+
[width="80%",cols="20%,60%"]
5858
|=======================================================================
59-
|Class or Interface |Method
59+
|*Class or Interface* |*Method*
6060
|`HttpServletRequest` a|
6161
`HttpUpgradeHandler upgrade(Class handler)`
6262

0 commit comments

Comments
 (0)