blob: 717cb4a5d36fd7602ea42fd87eabb3092374a1d9 [file] [log] [blame]
/*
* Copyright (C) 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.gson.rest.definition;
/**
* The data associated with a Rest Web service call. This includes http request header parameters
* (form and URL parameters), request body, response header parameters, and resource response body.
*
* @author inder
*/
public final class RestCall<I extends ID, R extends RestResource<I, R>> {
private final RestCallSpec callSpec;
private final RestRequest<I, R> request;
private final RestResponse<I, R> response;
public RestCall(RestCallSpec callSpec, RestRequest<I, R> request, RestResponse<I, R> response) {
this.callSpec = callSpec;
this.request = request;
this.response = response;
}
public RestCallSpec getSpec() {
return callSpec;
}
public RestRequest<I, R> getRequest() {
return request;
}
public RestResponse<I, R> getResponse() {
return response;
}
}