Package com.google.greaze.webservice.server

Examples of com.google.greaze.webservice.server.ResponseSender.send()


    WebServiceResponse response = new WebServiceResponse(responseHeaders, responseBody);
    Gson gson = gsonBuilder.get()
        .registerTypeAdapterFactory(new ResponseBodyGsonTypeAdapterFactory(bodySpec))
        .create();
    ResponseSender responseSender = new ResponseSender(gson);
    responseSender.send(res, response);
  }

  public void service(HttpServletRequest req, HttpServletResponse res, String queryName,
      CallPath callPath) {
  }
View Full Code Here


    Gson gson = injector.getInstance(GsonBuilder.class)
        .registerTypeAdapterFactory(new ResponseBodyGsonTypeAdapterFactory(responseSpec.getBodySpec()))
        .create();
    ResponseSender responseSender = new ResponseSender(gson);
    WebServiceResponse response = buildResponse(responseSpec, webServiceRequest);
    responseSender.send(res, response);
  }

  protected abstract WebServiceResponse buildResponse(ResponseSpec responseSpec,
      WebServiceRequest webServiceRequest);
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.