public class ApiInvoker extends Object
| Constructor and Description |
|---|
ApiInvoker(IRequestHandler[] requestHandlers,
Configuration configuration)
Initializes a new instance of the ApiInvoker class.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
invokeApi(String path,
String method,
String body,
HashMap<String,String> headerParams,
HashMap<String,Object> formParams)
Invokes the API.
|
byte[] |
invokeApi(String path,
String method,
String body,
HashMap<String,String> headerParams,
HashMap<String,Object> formParams,
String contentType)
Invokes the API.
|
FileInfo |
toFileInfo(byte[] data)
Converts bytes to the file information parameter.
|
FileInfo |
toFileInfo(byte[] data,
String paramName)
Converts bytes to the file information parameter.
|
FileInfo |
toFileInfo(InputStream stream,
String paramName)
Converts stream to the file information parameter.
|
public ApiInvoker(IRequestHandler[] requestHandlers, Configuration configuration)
requestHandlers - The request handlers.configuration - The configuration.public byte[] invokeApi(String path, String method, String body, HashMap<String,String> headerParams, HashMap<String,Object> formParams) throws Exception
path - The path.method - The method.body - The body.headerParams - The header parameters.formParams - The form parameters.Exceptionpublic byte[] invokeApi(String path, String method, String body, HashMap<String,String> headerParams, HashMap<String,Object> formParams, String contentType) throws Exception
path - The path.method - The method.body - The body.headerParams - The header parameters.formParams - The form parameters.contentType - Type of the content.Exceptionpublic FileInfo toFileInfo(InputStream stream, String paramName) throws IOException
stream - The stream.paramName - Name of the parameter.IOExceptionpublic FileInfo toFileInfo(byte[] data, String paramName)
data - The data bytes.paramName - Name of the parameter.public FileInfo toFileInfo(byte[] data)
data - The data bytes.Copyright © 2025 Aspose Pty Ltd. All rights reserved.