OAuthMessage message = accessor.newRequestMessage("POST", rpcServerUrl, null, bodyStream);
message.getHeaders().add(
new SimpleEntry<String, String>(HttpMessage.CONTENT_TYPE, JSON_MIME_TYPE));
message.getHeaders().add(new SimpleEntry<String, String>("oauth_version", "1.0"));
OAuthClient client = new OAuthClient(httpFetcher);
responseStream = client.invoke(message, net.oauth.ParameterStyle.BODY).getBodyAsStream();
}
String responseString = HttpFetcher.readInputStream(responseStream);
if (LOG.isLoggable(Level.FINE)) {
LOG.fine("Response returned: " + responseString);