Base class for building REST endpoints that represents a stream of TEntity
s as TElementEndpoint
s.
More...
|
StoppableObservable< TEntity > | getObservable (long startIndex) |
|
TElementEndpoint | get (String id) |
|
TElementEndpoint | get (TEntity entity) |
|
Optional< Boolean > | isReadAllAllowed () |
|
List< TEntity > | readAll () throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException |
|
Optional< Boolean > | isReadRangeAllowed () |
|
PartialResponse< TEntity > | readRange (Long from, Long to) throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException, IllegalStateException |
|
Optional< Boolean > | isCreateAllowed () |
|
TElementEndpoint | create (TEntity entity) throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException |
|
Optional< Boolean > | isCreateAllAllowed () |
|
void | createAll (Iterable< TEntity > entities) throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException |
|
Optional< Boolean > | isSetAllAllowed () |
|
void | setAll (Collection< TEntity > entities) throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException |
|
default StoppableObservable< TEntity > | getObservable () |
| Provides an observable stream of elements. More...
|
|
StoppableObservable< TEntity > | getObservable (long startIndex) |
| Provides an observable stream of elements. More...
|
|
|
StoppableObservable< TEntity > | getObservable (final long startIndex, Scheduler scheduler) |
| Provides an observable stream of elements. More...
|
|
|
final Class< TEntity > | entityType |
|
Base class for building REST endpoints that represents a stream of TEntity
s as TElementEndpoint
s.
- Parameters
-
<TEntity> | The type of entity the endpoint represents. |
<TElementEndpoint> | The specific type of ElementEndpoint to provide for individual TEntity s. |
◆ AbstractStreamEndpoint() [1/2]
Creates a new element stream endpoint.
- Parameters
-
referrer | The endpoint used to navigate to this one. |
relativeUri | The URI of this endpoint relative to the referrer 's. Missing trailing slash will be appended automatically. |
entityType | The type of entity the endpoint represents. |
◆ AbstractStreamEndpoint() [2/2]
Creates a new element stream endpoint.
- Parameters
-
referrer | The endpoint used to navigate to this one. |
relativeUri | The URI of this endpoint relative to the referrer 's. Missing trailing slash will be appended automatically. Prefix ./ to append a trailing slash to the parent URI if missing. |
entityType | The type of entity the endpoint represents. |
◆ getObservable()
Provides an observable stream of elements.
- Parameters
-
startIndex | The index of the first element to return in the stream. Use negative values to start counting from the end of the stream. |
scheduler | The scheduler used to run the background thread. |
- Returns
- An observable stream of elements.
The documentation for this class was generated from the following file:
- /home/travis/build/TypedRest/TypedRest-Java/core/src/main/java/net/typedrest/AbstractStreamEndpoint.java