Class RemoteInstance
java.lang.Object
com.adobe.acs.commons.contentsync.RemoteInstance
- All Implemented Interfaces:
Closeable,AutoCloseable
HTTP connection to a remote AEM instance + some sugar methods to fetch data
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteInstance(SyncHostConfiguration hostConfiguration, org.apache.sling.api.resource.ValueMap generalSettings) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()javax.json.JsonObjectjavax.json.JsonObjectgetPrimaryType(String path) listChildren(String path)
-
Constructor Details
-
RemoteInstance
public RemoteInstance(SyncHostConfiguration hostConfiguration, org.apache.sling.api.resource.ValueMap generalSettings) throws GeneralSecurityException - Throws:
GeneralSecurityException
-
-
Method Details
-
getStream
- Throws:
IOExceptionURISyntaxException
-
getStream
- Throws:
IOException
-
getString
- Throws:
IOException
-
getPrimaryType
- Throws:
IOExceptionURISyntaxException
-
listChildren
- Throws:
IOExceptionURISyntaxException
-
getJson
public javax.json.JsonObject getJson(String path, String... parameters) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-
getJson
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-