Package com.google.greaze.definition.rest

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


    return builder.build();
  }

  @Override
  public R get(I resourceId, WebContext context) {
    RestRequestSpec requestSpec = callSpec.getRequestSpec();
    HeaderMap.Builder requestHeadersBuilder = new HeaderMap.Builder(requestSpec.getHeadersSpec());
    if (context != null) {
      context.populate(requestHeadersBuilder);
    }
    HeaderMap requestHeaders = requestHeadersBuilder.build();
    UrlParamsSpec urlParamsSpec = callSpec.getRequestSpec().getUrlParamsSpec();
View Full Code Here


    return response.getResource();
  }

  @Override
  public R post(R resource, WebContext context) {
    RestRequestSpec requestSpec = callSpec.getRequestSpec();
    HeaderMap.Builder requestHeadersBuilder = new HeaderMap.Builder(requestSpec.getHeadersSpec());
    if (context != null) {
      context.populate(requestHeadersBuilder);
    }
    HeaderMap requestHeaders = requestHeadersBuilder.build();
    UrlParamsSpec urlParamsSpec = callSpec.getRequestSpec().getUrlParamsSpec();
View Full Code Here

    return response.getResource();
  }

  @Override
  public R put(R resource, WebContext context) {
    RestRequestSpec requestSpec = callSpec.getRequestSpec();
    HeaderMap.Builder requestHeadersBuilder = new HeaderMap.Builder(requestSpec.getHeadersSpec());
    if (context != null) {
      context.populate(requestHeadersBuilder);
    }
    HeaderMap requestHeaders = requestHeadersBuilder.build();
    UrlParamsSpec urlParamsSpec = callSpec.getRequestSpec().getUrlParamsSpec();
View Full Code Here

    return response.getResource();
  }

  @Override
  public void delete(I resourceId, WebContext context) {
    RestRequestSpec requestSpec = callSpec.getRequestSpec();
    HeaderMap.Builder requestHeadersBuilder = new HeaderMap.Builder(requestSpec.getHeadersSpec());
    if (context != null) {
      context.populate(requestHeadersBuilder);
    }
    HeaderMap requestHeaders = requestHeadersBuilder.build();
    UrlParamsSpec urlParamsSpec = callSpec.getRequestSpec().getUrlParamsSpec();
View Full Code Here

TOP

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

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.