Class Utils
- java.lang.Object
-
- org.jenkinsci.plugins.fodupload.FodApi.Utils
-
public class Utils extends Object
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
convertHttpResponseIntoDastApiResponse(ResponseContent response, T fodApiResponse)
static <T> T
parseFailureResponse(ResponseContent response, Object fodApiResponse)
static <T> T
parseHttpSuccessResponse(ResponseContent response, Object fodApiResponse)
-
-
-
Method Detail
-
convertHttpResponseIntoDastApiResponse
public static <T> T convertHttpResponseIntoDastApiResponse(ResponseContent response, T fodApiResponse) throws IOException
- Throws:
IOException
-
parseHttpSuccessResponse
public static <T> T parseHttpSuccessResponse(ResponseContent response, Object fodApiResponse) throws IOException
- Throws:
IOException
-
parseFailureResponse
public static <T> T parseFailureResponse(ResponseContent response, Object fodApiResponse) throws IOException
- Throws:
IOException
-
-