|
||||||||||
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
BaseFeed
,
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
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 com.google.gdata.data.BaseEntry |
buildEntry(GDataRequest request)
Builds a BaseEntry instance from the Reader provided by
the GDataRequest |
static com.google.gdata.data.BaseEntry |
buildEntry(Reader reader,
ProvidedService config)
Builds a BaseFeed instance from the Reader provided by
the GDataRequest |
static com.google.gdata.data.BaseFeed |
buildFeed(GDataRequest request)
Builds a BaseFeed instance from the Reader provided by
the GDataRequest |
static com.google.gdata.data.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 com.google.gdata.data.BaseFeed buildFeed(GDataRequest request) throws IOException, com.google.gdata.util.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
com.google.gdata.util.ParseException
- -
if the feed could not be parsedpublic static com.google.gdata.data.BaseFeed buildFeed(Reader reader, ProvidedService config) throws com.google.gdata.util.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
com.google.gdata.util.ParseException
- -
if the feed could not be parsedpublic static com.google.gdata.data.BaseEntry buildEntry(GDataRequest request) throws IOException, com.google.gdata.util.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
com.google.gdata.util.ParseException
- -
if the entry could not be parsedpublic static com.google.gdata.data.BaseEntry buildEntry(Reader reader, ProvidedService config) throws com.google.gdata.util.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
com.google.gdata.util.ParseException
- -
if the entry could not be parsed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |