File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -117,11 +117,9 @@ Table of Contents
11711715 . [ Bundles service] ( #bundles-service ) .
11811816 . [ Asynchronous API] ( #asynchronous-api ) .
11911917 . [ Getting serialized content from response] ( #getting-serialized-content-from-response ) .
120- 18 .
121- 19 .
122- 20 . [ Possible issues] ( #possible-issues ) .
123- 21 . [ Maven dependency to add jasperserver-rest-client to your app] ( #maven-dependency-to-add-jasperserver-rest-client-to-your-app ) .
124- 22 . [ License] ( #license ) .
120+ 18 . [ Possible issues] ( #possible-issues ) .
121+ 19 . [ Maven dependency to add jasperserver-rest-client to your app] ( #maven-dependency-to-add-jasperserver-rest-client-to-your-app ) .
122+ 20 . [ License] ( #license ) .
125123
126124Introduction
127125-------------
@@ -246,15 +244,15 @@ In configuration file:
246244``` java
247245logHttp= true
248246logHttpEntity= true
249-
247+ ```
250248####Switching between JSON and XML
251249You can configure a client to make request either with JSON or XML content.
252250``` java
253251RestClientConfiguration configuration = new RestClientConfiguration (" http://localhost:4444/jasperserver" );
254252configuration. setContentMimeType(MimeType . XML );
255253configuration. setAcceptMimeType(MimeType . XML );
256254```
257- Or in configuration.properties:
255+ Or in ` configuration.properties ` :
258256```
259257contentMimeType=JSON
260258acceptMimeType=JSON
You can’t perform that action at this time.
0 commit comments