use of com.linkedin.restli.internal.server.response.BatchUpdateResponseBuilder 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);
}
Aggregations