Class ResponseCheckFilter


  • public class ResponseCheckFilter
    extends Object
    • Constructor Detail

      • ResponseCheckFilter

        public ResponseCheckFilter()
    • Method Detail

      • checkResponse

        public static void checkResponse​(ResponseContext con,
                                         com.fasterxml.jackson.databind.ObjectMapper mapper)
                                  throws IOException
        check that response had a valid return code. Throw exception if not.
        Parameters:
        con - open http connection
        mapper - Jackson ObjectMapper instance for this client
        Throws:
        IOException - Throws IOException for certain error types.