public class ResourceEnumerator
extends java.lang.Object
Constructor and Description |
---|
ResourceEnumerator(oracle.iot.client.enterprise.EnterpriseClient client,
java.lang.String deviceId)
Creates a resource enumerator to retrieve resources of a device.
|
Modifier and Type | Method and Description |
---|---|
oracle.iot.client.enterprise.Pageable<Resource> |
getResources()
Get the resources for the specified
deviceId . |
public ResourceEnumerator(oracle.iot.client.enterprise.EnterpriseClient client, java.lang.String deviceId)
client
- the client to use to retrieve messagesdeviceId
- the device identifierjava.lang.NullPointerException
- if either the client or device ID
is null
public oracle.iot.client.enterprise.Pageable<Resource> getResources() throws java.io.IOException, java.security.GeneralSecurityException
deviceId
.java.io.IOException
- if an I/O error occurred while trying to
retrieve resources 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.