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

Commit 3d84c28

Browse files
fix table formats
1 parent 4d40eb0 commit 3d84c28

File tree

6 files changed

+44
-55
lines changed

6 files changed

+44
-55
lines changed

src/main/jbake/content/jaxrs-advanced001.adoc

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title=Annotations for Field and Bean Properties of Resource Classes
44
next=jaxrs-advanced002.html
55
prev=jaxrs-advanced.html
66
~~~~~~
7-
Annotations for Field and Bean Properties of Resource Classes
8-
=============================================================
7+
= Annotations for Field and Bean Properties of Resource Classes
8+
99

1010
[[GKKRB]]
1111

@@ -20,11 +20,11 @@ JAX-RS provides the annotations listed in link:#GKOBO[Table 32-1].
2020

2121
[[sthref146]][[GKOBO]]
2222

23-
Table 32-1 Advanced JAX-RS Annotations
23+
*Table 32-1 Advanced JAX-RS Annotations*
2424

25-
[width="22%",cols="100%,",options="header",]
25+
[width="50%",cols="15%,35%"]
2626
|=======================================================================
27-
|Annotation |Description
27+
|*Annotation* |*Description*
2828
|`@Context` |Injects information into a class field, bean property, or
2929
method parameter
3030

@@ -144,9 +144,9 @@ manager's name of an employee:
144144
<FORM action="http://example.com/employees/" method="post">
145145
<p>
146146
<fieldset>
147-
Employee name: <INPUT type="text" name="empname" tabindex="1">
148-
Employee address: <INPUT type="text" name="empaddress" tabindex="2">
149-
Manager name: <INPUT type="text" name="managername" tabindex="3">
147+
Employee name: <INPUT type="text" name="empname" tabindex="1">
148+
Employee address: <INPUT type="text" name="empaddress" tabindex="2">
149+
Manager name: <INPUT type="text" name="managername" tabindex="3">
150150
</fieldset>
151151
</p>
152152
</FORM>
@@ -211,5 +211,3 @@ public String getHeaders(@Context HttpHeaders hh) {
211211
MultivaluedMap<String, Cookie> pathParams = hh.getCookies();
212212
}
213213
----
214-
215-

src/main/jbake/content/jaxrs-advanced002.adoc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title=Validating Resource Data with Bean Validation
44
next=jaxrs-advanced003.html
55
prev=jaxrs-advanced001.html
66
~~~~~~
7-
Validating Resource Data with Bean Validation
8-
=============================================
7+
= Validating Resource Data with Bean Validation
8+
99

1010
[[BABCJEDF]]
1111

@@ -229,8 +229,6 @@ the JAX-RS runtime will respond to the client request with a 500
229229
If a `ConstraintValidationException` is thrown, the JAX-RS runtime will
230230
respond to the client with one of the following HTTP status codes:
231231

232-
* 500 (Internal Server Error) if the exception was thrown while
232+
* `500` (Internal Server Error) if the exception was thrown while
233233
validating a method return type
234-
* 400 (Bad Request) in all other cases
235-
236-
234+
* `400` (Bad Request) in all other cases

src/main/jbake/content/jaxrs001.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title=What Are RESTful Web Services?
44
next=jaxrs002.html
55
prev=jaxrs.html
66
~~~~~~
7-
== What Are RESTful Web Services?
7+
= What Are RESTful Web Services?
88

99

1010
[[GIJQY]]

src/main/jbake/content/jaxrs002.adoc

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title=Creating a RESTful Root Resource Class
44
next=jaxrs003.html
55
prev=jaxrs001.html
66
~~~~~~
7-
Creating a RESTful Root Resource Class
8-
======================================
7+
= Creating a RESTful Root Resource Class
8+
99

1010
[[GILIK]]
1111

@@ -58,11 +58,11 @@ used. Further information on the JAX-RS APIs can be viewed at
5858

5959
[[sthref137]][[GINNA]]
6060

61-
Table 30-1 Summary of JAX-RS Annotations
61+
*Table 30-1 Summary of JAX-RS Annotations*
6262

