Methods Summary |
---|
public static com.google.gdata.data.BaseEntry | buildEntry(GDataRequest request)Builds a {@link BaseEntry} instance from the {@link Reader} provided by
the {@link GDataRequest}
if (request == null)
throw new IllegalArgumentException("request must not be null");
ProvidedService config = request.getConfigurator();
return buildEntry(request.getReader(), config);
|
public static com.google.gdata.data.BaseEntry | buildEntry(java.io.Reader reader, org.apache.lucene.gdata.server.registry.ProvidedService config)Builds a {@link BaseFeed} instance from the {@link Reader} provided by
the {@link GDataRequest}
BaseEntry e = createEntityInstance(config).createEntry();
e.parseAtom(config.getExtensionProfile(), reader);
return e;
|
public static com.google.gdata.data.BaseFeed | buildFeed(GDataRequest request)Builds a {@link BaseFeed} instance from the {@link Reader} provided by
the {@link GDataRequest}
if (request == null)
throw new IllegalArgumentException("request must not be null");
ProvidedService config = request.getConfigurator();
return buildFeed(request.getReader(), config);
|
public static com.google.gdata.data.BaseFeed | buildFeed(java.io.Reader reader, org.apache.lucene.gdata.server.registry.ProvidedService config)Builds a {@link BaseFeed} from the provided {@link Reader}
BaseFeed retVal = null;
retVal = createEntityInstance(config);
retVal.parseAtom(config.getExtensionProfile(), reader);
return retVal;
|
private static com.google.gdata.data.BaseFeed | createEntityInstance(org.apache.lucene.gdata.server.registry.ProvidedService config)
if(config.getFeedType() == null)
throw new IllegalArgumentException("feedtype is null in ProvidedService");
BaseFeed retVal = null;
try {
retVal = (BaseFeed) config.getFeedType().newInstance();
} catch (Exception e) {
throw new EntityBuilderException("Can't instanciate Feed for feedType "+config.getFeedType().getName(),e);
}
return retVal;
|