Package com.google.greaze.definition.webservice.WebServiceCallSpec

Examples of com.google.greaze.definition.webservice.WebServiceCallSpec.Builder


*/
public final class ResourceQueryUtils {

  public static WebServiceCallSpec generateCallSpec(CallPath callPath, Type resourceType,
    Type resourceQueryParamsType, WebContextSpec webContextSpec) {
    Builder builder = new WebServiceCallSpec.Builder(callPath)
      .addAllRequestParams(webContextSpec.getRequestHeaderSpec())
      .setListBody(resourceType)
      .setUrlParams(resourceQueryParamsType)
      .supportsHttpMethod(HttpMethod.GET);
    if (callPath.hasVersion()) {
      builder.setVersion(callPath.getVersion());
    }
    return builder
      .build();
  }
View Full Code Here

TOP

Related Classes of com.google.greaze.definition.webservice.WebServiceCallSpec.Builder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.