Class AuthRequestHandler
- java.lang.Object
-
- com.aspose.cad.cloud.invoker.internal.requesthandlers.AuthRequestHandler
-
- All Implemented Interfaces:
IRequestHandler
public class AuthRequestHandler extends Object implements IRequestHandler
Auth request handler.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthRequestHandler.GetAccessTokenResult
Token access result class.
-
Constructor Summary
Constructors Constructor Description AuthRequestHandler(Configuration configuration)
Initializes a new instance of the OAuthRequestHandler class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
AuthRequestHandler
public AuthRequestHandler(Configuration configuration)
Initializes a new instance of the OAuthRequestHandler class.- Parameters:
configuration
- The configuration.
-
-
Method Detail
-
processUrl
public String processUrl(String url)
Processes the URL.- Specified by:
processUrl
in interfaceIRequestHandler
- Parameters:
url
- The URL.- Returns:
- Processed URL.
-
beforeSend
public void beforeSend(HttpURLConnection connection, OutputStream streamToSend) throws Exception
Processes parameters before sending.- Specified by:
beforeSend
in interfaceIRequestHandler
- Parameters:
connection
- The connection.streamToSend
- The stream to send.- Throws:
Exception
-
processResponse
public void processResponse(HttpURLConnection connection, byte[] resultData) throws IOException, Exception
Processes the response.- Specified by:
processResponse
in interfaceIRequestHandler
- Parameters:
connection
- The connection.resultData
- The result data.- Throws:
IOException
Exception
-
-