Class ResponseCheckFilter


  • public class ResponseCheckFilter
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void checkResponse​(ResponseContext con, com.fasterxml.jackson.databind.ObjectMapper mapper)
      check that response had a valid return code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResponseCheckFilter

        public ResponseCheckFilter()
    • 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 connection
        mapper - Jackson ObjectMapper instance for this client
        Throws:
        java.io.IOException - Throws IOException for certain error types.
        java.lang.Exception