public class OAuthRequestHandler extends Object implements IRequestHandler
Modifier and Type | Class and Description |
---|---|
static class |
OAuthRequestHandler.GetAccessTokenResult |
Constructor and Description |
---|
OAuthRequestHandler(Configuration configuration)
Initializes a new instance of the OAuthRequestHandler class.
|
Modifier and Type | Method and Description |
---|---|
void |
beforeSend(HttpURLConnection connection,
OutputStream streamToSend)
Processes parameters before sending.
|
void |
processResponse(HttpURLConnection connection,
byte[] resultData)
Processes the response.
|
String |
processUrl(String url)
Processes the URL.
|
public OAuthRequestHandler(Configuration configuration)
configuration
- The configuration.public String processUrl(String url) throws Exception
processUrl
in interface IRequestHandler
url
- The URL.Exception
URISyntaxException
IllegalArgumentException
IOException
public void beforeSend(HttpURLConnection connection, OutputStream streamToSend)
beforeSend
in interface IRequestHandler
connection
- The connection.streamToSend
- The stream to send.public void processResponse(HttpURLConnection connection, byte[] resultData) throws IOException, Exception
processResponse
in interface IRequestHandler
connection
- The connection.resultStream
- The result data.IOException
Exception
Copyright © 2019 Aspose Pty Ltd. All rights reserved.