EntitySerializer@Deprecated public interface ContextSerializer<T> extends EntitySerializer<T>
| Modifier and Type | Method and Description |
|---|---|
default boolean |
bodyRequired()
Deprecated.
必须要 body
|
default Object |
deserializeFromBody(org.noear.solon.core.handle.Context ctx)
Deprecated.
反序列化从
|
Object |
deserializeFromBody(org.noear.solon.core.handle.Context ctx,
Type toType)
Deprecated.
反序列化从
|
boolean |
matched(org.noear.solon.core.handle.Context ctx,
String mime)
Deprecated.
匹配
|
String |
mimeType()
Deprecated.
媒体类型
|
void |
serializeToBody(org.noear.solon.core.handle.Context ctx,
Object data)
Deprecated.
序列化到
|
boolean matched(org.noear.solon.core.handle.Context ctx,
String mime)
matched in interface EntitySerializer<T>ctx - 上下文mime - String mimeType()
mimeType in interface EntitySerializer<T>mimeType in interface org.noear.solon.core.serialize.Serializer<T>default boolean bodyRequired()
bodyRequired in interface EntitySerializer<T>void serializeToBody(org.noear.solon.core.handle.Context ctx,
Object data)
throws IOException
serializeToBody in interface EntitySerializer<T>ctx - 请求上下文data - 数据IOExceptionObject deserializeFromBody(org.noear.solon.core.handle.Context ctx, @Nullable Type toType) throws IOException
deserializeFromBody in interface EntitySerializer<T>ctx - 请求上下文toType - 目标类型IOExceptiondefault Object deserializeFromBody(org.noear.solon.core.handle.Context ctx) throws IOException
deserializeFromBody in interface EntitySerializer<T>ctx - 请求上下文IOExceptionCopyright © 2025. All rights reserved.