All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gwtplatform.dispatch.rest.rebind.RestAction.vm Maven / Gradle / Ivy

There is a newer version: 1.6
Show newest version
package ${package};

import com.gwtplatform.dispatch.rest.client.AbstractRestAction;
import com.gwtplatform.dispatch.rest.shared.HttpMethod;

public class ${implName} extends AbstractRestAction<${resultClass.parameterizedQualifiedSourceName}> {
    public ${implName}(#foreach (${param} in ${ctorParams})${param.type.qualifiedSourceName} ${param.name}#commaIfNeeded($ctorParams)#end) {
        super(HttpMethod.${httpMethod}, "${restPath}");
#foreach ($methodCall in $methodCalls)
#if ($methodCall.fromParam)
    #if ($methodCall.fieldName)
        ${methodCall.methodName}("${methodCall.fieldName}", ${methodCall.parameter.name});
    #else
        ${methodCall.methodName}(${methodCall.parameter.name});
    #end
#else
    ${methodCall.methodName}("${methodCall.fieldName}", "${methodCall.value}");
#end
#end
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy