[
https://issues.apache.org/jira/browse/CXF-3712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080940#comment-13080940
]
David Liu commented on CXF-3712:
--------------------------------
Hi Sergey,
I've checked the XMLFaultOutInterceptor , I think it will print all details
of the exception, please see the code below, it will print the exception's
stack trace when it has.
So, if we have *faultStackTraceEnabled * like soap endpoint, we can avoid to
print out the xmlFault.getDetails(), thanks.
{code}
if (xmlFault.getDetail() != null) {
StaxUtils.writeStartElement(writer, prefix, XMLFault.XML_FAULT_DETAIL,
XMLConstants.NS_XML_FORMAT);
StaxUtils.writeNode(DOMUtils.getChild(xmlFault.getDetail(),
Node.ELEMENT_NODE),
writer, false);
writer.writeEndElement();
}
{code}
> disable exception stack traces in CXF Rest
> ------------------------------------------
>
> Key: CXF-3712
> URL: https://issues.apache.org/jira/browse/CXF-3712
> Project: CXF
> Issue Type: New Feature
> Components: JAX-RS
> Affects Versions: 2.2.10
> Reporter: David Liu
> Priority: Minor
>
> Hi,
> The *faultStackTraceEnabled* flag in Soap Endpoint is very useful. and I am
> wondering if we can have the same flag in CXF's Restful service endpoint.
> PS. I know we can use ExceptionMapper in CXF Restful endpoint, however, a
> faultStackTraceEnabled flag would be very useful for all developers. thanks.
> David
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira