Package de.gematik.utils.request
Class ApiRequester
- java.lang.Object
-
- de.gematik.utils.request.ApiRequester
-
public class ApiRequester extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApiRequester.StatusCodes
-
Constructor Summary
Constructors Constructor Description ApiRequester()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetApiResponse(String url)voidsetAllowedResponses(String fam, String codes)voidsetClient(okhttp3.OkHttpClient client)voidsetupProxy(String proxyHost, Integer proxyPort)voidsetupTls(String trustStorePath, String trustStorePassword, String clientCertPath, String clientCertPassword)
-
-
-
Method Detail
-
getApiResponse
public String getApiResponse(String url) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
setAllowedResponses
public void setAllowedResponses(String fam, String codes) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
setupTls
public void setupTls(String trustStorePath, String trustStorePassword, String clientCertPath, String clientCertPassword)
-
setClient
public void setClient(okhttp3.OkHttpClient client)
-
-