org.cloudfoundry.client.lib.rest
Class LoggingRestTemplate

java.lang.Object
  extended by org.springframework.http.client.support.HttpAccessor
      extended by org.springframework.http.client.support.InterceptingHttpAccessor
          extended by org.springframework.web.client.RestTemplate
              extended by org.cloudfoundry.client.lib.rest.LoggingRestTemplate
All Implemented Interfaces:
org.springframework.web.client.RestOperations

public class LoggingRestTemplate
extends org.springframework.web.client.RestTemplate

RestTemplate that provides for logging of any REST calls made


Field Summary
 
Fields inherited from class org.springframework.http.client.support.HttpAccessor
logger
 
Constructor Summary
LoggingRestTemplate()
           
 
Method Summary
 void addLogMessage(org.springframework.http.HttpMethod method, URI url, String status, org.springframework.http.HttpStatus httpStatus, String message)
           
protected
<T> T
doExecute(URI url, org.springframework.http.HttpMethod method, org.springframework.web.client.RequestCallback requestCallback, org.springframework.web.client.ResponseExtractor<T> responseExtractor)
           
 
Methods inherited from class org.springframework.web.client.RestTemplate
delete, delete, delete, exchange, exchange, exchange, exchange, exchange, exchange, execute, execute, execute, getErrorHandler, getForEntity, getForEntity, getForEntity, getForObject, getForObject, getForObject, getMessageConverters, headForHeaders, headForHeaders, headForHeaders, optionsForAllow, optionsForAllow, optionsForAllow, postForEntity, postForEntity, postForEntity, postForLocation, postForLocation, postForLocation, postForObject, postForObject, postForObject, put, put, put, setErrorHandler, setMessageConverters
 
Methods inherited from class org.springframework.http.client.support.InterceptingHttpAccessor
getInterceptors, getRequestFactory, setInterceptors
 
Methods inherited from class org.springframework.http.client.support.HttpAccessor
createRequest, setRequestFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingRestTemplate

public LoggingRestTemplate()
Method Detail

doExecute

protected <T> T doExecute(URI url,
                          org.springframework.http.HttpMethod method,
                          org.springframework.web.client.RequestCallback requestCallback,
                          org.springframework.web.client.ResponseExtractor<T> responseExtractor)
               throws org.springframework.web.client.RestClientException
Overrides:
doExecute in class org.springframework.web.client.RestTemplate
Throws:
org.springframework.web.client.RestClientException

addLogMessage

public void addLogMessage(org.springframework.http.HttpMethod method,
                          URI url,
                          String status,
                          org.springframework.http.HttpStatus httpStatus,
                          String message)


Copyright © 2013. All rights reserved.