Class GenericRestClient
- java.lang.Object
-
- step.repositories.jira.client.rest.GenericRestClient
-
public class GenericRestClient extends java.lang.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(javax.net.ssl.SSLContext sslContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <OUT> OUT
GET(java.lang.String url, java.lang.Class<OUT> resultClass)
<IN> jakarta.ws.rs.core.Response
POST(java.lang.String url, IN requestEntity)
<IN,OUT>
OUTPOST(java.lang.String url, IN requestEntity, java.lang.Class<OUT> outClass)
<IN> jakarta.ws.rs.core.Response
PUT(java.lang.String url, IN requestEntity)
<IN,OUT>
OUTPUT(java.lang.String url, IN requestEntity, java.lang.Class<OUT> outClass)
void
setBasicAuthorization(java.lang.String username, java.lang.String password)
void
setBearerAuthorization(java.lang.String token)
void
setCookies(java.lang.String cookieString)
void
setUrlRewrites(URLRewrites urlRewrites)
-
-
-
Method Detail
-
setCookies
public void setCookies(java.lang.String cookieString)
-
setBasicAuthorization
public void setBasicAuthorization(java.lang.String username, java.lang.String password)
-
setBearerAuthorization
public void setBearerAuthorization(java.lang.String token)
-
GET
public <OUT> OUT GET(java.lang.String url, java.lang.Class<OUT> resultClass)
-
PUT
public <IN> jakarta.ws.rs.core.Response PUT(java.lang.String url, IN requestEntity)
-
PUT
public <IN,OUT> OUT PUT(java.lang.String url, IN requestEntity, java.lang.Class<OUT> outClass)
-
POST
public <IN> jakarta.ws.rs.core.Response POST(java.lang.String url, IN requestEntity)
-
POST
public <IN,OUT> OUT POST(java.lang.String url, IN requestEntity, java.lang.Class<OUT> outClass)
-
setUrlRewrites
public void setUrlRewrites(URLRewrites urlRewrites)
-
-