use of com.linkedin.restli.internal.server.response.GetResponseBuilder in project rest.li by linkedin.
the class MethodAdapterRegistry method buildResponseBuilders.
private Map<ResourceMethod, RestLiResponseBuilder> buildResponseBuilders(ErrorResponseBuilder errorResponseBuilder) {
Map<ResourceMethod, RestLiResponseBuilder> result = new HashMap<ResourceMethod, RestLiResponseBuilder>(ResourceMethod.values().length);
result.put(ResourceMethod.GET, new GetResponseBuilder());
result.put(ResourceMethod.BATCH_GET, new BatchGetResponseBuilder(errorResponseBuilder));
result.put(ResourceMethod.FINDER, new CollectionResponseBuilder());
result.put(ResourceMethod.CREATE, new CreateResponseBuilder());
result.put(ResourceMethod.PARTIAL_UPDATE, new UpdateResponseBuilder());
result.put(ResourceMethod.UPDATE, new UpdateResponseBuilder());
result.put(ResourceMethod.DELETE, new UpdateResponseBuilder());
result.put(ResourceMethod.ACTION, new ActionResponseBuilder());
result.put(ResourceMethod.BATCH_UPDATE, new BatchUpdateResponseBuilder(errorResponseBuilder));
result.put(ResourceMethod.BATCH_PARTIAL_UPDATE, new BatchUpdateResponseBuilder(errorResponseBuilder));
result.put(ResourceMethod.BATCH_CREATE, new BatchCreateResponseBuilder(errorResponseBuilder));
result.put(ResourceMethod.BATCH_DELETE, new BatchUpdateResponseBuilder(errorResponseBuilder));
result.put(ResourceMethod.GET_ALL, new CollectionResponseBuilder());
return Collections.unmodifiableMap(result);
}
use of com.linkedin.restli.internal.server.response.GetResponseBuilder in project rest.li by linkedin.
the class DefaultMethodAdapterProvider method buildResponseBuilders.
private Map<ResourceMethod, RestLiResponseBuilder<?>> buildResponseBuilders(ErrorResponseBuilder errorResponseBuilder) {
Map<ResourceMethod, RestLiResponseBuilder<?>> result = new HashMap<>(ResourceMethod.values().length);
result.put(ResourceMethod.GET, new GetResponseBuilder());
result.put(ResourceMethod.BATCH_GET, new BatchGetResponseBuilder(errorResponseBuilder));
result.put(ResourceMethod.FINDER, new FinderResponseBuilder());
result.put(ResourceMethod.CREATE, new CreateResponseBuilder());
result.put(ResourceMethod.PARTIAL_UPDATE, new PartialUpdateResponseBuilder());
result.put(ResourceMethod.UPDATE, new UpdateResponseBuilder());
result.put(ResourceMethod.DELETE, new DeleteResponseBuilder());
result.put(ResourceMethod.ACTION, new ActionResponseBuilder());
result.put(ResourceMethod.BATCH_UPDATE, new BatchUpdateResponseBuilder(errorResponseBuilder));
result.put(ResourceMethod.BATCH_PARTIAL_UPDATE, new BatchPartialUpdateResponseBuilder(errorResponseBuilder));
result.put(ResourceMethod.BATCH_CREATE, new BatchCreateResponseBuilder(errorResponseBuilder));
result.put(ResourceMethod.BATCH_DELETE, new BatchDeleteResponseBuilder(errorResponseBuilder));
result.put(ResourceMethod.BATCH_FINDER, new BatchFinderResponseBuilder(errorResponseBuilder));
result.put(ResourceMethod.GET_ALL, new GetAllResponseBuilder());
return Collections.unmodifiableMap(result);
}
Aggregations