The purpose of this change is to remove duplicate code in
RestApiServlet. The code in RestApiServlet that extracts the input type
from the REST view interface definition is almost identically for the 3
cases that extract the input type from RestCollectionView,
RestCreateView and RestDeleteMissingView. We can have this code only
once if all of these interfaces extend a common interface.
Since all of these views are about collections, naming this common
interface 'RestCollectionView' seems to be the best fit. This means the
current 'RestCollectionView' needs to get a new name.
The current 'RestCollectionView' that supports modifications on REST
collections is renamed to 'RestCollectionModifyView' as this name is
consistent with the existing 'RestModifyView' that supports
modifications on REST resources.
We could keep the names for 'RestCreateView' and
'RestDeleteMissingView', but for name consistency with
'RestCollectionModifyView' they are renamed to
'RestCollectionCreateView' and 'RestCollectionDeleteMissingView'.
Change-Id: Id2289a51c7d55bd61222ac132084e7f87328504c
Signed-off-by: Edwin Kempin <ekempin@google.com>