public final class JAXRSSubResourceCompatibleFIStaxInInterceptor
extends org.apache.cxf.interceptor.FIStaxInInterceptor
FIStaxInInterceptor to apply the StaxInEndingInterceptor to phase post-invoke instead of pre-invoke, in order to allow JAXBElementProvider
doUnmarshal(...) method, when called on a JAX-RS subresource operation invocation, to get the StAXDocumentParser created here. Indeed, the default StaxInEndingInterceptor
used by FIStaxInInterceptor applies to pre-invoke phase, and therefore removes the FastInfoset StAXDocumentParser before any operation on a JAX-RS subresource is called and actually
needs/uses it to unmarshal the XML inputstream in argument, resulting in error.
This class also makes some optimizations compared to FIStaxInInterceptor.
FIXME: report the issue to CXF team to get it fixed and remove this workaround| Constructor and Description |
|---|
JAXRSSubResourceCompatibleFIStaxInInterceptor()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleMessage(org.apache.cxf.message.Message message) |
isHttpVerbSupported, isRequestorCopyright © 2012–2020. All rights reserved.