org.spicefactory.pimento.io
Class ServiceRequestDecoder

java.lang.Object
  extended by org.spicefactory.pimento.io.ServiceRequestDecoder

public class ServiceRequestDecoder
extends Object

Responsible for decoding a single request, in particular for decoding entity snapshot representations contained in the operation parameters.

Author:
Jens Halm

Constructor Summary
ServiceRequestDecoder(Metamodel metamodel)
          Creates a new instance.
 
Method Summary
 FetchPlan decode(ServiceRequest request, SnapshotDecoder decoder)
          Decodes the specified request using the given decoder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceRequestDecoder

public ServiceRequestDecoder(Metamodel metamodel)
Creates a new instance.

Parameters:
metamodel - the metamodel for all entities managed by Pimento
Method Detail

decode

public FetchPlan decode(ServiceRequest request,
                        SnapshotDecoder decoder)
Decodes the specified request using the given decoder.

Parameters:
request - the request to decode
decoder - the decoder to use for decoding entity snapshots
Returns:
the effective FetchPlan for this request or null if none has been specified in the request.