@Override public void writeTo(JAXBElement<?> t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream outputStream) throws IOException { LogMessages.LOGGER.debugf("Provider : %s, Method : writeTo", getClass().getName()); Class<?> typeArg = Object.class; if (genericType != null) typeArg = Types.getTypeArgument(genericType); super.writeTo(t, typeArg, genericType, annotations, mediaType, httpHeaders, outputStream); }
/** * */ @Override public void writeTo(Object t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException { LogMessages.LOGGER.debugf("Provider : %s, Method : writeTo", getClass().getName()); JAXBElement<?> result = wrapInJAXBElement(t, type); super.writeTo(result, type, genericType, annotations, mediaType, httpHeaders, entityStream); }