public class OAuth2ErrorHttpMessageConverter extends org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2Error>
HttpMessageConverter
for an OAuth 2.0 Error
.AbstractHttpMessageConverter
,
OAuth2Error
Modifier and Type | Field and Description |
---|---|
protected org.springframework.core.convert.converter.Converter<java.util.Map<java.lang.String,java.lang.String>,OAuth2Error> |
errorConverter |
protected org.springframework.core.convert.converter.Converter<OAuth2Error,java.util.Map<java.lang.String,java.lang.String>> |
errorParametersConverter |
Constructor and Description |
---|
OAuth2ErrorHttpMessageConverter() |
Modifier and Type | Method and Description |
---|---|
protected OAuth2Error |
readInternal(java.lang.Class<? extends OAuth2Error> clazz,
org.springframework.http.HttpInputMessage inputMessage) |
void |
setErrorConverter(org.springframework.core.convert.converter.Converter<java.util.Map<java.lang.String,java.lang.String>,OAuth2Error> errorConverter)
Sets the
Converter used for converting the OAuth 2.0 Error parameters
to an OAuth2Error . |
void |
setErrorParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2Error,java.util.Map<java.lang.String,java.lang.String>> errorParametersConverter)
Sets the
Converter used for converting the OAuth2Error
to a Map representation of the OAuth 2.0 Error parameters. |
protected boolean |
supports(java.lang.Class<?> clazz) |
protected void |
writeInternal(OAuth2Error oauth2Error,
org.springframework.http.HttpOutputMessage outputMessage) |
protected org.springframework.core.convert.converter.Converter<java.util.Map<java.lang.String,java.lang.String>,OAuth2Error> errorConverter
protected org.springframework.core.convert.converter.Converter<OAuth2Error,java.util.Map<java.lang.String,java.lang.String>> errorParametersConverter
protected boolean supports(java.lang.Class<?> clazz)
supports
in class org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2Error>
protected OAuth2Error readInternal(java.lang.Class<? extends OAuth2Error> clazz, org.springframework.http.HttpInputMessage inputMessage) throws org.springframework.http.converter.HttpMessageNotReadableException
readInternal
in class org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2Error>
org.springframework.http.converter.HttpMessageNotReadableException
protected void writeInternal(OAuth2Error oauth2Error, org.springframework.http.HttpOutputMessage outputMessage) throws org.springframework.http.converter.HttpMessageNotWritableException
writeInternal
in class org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2Error>
org.springframework.http.converter.HttpMessageNotWritableException
public final void setErrorConverter(org.springframework.core.convert.converter.Converter<java.util.Map<java.lang.String,java.lang.String>,OAuth2Error> errorConverter)
Converter
used for converting the OAuth 2.0 Error parameters
to an OAuth2Error
.errorConverter
- the Converter
used for converting to an OAuth2Error
public final void setErrorParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2Error,java.util.Map<java.lang.String,java.lang.String>> errorParametersConverter)
Converter
used for converting the OAuth2Error
to a Map
representation of the OAuth 2.0 Error parameters.errorParametersConverter
- the Converter
used for converting to a Map
representation of the Error parameters