|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.gdata.server.GDataEntityBuilder
public class GDataEntityBuilder
com.google.gdata.data.BaseFeed,
com.google.gdata.data.BaseEntry instances have to be build from a
Reader instance as they come in from a client request or out
of a storage.
To provide a generic builder class the GDataEntityBuilder requests
the type of the feed / entry and the corresponding
com.google.gdata.data.ExtensionProfile form the global
GDataServerRegistry and
builds the instances from the provided reader.
This build will not returne the abstract base classes.
| Constructor Summary | |
|---|---|
GDataEntityBuilder()
|
|
| Method Summary | |
|---|---|
static BaseEntry |
buildEntry(GDataRequest request)
Builds a BaseEntry instance from the Reader provided by
the GDataRequest |
static BaseEntry |
buildEntry(Reader reader,
ProvidedService config)
Builds a BaseFeed instance from the Reader provided by
the GDataRequest |
static BaseFeed |
buildFeed(GDataRequest request)
Builds a BaseFeed instance from the Reader provided by
the GDataRequest |
static BaseFeed |
buildFeed(Reader reader,
ProvidedService config)
Builds a BaseFeed from the provided Reader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GDataEntityBuilder()
| Method Detail |
|---|
public static BaseFeed buildFeed(GDataRequest request)
throws IOException,
ParseException
BaseFeed instance from the Reader provided by
the GDataRequest
request - -
the request to build the instance from
IOException - -
if an I/O Exception occures on the provided reader
ParseException - -
if the feed could not be parsed
public static BaseFeed buildFeed(Reader reader,
ProvidedService config)
throws ParseException,
IOException
BaseFeed from the provided Reader
reader - -
the reader to build the feed fromconfig - -
the feed instance config containing the extension profile to
parse the resource
IOException - -
if an I/O Exception occures on the provided reader
ParseException - -
if the feed could not be parsed
public static BaseEntry buildEntry(GDataRequest request)
throws IOException,
ParseException
BaseEntry instance from the Reader provided by
the GDataRequest
request - -
the request to build the instance from
IOException - -
if an I/O Exception occures on the provided reader
ParseException - -
if the entry could not be parsed
public static BaseEntry buildEntry(Reader reader,
ProvidedService config)
throws ParseException,
IOException
BaseFeed instance from the Reader provided by
the GDataRequest
reader - -
the reader to build the feed fromconfig - -
the instance config containing the extension profile to parse
the resource
IOException - -
if an I/O Exception occures on the provided reader
ParseException - -
if the entry could not be parsed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||