public class AuthRequestHandler extends Object implements IRequestHandler
Modifier and Type | Class and Description |
---|---|
static class |
AuthRequestHandler.GetAccessTokenResult
Token access result class.
|
Constructor and Description |
---|
AuthRequestHandler(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 AuthRequestHandler(Configuration configuration)
configuration
- The configuration.public String processUrl(String url)
processUrl
in interface IRequestHandler
url
- The URL.Exception
public void beforeSend(HttpURLConnection connection, OutputStream streamToSend) throws Exception
beforeSend
in interface IRequestHandler
connection
- The connection.streamToSend
- The stream to send.Exception
public void processResponse(HttpURLConnection connection, byte[] resultData) throws IOException, Exception
processResponse
in interface IRequestHandler
connection
- The connection.resultStream
- The result data.IOException
Exception
Copyright © 2020 Aspose Pty Ltd. All rights reserved.