List of usage examples for com.google.api.client.googleapis.xml.atom GoogleAtom getFieldsFor
public static String getFieldsFor(Class<?> dataClass)
From source file:cd.education.data.collector.android.picasa.GDataXmlClient.java
License:Apache License
@Override protected void prepareUrl(GenericUrl url, Class<?> parseAsType) { super.prepareUrl(url, parseAsType); if (partialResponse && parseAsType != null) { url.put("fields", GoogleAtom.getFieldsFor(parseAsType)); }/*from ww w . j av a 2 s. co m*/ }
From source file:com.phonegap.calendar.android.core.CalendarClient.java
License:Apache License
/** * Executes the operations in order to get calendar info from feeds * @param <F> generic for type of feed we are requesting for * @param url CalendarUrl where the request will be executed * @param feedClass type of feed class we are requesting for * @return feed class with the requested information * @throws IOException// w w w . j a v a2s .c o m */ <F extends Feed> F executeGetFeed(CalendarUrl url, Class<F> feedClass) throws IOException { url.fields = GoogleAtom.getFieldsFor(feedClass); HttpRequest request = requestFactory.buildGetRequest(url); Log.i("REQUEST", url.toString()); return request.execute().parseAs(feedClass); }
From source file:de.kurashigegollub.com.google.calender.GDataXmlClient.java
License:Apache License
@Override protected void prepareUrl(GoogleUrl url, Class<?> parseAsType) { super.prepareUrl(url, parseAsType); if (partialResponse && parseAsType != null) { url.fields = GoogleAtom.getFieldsFor(parseAsType); }//from w ww. j a v a2 s .c o m }
From source file:net.rhinox.api.client.cliniccal.calendar.android.model.CalendarClient.java
License:Apache License
<F extends Feed> F executeGetFeed(CalendarUrl url, Class<F> feedClass) throws IOException { url.fields = GoogleAtom.getFieldsFor(feedClass); HttpRequest request = requestFactory.buildGetRequest(url); return request.execute().parseAs(feedClass); }
From source file:org.nilriri.LunaCalendar.gcal.Entry.java
License:Apache License
static Entry executeGetOriginalEntry(HttpTransport transport, CalendarUrl url, Class<? extends Entry> entryClass) throws IOException { url.fields = GoogleAtom.getFieldsFor(entryClass); HttpRequest request = transport.buildGetRequest(); request.url = url;// w ww .j a va 2s. com return RedirectHandler.execute(request).parseAs(entryClass); }