Class GenericRestClient
- java.lang.Object
-
- step.repositories.jira.client.rest.GenericRestClient
-
public class GenericRestClient extends Object
-
-
Field Summary
Fields Modifier and Type Field Description com.fasterxml.jackson.databind.ObjectMapper
objectMapper
jakarta.ws.rs.client.Client
wsClient
-
Constructor Summary
Constructors Constructor Description GenericRestClient()
GenericRestClient(SSLContext sslContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <OUT> OUT
GET(String url, Class<OUT> resultClass)
<IN> jakarta.ws.rs.core.Response
POST(String url, IN requestEntity)
<IN,OUT>
OUTPOST(String url, IN requestEntity, Class<OUT> outClass)
<IN> jakarta.ws.rs.core.Response
PUT(String url, IN requestEntity)
<IN,OUT>
OUTPUT(String url, IN requestEntity, Class<OUT> outClass)
void
setBasicAuthorization(String username, String password)
void
setBearerAuthorization(String token)
void
setCookies(String cookieString)
void
setUrlRewrites(URLRewrites urlRewrites)
-
-
-
Constructor Detail
-
GenericRestClient
public GenericRestClient()
-
GenericRestClient
public GenericRestClient(SSLContext sslContext)
-
-
Method Detail
-
setCookies
public void setCookies(String cookieString)
-
setBearerAuthorization
public void setBearerAuthorization(String token)
-
PUT
public <IN> jakarta.ws.rs.core.Response PUT(String url, IN requestEntity)
-
POST
public <IN> jakarta.ws.rs.core.Response POST(String url, IN requestEntity)
-
setUrlRewrites
public void setUrlRewrites(URLRewrites urlRewrites)
-
-