Package com.onslip360
Class AbstractAPI<This extends AbstractAPI<This>>
- java.lang.Object
 - 
- com.onslip360.AbstractAPI<This>
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringeventStreamTypestatic StringjsonTypestatic StringoctetStreamType 
- 
Constructor Summary
Constructors Constructor Description AbstractAPI(String base, String realm, String id, String key) 
- 
Method Summary
 
 - 
 
- 
- 
Field Detail
- 
eventStreamType
public static final String eventStreamType
- See Also:
 - Constant Field Values
 
 
- 
jsonType
public static final String jsonType
- See Also:
 - Constant Field Values
 
 
- 
octetStreamType
public static final String octetStreamType
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
dataStream
public static API.DataStream dataStream(InputStream is, long length, @Nullable String type, @Nullable String name)
 
- 
fileStream
public static API.DataStream fileStream(File file, @Nullable String type, @Nullable String name) throws FileNotFoundException
- Throws:
 FileNotFoundException
 
- 
oauthPKCE
public static String[] oauthPKCE()
 
- 
realm
@Nonnull public String realm()
 
- 
setServiceEndpoints
public This setServiceEndpoints(@Nullable API.ServiceEndpoint[] ses, boolean keepConstructorEndpoint)
 
- 
getServiceEndpoints
@Nonnull public String[] getServiceEndpoints()
 
- 
failoverServiceEndpoint
public This failoverServiceEndpoint()
 
- 
onProgress
public This onProgress(@Nullable ProgressHandler progress)
 
- 
onResponseMetadata
public This onResponseMetadata(@Nullable ResponseMetadataHandler metadata)
 
- 
requestHandler
public This requestHandler(@Nullable RequestHandler requestHandler)
 
- 
request
public <T extends Onslip360Object<?>> void request(String method, String path, @Nullable T payload) throws IOException
- Throws:
 IOException
 
- 
requestObject
@Nonnull public <T extends Onslip360Object<?>,R extends Onslip360Object<?>> R requestObject(String method, String path, @Nullable T payload, Class<R> type) throws IOException
- Throws:
 IOException
 
- 
requestArray
@Nonnull public <T extends Onslip360Object<?>,R extends Onslip360Object<?>> R[] requestArray(String method, String path, @Nullable T payload, Class<R> type) throws IOException
- Throws:
 IOException
 
- 
openEventStream
public ServerSentEvent.SSEStream<Map<String,Object>> openEventStream(String id) throws IOException
- Throws:
 IOException
 
 - 
 
 -