Class RestClient
java.lang.Object
se.bjurr.gitchangelog.internal.integrations.rest.RestClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetResponse(HttpURLConnection conn) static voidmock(RestClient mock) protected HttpURLConnectionopenConnection(URL url) withBasicAuthCredentials(String username, String password) withBearer(String bearer) withHeaders(Map<String, String> headers) withTokenAuthCredentials(String token)
-
Constructor Details
-
RestClient
public RestClient()
-
-
Method Details
-
withBasicAuthCredentials
-
withTokenAuthCredentials
-
withBearer
-
withHeaders
-
get
- Throws:
GitChangelogIntegrationException
-
openConnection
- Throws:
Exception
-
getResponse
- Throws:
Exception
-
mock
-