// Add the paramters (these should already be encoded)
fullURL.append(paramString);
// Now (finally!) create a http connection based on the url built up
GetMethod method = new GetMethod(fullURL.toString());
boolean succeeded = false;
try {
// Execute the request, synchonizing on the HTTPHelper to ensure
// it's safe for use by multiple threads.
synchronized(httpHelper) {
int statusCode = httpHelper.executeRequest(method,
fullURL.toString());
// Convert the response code to a binary "did this send work or not"
succeeded = (statusCode == HttpURLConnection.HTTP_OK);
}
} finally {
// Release the connection.
method.releaseConnection();
}
// Return send status
return succeeded;
}