Class CollectionPageNonEntityRequest<T>
- java.lang.Object
-
- com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<T>
-
-
Constructor Summary
Constructors Constructor Description CollectionPageNonEntityRequest(ContextPath contextPath, Class<T> cls)CollectionPageNonEntityRequest(ContextPath contextPath, Class<T> cls, HttpMethod method, Map<String,TypedObject> parameters, int expectedResponseCode)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
spliterator
-
-
-
-
Constructor Detail
-
CollectionPageNonEntityRequest
public CollectionPageNonEntityRequest(ContextPath contextPath, Class<T> cls, HttpMethod method, Map<String,TypedObject> parameters, int expectedResponseCode)
-
CollectionPageNonEntityRequest
public CollectionPageNonEntityRequest(ContextPath contextPath, Class<T> cls)
-
-
Method Detail
-
forAction
public static <T> CollectionPageNonEntityRequest<T> forAction(ContextPath contextPath, Class<T> returnClass, Map<String,TypedObject> parameters)
-
forFunction
public static <T> CollectionPageNonEntityRequest<T> forFunction(ContextPath contextPath, Class<T> returnClass, Map<String,TypedObject> parameters)
-
get
public CollectionPage<T> get()
-
streamWithDeltaLink
public Stream<ObjectOrDeltaLink<T>> streamWithDeltaLink()
-
to
public <S> S to(Function<? super CollectionPage<T>,? extends S> function)
-
filter
public <S extends T> CollectionPageNonEntityRequest<S> filter(Class<S> cls)
Returns a request for only those members of the collection that are of the requested type. This is referred to in the OData 4.01 specification as a "restriction to instances of the derived type".- Type Parameters:
S- the type ("derived type") to be restricting to- Parameters:
cls- the Class of the type to restrict to- Returns:
- a request for a collection of instances with the given type
-
requestHeader
public CollectionNonEntityRequestOptionsBuilder<T> requestHeader(String key, String value)
-
query
public CollectionNonEntityRequestOptionsBuilder<T> query(String name, String value)
-
requestHeader
public CollectionNonEntityRequestOptionsBuilder<T> requestHeader(RequestHeader header)
-
maxPageSize
public CollectionNonEntityRequestOptionsBuilder<T> maxPageSize(int maxPageSize)
-
search
public CollectionNonEntityRequestOptionsBuilder<T> search(String clause)
-
filter
public CollectionNonEntityRequestOptionsBuilder<T> filter(String clause)
-
orderBy
public CollectionNonEntityRequestOptionsBuilder<T> orderBy(String clause)
-
skip
public CollectionNonEntityRequestOptionsBuilder<T> skip(long n)
-
top
public CollectionNonEntityRequestOptionsBuilder<T> top(long n)
-
select
public CollectionNonEntityRequestOptionsBuilder<T> select(String clause)
-
metadataFull
public CollectionNonEntityRequestOptionsBuilder<T> metadataFull()
-
metadataMinimal
public CollectionNonEntityRequestOptionsBuilder<T> metadataMinimal()
-
metadataNone
public CollectionNonEntityRequestOptionsBuilder<T> metadataNone()
-
urlOverride
public CollectionNonEntityRequestOptionsBuilder<T> urlOverride(String urlOverride)
-
deltaTokenLatest
public CollectionNonEntityRequestOptionsBuilder<T> deltaTokenLatest()
-
-