Package net.flioris.jva.action
Class RestAction<T>
java.lang.Object
net.flioris.jva.action.RestAction<T>
- Direct Known Subclasses:
GetConversationByIdAction,GetConversationsByIdAction,GetDocumentUploadServerAction,GetPhotoUploadServerAction,GetUserByIdAction,PostAction,SaveDocumentAction,SavePhotoAction,SendMessageAction,SendMessagesAction,UploadDocumentAction,UploadPhotoAction
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomplete()Executes the request synchronously.protected abstract okhttp3.CallgetCall()voidqueue()Executes the request asynchronously.voidExecutes the request asynchronously.voidExecutes the request asynchronously.submit()Executes the request asynchronously.
-
Constructor Details
-
RestAction
-
-
Method Details
-
getCall
protected abstract okhttp3.Call getCall() -
complete
Executes the request synchronously. -
queue
Executes the request asynchronously. -
queue
Executes the request asynchronously. -
queue
public void queue()Executes the request asynchronously. -
submit
Executes the request asynchronously.- Returns:
- CompletableFuture.
-