Я хотел бы получить тело запроса, поэтому я решил реализовать интерфейс HttpResponseInterceptor. Как это сделать правильно?
public class CustomHttpInterceptor implements org.apache.http.HttpRequestInterceptorHttpRequestInterceptor {
@Override
public void process(HttpRequest request, HttpContext context) throws HttpException, IOException {
}
}
Должен ли я создать CustomHttpInterceptor как компонент? Как добавить это тоже будет видно для Spring?