Interface ICommandResultSerializable
public interface ICommandResultSerializable
This is an interface a command may implement to indicate that the result object
of the command may be serialized to the http response.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canSerializeResult
(IContext context, String serializeType) Returns whether the command result may be serialized to the specified content type.
-
Method Details
-
canSerializeResult
Returns whether the command result may be serialized to the specified content type.- Parameters:
context
-serializeType
- the type of serialization (json,xml,etc..)- Returns:
- true of the result may be serialized, false otherwise.
- Throws:
BizException
-