@Override protected void writeInternal(OAuth2Error oauth2Error, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException { try { Map<String, String> errorParameters = this.errorParametersConverter.convert(oauth2Error); this.jsonMessageConverter.write( errorParameters, PARAMETERIZED_RESPONSE_TYPE.getType(), MediaType.APPLICATION_JSON, outputMessage); } catch (Exception ex) { throw new HttpMessageNotWritableException("An error occurred writing the OAuth 2.0 Error: " + ex.getMessage(), ex); } }
@Override protected void writeInternal(OAuth2AccessTokenResponse tokenResponse, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException { try { Map<String, String> tokenResponseParameters = this.tokenResponseParametersConverter.convert(tokenResponse); this.jsonMessageConverter.write( tokenResponseParameters, PARAMETERIZED_RESPONSE_TYPE.getType(), MediaType.APPLICATION_JSON, outputMessage); } catch (Exception ex) { throw new HttpMessageNotWritableException("An error occurred writing the OAuth 2.0 Access Token Response: " + ex.getMessage(), ex); } }
addContentDispositionHeader(inputMessage, outputMessage); if (genericConverter != null) { genericConverter.write(body, targetType, selectedMediaType, outputMessage);
genericConverter.write(requestBody, requestBodyType, requestContentType, httpRequest); return;
addContentDispositionHeader(inputMessage, outputMessage); if (genericConverter != null) { genericConverter.write(body, targetType, selectedMediaType, outputMessage);
genericConverter.write(requestBody, requestBodyType, requestContentType, httpRequest); return;
@Override protected void writeInternal(OAuth2AccessTokenResponse tokenResponse, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException { try { Map<String, String> tokenResponseParameters = this.tokenResponseParametersConverter.convert(tokenResponse); this.jsonMessageConverter.write( tokenResponseParameters, PARAMETERIZED_RESPONSE_TYPE.getType(), MediaType.APPLICATION_JSON, outputMessage); } catch (Exception ex) { throw new HttpMessageNotWritableException("An error occurred writing the OAuth 2.0 Access Token Response: " + ex.getMessage(), ex); } }
@Override protected void writeInternal(OAuth2AccessTokenResponse tokenResponse, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException { try { Map<String, String> tokenResponseParameters = this.tokenResponseParametersConverter.convert(tokenResponse); this.jsonMessageConverter.write( tokenResponseParameters, PARAMETERIZED_RESPONSE_TYPE.getType(), MediaType.APPLICATION_JSON, outputMessage); } catch (Exception ex) { throw new HttpMessageNotWritableException("An error occurred writing the OAuth 2.0 Access Token Response: " + ex.getMessage(), ex); } }
@Override protected void writeInternal(OAuth2Error oauth2Error, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException { try { Map<String, String> errorParameters = this.errorParametersConverter.convert(oauth2Error); this.jsonMessageConverter.write( errorParameters, PARAMETERIZED_RESPONSE_TYPE.getType(), MediaType.APPLICATION_JSON, outputMessage); } catch (Exception ex) { throw new HttpMessageNotWritableException("An error occurred writing the OAuth 2.0 Error: " + ex.getMessage(), ex); } }
@Override protected void writeInternal(OAuth2Error oauth2Error, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException { try { Map<String, String> errorParameters = this.errorParametersConverter.convert(oauth2Error); this.jsonMessageConverter.write( errorParameters, PARAMETERIZED_RESPONSE_TYPE.getType(), MediaType.APPLICATION_JSON, outputMessage); } catch (Exception ex) { throw new HttpMessageNotWritableException("An error occurred writing the OAuth 2.0 Error: " + ex.getMessage(), ex); } }
genericConverter.write(requestBody, requestBodyType, requestContentType, httpRequest); return;