Package com.google.greaze.definition.rest

Examples of com.google.greaze.definition.rest.WebContextSpec


    return QueryEmployeeByName.class;
  }

  @Override
  public WebContextSpec getWebContextSpec() {
    return new WebContextSpec();
  }
View Full Code Here


   * @param stub stub containing server info to access the rest client
   * @param callPath relative path to the resource
   */
  public ResourceQueryClient(WebServiceClient stub, CallPath callPath,
      Type queryType, GsonBuilder gsonBuilder, Type resourceType, boolean inlined) {
    super(stub, callPath, queryType, gsonBuilder, resourceType, new WebContextSpec(), inlined);
  }
View Full Code Here

  @SuppressWarnings({"rawtypes", "unchecked"})
  public void service(HttpServletRequest req, HttpServletResponse res,
      String queryName, CallPath callPath, ResourceQueryBase resourceQuery) {
    Preconditions.checkNotNull(resourceQuery);
    WebContextSpec webContextSpec = resourceQuery.getWebContextSpec();
    WebServiceCallSpec spec = ResourceQueryUtils.generateCallSpec(callPath,
        resourceQuery.getResourceType(), resourceQuery.getQueryType(),
        webContextSpec);
    RequestSpec requestSpec = spec.getRequestSpec();
    RequestReceiver requestReceiver = new RequestReceiver(gsonBuilder.get(), requestSpec);
View Full Code Here

    RestResponseBuilder<Employee> responseBuilder = new ResponseBuilderEmployee(employees);
    HeaderMapSpec contextHeaderSpec = new HeaderMapSpec.Builder()
      .put(HEADER1.getName(), String.class)
      .put(HEADER2.getName(), String.class)
      .build();
  WebContextSpec webContextSpec = new WebContextSpec(contextHeaderSpec);
    RestCallSpec callSpec =
      ResourceDepotBaseClient.generateRestCallSpec(resourcePath, Employee.class, webContextSpec);
    RestCallSpecMap restCallSpecMap = new RestCallSpecMap.Builder()
      .set(resourcePath, callSpec)
      .build();
View Full Code Here

    return QueryOrdersByItemName.class;
  }

  @Override
  public WebContextSpec getWebContextSpec() {
    return new WebContextSpec();
  }
View Full Code Here

TOP

Related Classes of com.google.greaze.definition.rest.WebContextSpec

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.