Class AbstractGoogleApiOperations
- java.lang.Object
-
- org.springframework.social.google.api.impl.AbstractGoogleApiOperations
-
- Direct Known Subclasses:
CalendarTemplate,DriveTemplate,OAuth2Template,PeopleTemplate,PlusTemplate,TaskTemplate
public abstract class AbstractGoogleApiOperations extends Object
Abstract superclass for implementations that work with Google+ APIs.- Author:
- Gabriel Axel
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisAuthorizedprotected org.springframework.web.client.RestTemplaterestTemplate
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractGoogleApiOperations(org.springframework.web.client.RestTemplate restTemplate, boolean isAuthorized)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddeleteEntity(String baseUrl, String id)protected voiddeleteEntity(String baseUrl, ApiEntity entity)protected <T> TgetEntity(String url, Class<T> type)protected <T> Tpatch(String url, Object request, Class<T> responseType)protected voidrequireAuthorization()protected <T> TsaveEntity(String url, T entity)
-
-
-
Method Detail
-
requireAuthorization
protected void requireAuthorization()
-
saveEntity
protected <T> T saveEntity(String url, T entity)
-
-