org.eclipse.ecf.remoteservice.rest
Interface IRestResourceRepresentationFactory


public interface IRestResourceRepresentationFactory


Method Summary
 java.lang.Object createResourceRepresentation(org.apache.commons.httpclient.HttpMethod method, IRestCall restCall)
          Creates a resource representation for the resource defined in IRestCall's getEstimatedResourceIdentifier() Method.
 

Method Detail

createResourceRepresentation

java.lang.Object createResourceRepresentation(org.apache.commons.httpclient.HttpMethod method,
                                              IRestCall restCall)
                                              throws java.text.ParseException,
                                                     java.io.IOException
Creates a resource representation for the resource defined in IRestCall's getEstimatedResourceIdentifier() Method. This will be compared with all registered services of the type IRestResource by calling their getIdentifier() methods. If a service matches the estimated identifier it's parse method will be invoked to parse the content of the resource.

Throws:
java.text.ParseException
java.io.IOException