@Override protected final void writeInternal(T t, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException { try { writeToResult(t, outputMessage.getHeaders(), new StreamResult(outputMessage.getBody())); } catch (IOException | HttpMessageConversionException ex) { throw ex; } catch (Exception ex) { throw new HttpMessageNotWritableException("Could not marshal [" + t + "]: " + ex.getMessage(), ex); } }
@Override protected final void writeInternal(T t, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException { try { writeToResult(t, outputMessage.getHeaders(), new StreamResult(outputMessage.getBody())); } catch (IOException | HttpMessageConversionException ex) { throw ex; } catch (Exception ex) { throw new HttpMessageNotWritableException("Could not marshal [" + t + "]: " + ex.getMessage(), ex); } }
@Override protected final void writeInternal(T t, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException { writeToResult(t, outputMessage.getHeaders(), new StreamResult(outputMessage.getBody())); }
@Override protected final void writeInternal(T t, HttpOutputMessage outputMessage) throws IOException { writeToResult(t, outputMessage.getHeaders(), new StreamResult(outputMessage.getBody())); }
@Override protected final void writeInternal(T t, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException { try { writeToResult(t, outputMessage.getHeaders(), new StreamResult(outputMessage.getBody())); } catch (IOException | HttpMessageConversionException ex) { throw ex; } catch (Exception ex) { throw new HttpMessageNotWritableException("Could not marshal [" + t + "]: " + ex.getMessage(), ex); } }