return httpRequest(method, needAccessToken).parseAs(responseType);
}
public <T, W extends IDoubanObject> W postResponseInJson(String url, T requestObj, Class<W> responseType, boolean needAccessToken) throws DoubanException, IOException {
AtomContent content = AtomContent.forEntry(DefaultConfigs.DOUBAN_XML_NAMESPACE, requestObj);
HttpRequest method = requestFactory.buildPostRequest(new GenericUrl(url), content);
method.setParser(new JsonObjectParser(new JacksonFactory()));
return httpRequest(method, needAccessToken).parseAs(responseType);
}