Skip to content

Commit f789e46

Browse files
author
stephen powis
committed
fix codestyle
1 parent 7a17bfa commit f789e46

File tree

1 file changed

+11
-21
lines changed

1 file changed

+11
-21
lines changed

src/main/java/com/darksci/pardot/api/rest/HttpClientRestClient.java

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -117,27 +117,6 @@ public void init(final Configuration configuration) {
117117
httpClient = clientBuilder.build();
118118
}
119119

120-
/**
121-
* Test POST method for now.
122-
*
123-
* @param url Url to POST to.
124-
* @param postParams Any POST parameters to include
125-
* @return String representation of response.
126-
*/
127-
public String submitRequest(final String url, Map<String, String> postParams) throws IOException {
128-
return submitRequest(url, postParams, new StringResponseHandler());
129-
}
130-
131-
/**
132-
* Make a request against the Pardot API.
133-
* @param request The request to submit.
134-
* @return The response, in UTF-8 String format.
135-
* @throws IOException if something goes wrong?
136-
*/
137-
public RestResponse submitRequest(final Request request) throws IOException {
138-
return submitRequest(request, new RestResponseHandler());
139-
}
140-
141120
@Override
142121
public void close() {
143122
if (httpClient != null) {
@@ -150,6 +129,17 @@ public void close() {
150129
httpClient = null;
151130
}
152131

132+
/**
133+
* Make a request against the Pardot API.
134+
* @param request The request to submit.
135+
* @return The response, in UTF-8 String format.
136+
* @throws IOException if something goes wrong?
137+
*/
138+
@Override
139+
public RestResponse submitRequest(final Request request) throws IOException {
140+
return submitRequest(request, new RestResponseHandler());
141+
}
142+
153143
/**
154144
* For issuing an API Request.
155145
* @param request The Request to perform.

0 commit comments

Comments
 (0)