Package org.projectnessie.client.rest
Class ResponseCheckFilter
- java.lang.Object
-
- org.projectnessie.client.rest.ResponseCheckFilter
-
public class ResponseCheckFilter extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ResponseCheckFilter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckResponse(ResponseContext con, com.fasterxml.jackson.databind.ObjectMapper mapper)check that response had a valid return code.
-
-
-
Method Detail
-
checkResponse
public static void checkResponse(ResponseContext con, com.fasterxml.jackson.databind.ObjectMapper mapper) throws java.lang.Exception
check that response had a valid return code. Throw exception if not.- Parameters:
con- open http connectionmapper- Jackson ObjectMapper instance for this client- Throws:
java.io.IOException- Throws IOException for certain error types.java.lang.Exception
-
-