48495051525354555657
if (matcher.find()) { return new Token(matcher.group(1), "", response); } else { throw new OAuthException("Cannot extract an acces token. Response was: " + response); } } }; }
167168169170171172173174
params.putAll(this.querystringParams); return params; } catch (MalformedURLException mue) { throw new OAuthException("Malformed URL", mue); } }
209210211212213214215216
public String getBodyContents() { try { return new String(getByteBodyContents(), getCharset()); } catch (UnsupportedEncodingException uee) { throw new OAuthException("Unsupported Charset: " + charset, uee); } }
222223224225226227228229230
try { return body.getBytes(getCharset()); } catch (UnsupportedEncodingException uee) { throw new OAuthException("Unsupported Charset: " + getCharset(), uee); } }
53545556575859606162
Response response; try { response = request.send(); } catch (IOException e) { throw new OAuthException("Could not get access token", e); } return api.getAccessTokenExtractor().extract(response.getBody()); }