@@ -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