public abstract class BytesSerializerRender extends Object implements org.noear.solon.core.handle.Render
| Constructor and Description |
|---|
BytesSerializerRender() |
| Modifier and Type | Method and Description |
|---|---|
abstract ContextSerializer<byte[]> |
getSerializer()
获取序列化器
|
boolean |
matched(org.noear.solon.core.handle.Context ctx,
String accept)
匹配检测
|
String |
name()
获取渲染器名字
|
void |
render(Object data,
org.noear.solon.core.handle.Context ctx)
渲染并输出
|
String |
renderAndReturn(Object data,
org.noear.solon.core.handle.Context ctx)
渲染并返回
|
public abstract ContextSerializer<byte[]> getSerializer()
public String name()
name in interface org.noear.solon.core.handle.Renderpublic boolean matched(org.noear.solon.core.handle.Context ctx,
String accept)
matched in interface org.noear.solon.core.handle.Renderpublic String renderAndReturn(Object data, org.noear.solon.core.handle.Context ctx) throws Throwable
renderAndReturn in interface org.noear.solon.core.handle.RenderThrowableCopyright © 2025. All rights reserved.