0
我必須在攔截器級別編寫CustomLogger,並且我指的是Apache CXF中的LoggingInInterceptor代碼。我在代碼中看到,它首先從消息中獲取輸入流,然後再將其設置回消息。Apache CXF中的LoggingInInterceptor
請參考下面的代碼和網址相同:
// restore the delegating input stream or the input stream
if (is instanceof DelegatingInputStream) {
((DelegatingInputStream)is).setInputStream(bis);
} else {
**message.setContent(InputStream.class, bis);**
}
能否請你讓我知道這是爲什麼正在做,即使我們在這裏不改變輸入流。如果給出相同的詳細描述,這將非常有幫助。