Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Customized REST template

mariuszs edited this page Nov 5, 2014 · 2 revisions

Description

This module with a customized RestTemplate. that gives you:

  • Error handling via ResponseRethrowingErrorHandler - logs error body if it's present and rethrows exception
  • Request factory (BufferingClientHttpRequestFactory) - so that we can access request's body several times throughout request's processing

Module configuration

If you want to use only this module just add a dependency:

repositories {
    jcenter()
}

dependencies {
    compile 'com.ofg:micro-infra-spring-base:0.4.1'
}

and you can extend this RestTemplate and use it in your own code.