cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Diephouse" <...@envoisolutions.com>
Subject Interceptor Logging/Visualization
Date Wed, 20 Dec 2006 08:17:29 GMT
Some people were mentioning to me that it is really hard to figure out what
is going with the interceptor chain. And I agree it can be sometimes. So I
added some logging in my most recent commit. Now if you turn up the logging
level to fine, you get output like this:

INFO: Chain org.apache.cxf.phase.PhaseInterceptorChain@181497d was created.
Current flow:
  receive [MultipartMessageInterceptor]
  pre-stream []
  user-stream [StreamHandlerInterceptor]
  post-stream [StaxInInterceptor]
  read [ReadHeadersInterceptor]
  pre-protocol [MustUnderstandInterceptor, MAPCodec, SOAPHandlerInterceptor]
  user-protocol []
  post-protocol [HeaderVerifier]
  unmarshal [URIMappingInterceptor, WrappedInInterceptor,
SoapHeaderInterceptor]
  pre-logical [MAPAggregator]
  user-logical [LogicalHandlerInterceptor]
  post-logical [WrapperClassInInterceptor, MAPVerifier]
  pre-invoke [HolderInInterceptor]
  invoke []
  post-invoke []

It will also print out messages if the chain was dynamically changed. Hope
that helps people! Regards,

- Dan

-- 
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message