@@ -148,23 +148,6 @@ public void setAccept(final String accept) {
148
148
setHeader (ACCEPT_HEADER , accept );
149
149
}
150
150
151
- /**
152
- * Sets the HTTP request body. The default value for the request body is
153
- * {@value INPUT_DESIGNATOR} <i>if the {@link #setMethod(Method) request
154
- * method} accepts a request body</i>, which means it will use the {@link
155
- * #process(String) input data} data as request body <i>if the input has
156
- * not already been used</i>; otherwise, no request body will be set by
157
- * default.
158
- *
159
- * <p>If a request body has been set, but the request method does not
160
- * accept a body, the method <i>may</i> be changed to {@code POST}.
161
- *
162
- * @param body the request body
163
- */
164
- public void setBody (final String body ) {
165
- this .body = body ;
166
- }
167
-
168
151
/**
169
152
* Sets the HTTP {@value CONTENT_TYPE_HEADER} header value. This is a
170
153
* MIME type such as {@code text/plain} or {@code application/json}.
@@ -284,6 +267,23 @@ public void setUrl(final String url) {
284
267
this .url = url ;
285
268
}
286
269
270
+ /**
271
+ * Sets the HTTP request body. The default value for the request body is
272
+ * {@value INPUT_DESIGNATOR} <i>if the {@link #setMethod(Method) request
273
+ * method} accepts a request body</i>, which means it will use the {@link
274
+ * #process(String) input data} data as request body <i>if the input has
275
+ * not already been used</i>; otherwise, no request body will be set by
276
+ * default.
277
+ *
278
+ * <p>If a request body has been set, but the request method does not
279
+ * accept a body, the method <i>may</i> be changed to {@code POST}.
280
+ *
281
+ * @param body the request body
282
+ */
283
+ public void setBody (final String body ) {
284
+ this .body = body ;
285
+ }
286
+
287
287
@ Override
288
288
public void process (final String input ) {
289
289
try {
0 commit comments