public final class DeviceAppEnumerator
extends java.lang.Object
DeviceAppEnumerator
can be used to enumerate device applications.Constructor and Description |
---|
DeviceAppEnumerator(oracle.iot.client.enterprise.EnterpriseClient client)
Creates a message enumerator to retrieve messages.
|
Modifier and Type | Method and Description |
---|---|
oracle.iot.client.enterprise.Pageable<DeviceApp> |
getDeviceApps(oracle.iot.client.enterprise.Filter filter)
Return a
Pageable collection of DeviceApp matching the specified filter. |
public DeviceAppEnumerator(oracle.iot.client.enterprise.EnterpriseClient client)
client
- the client to use to retrieve messagesjava.lang.NullPointerException
- if the client is null
public oracle.iot.client.enterprise.Pageable<DeviceApp> getDeviceApps(oracle.iot.client.enterprise.Filter filter) throws java.io.IOException, java.security.GeneralSecurityException
Pageable
collection of DeviceApp
matching the specified filter.
The filter
forms a query. If not null
, only device applications that satisfy the filter
are returned.
filter
- A filter to constrain the collection of device apps. If null
, all the device applications
are returned.Pageable
collection of DeviceApp
that satisfy the filter
and status
.
If no matching device application is found, an Pageable
with no elements is returned.java.io.IOException
- if an I/O error occurred when trying to retrieve data from serverjava.security.GeneralSecurityException
- when key or signature algorithm class
cannot be loaded, or the key is not in
the trusted assets store, or the
private key is invalid. If User Authentication is used,
then UserAuthenticationException
will be thrown
if the session cookie has expired.