org.spicefactory.pimento.io
Class ServiceResponseEncoder
java.lang.Object
org.spicefactory.pimento.io.ServiceResponseEncoder
public class ServiceResponseEncoder
- extends Object
Responsible for encoding a single response, in particular for encoding entity snapshot representations contained
in the return value of the operation.
- Author:
- Jens Halm
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceResponseEncoder
public ServiceResponseEncoder(Metamodel metamodel)
- Creates a new instance.
- Parameters:
metamodel - the metamodel for all entities managed by Pimento
encode
public void encode(ServiceResponse response,
SnapshotEncoder encoder,
FetchPlan fetchPlan)
- Encodes the specified response using the given encoder.
- Parameters:
response - the response to encodeencoder - the encoder to use for encoding entity snapshotsfetchPlan - the effective FetchPlan for this request or null if none has been specified in the request.