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

Commit 229ff3c

Browse files
committed
JERSEY-3242: Invalid client code snippet.
Change-Id: I4a0bf0553b40a5bc057cd62ed20fbdbb6a16232e
1 parent 5507845 commit 229ff3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/main/docbook/media.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
55
6-
Copyright (c) 2012-2016 Oracle and/or its affiliates. All rights reserved.
6+
Copyright (c) 2012-2017 Oracle and/or its affiliates. All rights reserved.
77
88
The contents of this file are subject to the terms of either the GNU
99
General Public License Version 2 only ("GPL") or the Common Development
@@ -1255,7 +1255,7 @@ public void setPlanet(Planet planet) {
12551255
After valid request is made, service will print out string representation of <literal>Planet</literal>, which can
12561256
look like <literal>Planet{id=2, name='Mars', radius=1.51}</literal>. With JAX-RS client you can do:
12571257
<programlisting language="java" linenumbering="unnumbered">
1258-
webTarget.path("planet").post(planet);
1258+
webTarget.path("planet").request().post(Entity.xml(planet));
12591259
</programlisting>
12601260
</para>
12611261

0 commit comments

Comments
 (0)