public class FastJsonParamCryptoHttpMessageConverter
extends com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter
| 限定符和类型 | 字段和说明 |
|---|---|
static SerializeFilter[] |
EMPTY_FILTER_ARRAY |
| 构造器和说明 |
|---|
FastJsonParamCryptoHttpMessageConverter(ParamCryptoFilter paramCryptoFilter)
构造函数
|
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
read(Type type,
Class<?> contextClass,
org.springframework.http.HttpInputMessage inputMessage) |
protected Object |
readInternal(Class<?> clazz,
org.springframework.http.HttpInputMessage inputMessage) |
protected Object |
readType(Type type,
org.springframework.http.HttpInputMessage inputMessage)
入参解密
注:由于父类中该方法为private,所以并没有添加`@Override`,但实际上该方法是属于Override。
|
protected Object |
strangeCodeForJackson(Object obj) |
protected void |
writeInternal(Object object,
org.springframework.http.HttpOutputMessage outputMessage)
出参加密、Override
注:该方法中标注了`@Override`的代码为重写过的代码。
|
addSerializeFilter, canRead, canWrite, getCharset, getDateFormat, getFastJsonConfig, getFeatures, getFilters, getType, setCharset, setDateFormat, setFastJsonConfig, setFeatures, setFilters, supports, writeaddDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, writepublic static final SerializeFilter[] EMPTY_FILTER_ARRAY
public FastJsonParamCryptoHttpMessageConverter(@NonNull
ParamCryptoFilter paramCryptoFilter)
paramCryptoFilter - 参数加密解密过滤器public Object read(Type type, Class<?> contextClass, org.springframework.http.HttpInputMessage inputMessage) throws org.springframework.http.converter.HttpMessageNotReadableException
read 在接口中 org.springframework.http.converter.GenericHttpMessageConverter<Object>read 在类中 com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverterorg.springframework.http.converter.HttpMessageNotReadableExceptionprotected Object readInternal(Class<?> clazz, org.springframework.http.HttpInputMessage inputMessage) throws org.springframework.http.converter.HttpMessageNotReadableException
readInternal 在类中 com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverterorg.springframework.http.converter.HttpMessageNotReadableExceptionprotected Object readType(Type type, org.springframework.http.HttpInputMessage inputMessage)
type - 入参类型inputMessage - HTTP输入消息protected void writeInternal(Object object, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException
注:该方法中标注了`@Override`的代码为重写过的代码。
writeInternal 在类中 com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverterobject - 出参outputMessage - HTTP输出消息IOException - IO异常org.springframework.http.converter.HttpMessageNotWritableException - HTTP消息写入异常Copyright © 2021 EasyJ寮�婧愮ぞ鍖�. All rights reserved.