Package io.github.dft.mothership
Class MotherShipSdk
- java.lang.Object
-
- io.github.dft.mothership.MotherShipSdk
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessCredentialaccessCredentialprotected HttpClientclient
-
Constructor Summary
Constructors Constructor Description MotherShipSdk(AccessCredential accessCredential)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected URIbaseUrl(String path)<T> TgetRequestWrapped(HttpRequest request, Class<T> tClass)protected <T> HttpRequestpost(URI uri, T tClass)
-
-
-
Field Detail
-
client
protected HttpClient client
-
accessCredential
protected AccessCredential accessCredential
-
-
Constructor Detail
-
MotherShipSdk
public MotherShipSdk(AccessCredential accessCredential)
-
-
Method Detail
-
getRequestWrapped
public <T> T getRequestWrapped(HttpRequest request, Class<T> tClass)
-
post
protected <T> HttpRequest post(URI uri, T tClass)
-
-