@Override protected void initializeFaultInterceptors() { getService().getOutFaultInterceptors().add(new WebFaultOutInterceptor()); }
private WebFault getWebFaultAnnotation(Class<?> t) { WebFault fault = t.getAnnotation(WebFault.class); if (fault == null && t.getSuperclass() != null && Throwable.class.isAssignableFrom(t.getSuperclass())) { fault = getWebFaultAnnotation(t.getSuperclass()); } return fault; }
WebFault fault = null; if (cause != null) { fault = getWebFaultAnnotation(cause.getClass()); if (fault == null && cause.getCause() != null) { fault = getWebFaultAnnotation(cause.getCause().getClass()); if (fault != null || cause instanceof RuntimeException) { cause = cause.getCause(); faultInfo = method.invoke(cause, new Object[0]); } catch (NoSuchMethodException e) { faultInfo = createFaultInfoBean(fault, cause); QName faultName = getFaultName(fault, cause.getClass(), op); MessagePartInfo part = getFaultMessagePart(faultName, op); if (f.hasDetails()) { writer.write(faultInfo, part, new W3CDOMStreamWriter(f.getDetail()));
WebFault fault = null; if (cause != null) { fault = getWebFaultAnnotation(cause.getClass()); if (fault == null && cause.getCause() != null) { fault = getWebFaultAnnotation(cause.getCause().getClass()); if (fault != null || cause instanceof RuntimeException) { cause = cause.getCause(); faultInfo = method.invoke(cause, new Object[0]); } catch (NoSuchMethodException e) { faultInfo = createFaultInfoBean(fault, cause); QName faultName = getFaultName(fault, cause.getClass(), op); MessagePartInfo part = getFaultMessagePart(faultName, op); if (f.hasDetails()) { writer.write(faultInfo, part, new W3CDOMStreamWriter(f.getDetail()));
private WebFault getWebFaultAnnotation(Class<?> t) { WebFault fault = t.getAnnotation(WebFault.class); if (fault == null && t.getSuperclass() != null && Throwable.class.isAssignableFrom(t.getSuperclass())) { fault = getWebFaultAnnotation(t.getSuperclass()); } return fault; }
@Override protected void initializeFaultInterceptors() { getService().getOutFaultInterceptors().add(new WebFaultOutInterceptor()); }