63-
[width="22%",cols="100%,",options="header",]
63+
[width="99%",cols="10%,90%"]
6464
|=======================================================================
65-
|Annotation |Description
65+
|*Annotation* |*Description*
6666
|`@Path` |The `@Path` annotation's value is a relative URI path
6767
indicating where the Java class will be hosted: for example,
6868
`/helloworld`. You can also embed variables in the URIs to make a URI
@@ -160,27 +160,27 @@ class that uses JAX-RS annotations:
160160
[source,oac_no_warn]
161161
----
162162
package javaeetutorial.hello;
163-
163+
164164
import javax.ws.rs.Consumes;
165165
import javax.ws.rs.GET;
166166
import javax.ws.rs.PUT;
167167
import javax.ws.rs.Path;
168168
import javax.ws.rs.Produces;
169169
import javax.ws.rs.core.Context;
170170
import javax.ws.rs.core.UriInfo;
171-
171+
172172
/**
173173
* Root resource (exposed at "helloworld" path)
174174
*/
175175
@Path("helloworld")
176176
public class HelloWorld {
177177
@Context
178178
private UriInfo context;
179-
179+
180180
/** Creates a new instance of HelloWorld */
181181
public HelloWorld() {
182182
}
183-
183+
184184
/**
185185
* Retrieves representation of an instance of helloWorld.HelloWorld
186186
* @return an instance of java.lang.String
@@ -354,7 +354,7 @@ following variable names and values are used in the examples:
354354
[width="100%",cols="100%",]
355355
|====================================================
356356
a|
357-
Note:
357+
*Note*:
358358

359359
The value of the `name3` variable is an empty string.
360360

@@ -363,14 +363,14 @@ The value of the `name3` variable is an empty string.
363363

364364
[[sthref138]][[GIPYM]]
365365

366-
Table 30-2 Examples of URI Path Templates
366+
*Table 30-2 Examples of URI Path Templates*
367367

368-
[width="45%",cols=",100%",options="header",]
368+
[width="80%",cols="40%,40%"]
369369
|=======================================================================
370-
|URI Path Template |URI After Substitution
370+
|*URI Path Template* |*URI After Substitution*
371371
|`http://example.com/{name1}/{name2}/` |`http://example.com/james/gatz/`
372372

373-
|`http://example.com/{question}/``{question}/{question}/`
373+
|`http://example.com/{question}/{question}/{question}/`
374374
|`http://example.com/why/why/why/`
375375

376376
|`http://example.com/maps/{location}`
@@ -541,7 +541,7 @@ The following example shows how to use `MessageBodyWriter` with the
541541
----
542542
@Produces("text/html")
543543
@Provider
544-
public class FormWriter implements
544+
public class FormWriter implements
545545
MessageBodyWriter<Hashtable<String, String>> {
546546
----
547547

@@ -552,7 +552,7 @@ The following example shows how to use `ResponseBuilder`:
552552
@GET
553553
public Response getItem() {
554554
System.out.println("GET ITEM " + container + " " + item);
555-
555+
556556
Item i = MemoryStore.MS.getItem(container, item);
557557
if (i == null)
558558
throw new NotFoundException("Item not found");
@@ -561,7 +561,7 @@ public Response getItem() {
561561
ResponseBuilder rb = request.evaluatePreconditions(lastModified, et);
562562
if (rb != null)
563563
return rb.build();
564-
564+
565565
byte[] b = MemoryStore.MS.getItemData(container, item);
566566
return Response.ok(b, i.getMimeType()).
567567
lastModified(lastModified).tag(et).build();
@@ -798,7 +798,7 @@ public Response smooth(
798798
@DefaultValue("2") @QueryParam("step") int step,
799799
@DefaultValue("true") @QueryParam("min-m") boolean hasMin,
800800
@DefaultValue("true") @QueryParam("max-m") boolean hasMax,
801-
@DefaultValue("true") @QueryParam("last-m") boolean hasLast,
801+
@DefaultValue("true") @QueryParam("last-m") boolean hasLast,
802802
@DefaultValue("blue") @QueryParam("min-color") ColorParam minColor,
803803
@DefaultValue("green") @QueryParam("max-color") ColorParam maxColor,
804804
@DefaultValue("red") @QueryParam("last-color") ColorParam lastColor
@@ -1052,5 +1052,3 @@ using an `Application` subclass.
10521052
<url-pattern>/services/*</url-pattern>
10531053
</servlet-mapping>
10541054
----
1055-
1056-

src/main/jbake/content/jaxrs003.adoc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title=Example Applications for JAX-RS
44
next=jaxrs004.html
55
prev=jaxrs002.html
66
~~~~~~
7-
Example Applications for JAX-RS
8-
===============================
7+
= Example Applications for JAX-RS
8+
99

1010
[[GIPZZ]]
1111

@@ -36,7 +36,7 @@ the application, and you simply need to implement the appropriate
3636
method.
3737

3838
You can find a version of this application at
39-
tut-install`/examples/jaxrs/hello/`.
39+
`_tut-install_` `/examples/jaxrs/hello/`.
4040

4141
The following topics are addressed here:
4242

@@ -80,7 +80,7 @@ public String getHtml() {
8080
[width="100%",cols="100%",]
8181
|=======================================================================
8282
a|
83-
Note:
83+
*Note*:
8484

8585
Because the MIME type produced is HTML, you can use HTML tags in your
8686
return statement.
@@ -118,7 +118,7 @@ The rsvp Example Application
118118
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
119119

120120
The `rsvp` example application, located in the
121-
tut-install`/examples/jaxrs/rsvp/` directory, allows invitees to an
121+
`_tut-install_` `/examples/jaxrs/rsvp/` directory, allows invitees to an
122122
event to indicate whether they will attend. The events, people invited
123123
to the event, and the responses to the invite are stored in a Java DB
124124
database using the Java Persistence API. The JAX-RS resources in `rsvp`
@@ -336,5 +336,3 @@ REST-like developer interfaces to data include Twitter and Amazon S3
336336
created, listed, and retrieved using either a REST-style HTTP interface
337337
or a SOAP interface. The examples that ship with Jersey include a
338338
storage service example with a RESTful interface.
339-
340-

src/main/jbake/content/jaxws003.adoc

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title=Types Supported by JAX-WS
44
next=jaxws004.html
55
prev=jaxws002.html
66
~~~~~~
7-
Types Supported by JAX-WS
8-
=========================
7+
= Types Supported by JAX-WS
8+
99

1010
[[BNAZC]]
1111

@@ -37,11 +37,11 @@ types in JAXB.
3737

3838
[[sthref135]][[BNAZU]]
3939

40-
Table 29-1 Mapping of XML Data Types to Java Data Types in JAXB
40+
*Table 29-1 Mapping of XML Data Types to Java Data Types in JAXB*
4141

42-
[width="27%",cols="100%,",options="header",]
42+
[width="50%",cols="20%,30%"]
4343
|=========================================================
44-
|XML Schema Type |Java Data Type
44+
|*XML Schema Type* |*Java Data Type*
4545
|`xsd:string` |`java.lang.String`
4646
|`xsd:integer` |`java.math.BigInteger`
4747
|`xsd:int` |`int`
@@ -80,11 +80,11 @@ data types.
8080

8181
[[sthref136]][[BNAZX]]
8282

83-
Table 29-2 Mapping of Java Classes to XML Data Types in JAXB
83+
*Table 29-2 Mapping of Java Classes to XML Data Types in JAXB*
8484

85-
[width="49%",cols=",100%",options="header",]
85+
[width="50%",cols="30%,20%"]
8686
|=============================================================
87-
|Java Class |XML Data Type
87+
|*Java Class* |*XML Data Type*
8888
|`java.lang.String` |`xs:string`
8989
|`java.math.BigInteger` |`xs:integer`
9090
|`java.math.BigDecimal` |`xs:decimal`
@@ -100,6 +100,3 @@ Table 29-2 Mapping of Java Classes to XML Data Types in JAXB
100100
|`javax.xml.transform.Source` |`xs:base64Binary`
101101
|`java.util.UUID` |`xs:string`
102102
|=============================================================
103-
104-
105-

0 commit comments

Comments
 (0)