public interface Integration
Modifier and Type | Method and Description |
---|---|
IHttpResponse |
executeHttpRequest(java.net.URI uri,
HttpMethod method,
HttpHeader[] headers,
java.io.InputStream content)
Deprecated.
As of release 7.8, replaced by
Http.executeHttpRequest(java.net.URI, com.mendix.http.HttpMethod, com.mendix.http.HttpHeader[], InputStream) |
default java.io.InputStream |
exportStream(IContext context,
java.lang.String exportMappingName,
IMendixObject objectToExport,
boolean shouldValidate)
Deprecated.
As of release 7.5, replaced by
exportToStream(IContext, String, IMendixObject, boolean) |
java.io.InputStream |
exportToStream(IContext context,
java.lang.String exportMappingName,
IMendixObject objectToExport,
boolean shouldValidate)
Export domain model objects to an XML or JSON stream.
|
java.io.InputStream |
exportToStream(IContext context,
java.lang.String exportMappingName,
java.util.List<IMendixObject> objectsToExport,
boolean shouldValidate)
Export domain model objects to an XML or JSON stream.
|
default java.util.List<IMendixObject> |
importStream(IContext context,
java.io.InputStream stream,
java.lang.String importMappingName,
ActionWhenNoObjectFound actionWhenNoObjectFound,
IMendixObject mappingParameter,
int limit,
boolean shouldValidate)
Import a XML or JSON stream, map this stream to domain model objects and store those objects in the Mendix database.
|
java.util.List<IMendixObject> |
importStream(IContext context,
java.io.InputStream stream,
java.lang.String importMappingName,
ActionWhenNoObjectFound actionWhenNoObjectFound,
IMendixObject mappingParameter,
int limit,
ShouldCommit shouldCommit,
boolean shouldValidate)
Import a XML or JSON stream, map this stream to domain model objects and (optionally) store those objects in the Mendix database.
|
default java.util.List<IMendixObject> |
importStream(IContext context,
java.io.InputStream stream,
java.lang.String importMappingName,
IMendixObject mappingParameter,
boolean shouldValidate)
Import a XML or JSON stream, map this stream to domain model objects and store those objects in the Mendix database.
|
default java.util.List<IMendixObject> |
importStream(IContext context,
java.io.InputStream stream,
java.lang.String importMappingName,
IMendixObject mappingParameter,
int limit,
boolean shouldValidate)
Import a XML or JSON stream, map this stream to domain model objects and store those objects in the Mendix database.
|
java.util.List<IMendixObject> importStream(IContext context, java.io.InputStream stream, java.lang.String importMappingName, ActionWhenNoObjectFound actionWhenNoObjectFound, IMendixObject mappingParameter, int limit, ShouldCommit shouldCommit, boolean shouldValidate)
context
- the context.stream
- the XML or JSON stream to map and store.importMappingName
- name of the mapping document, containing the mapping of the XML or JSON to domain model objects.actionWhenNoObjectFound
- indicates what should happen when no object was found.mappingParameter
- parameter object used during the mapping (optional).limit
- the maximum number of results to be returned. This is unlimited when set to -1.shouldCommit
- indicates whether created or changed objects should be committed (stored in the database).shouldValidate
- whether the XML should be validated (not supported for JSON).default java.util.List<IMendixObject> importStream(IContext context, java.io.InputStream stream, java.lang.String importMappingName, ActionWhenNoObjectFound actionWhenNoObjectFound, IMendixObject mappingParameter, int limit, boolean shouldValidate)
context
- the context.stream
- the XML or JSON stream to map and store.importMappingName
- name of the mapping document, containing the mapping of the XML or JSON to domain model objects.actionWhenNoObjectFound
- indicates what should happen when no object was found.mappingParameter
- parameter object used during the mapping (optional).limit
- the maximum number of results to be returned. This is unlimited when set to -1.shouldValidate
- whether the XML should be validated (not supported for JSON).default java.util.List<IMendixObject> importStream(IContext context, java.io.InputStream stream, java.lang.String importMappingName, IMendixObject mappingParameter, boolean shouldValidate)
context
- the context.stream
- the XML or JSON stream to map and store.importMappingName
- name of the mapping document, containing the mapping of the XML or JSON to domain model objects.mappingParameter
- parameter object used during the mapping (optional).shouldValidate
- whether the XML should be validated (not supported for JSON).default java.util.List<IMendixObject> importStream(IContext context, java.io.InputStream stream, java.lang.String importMappingName, IMendixObject mappingParameter, int limit, boolean shouldValidate)
context
- the context.stream
- the XML or JSON stream to map and store.importMappingName
- name of the mapping document, containing the mapping of the XML or JSON to domain model objects.mappingParameter
- parameter object used during the mapping (optional).limit
- the maximum number of results to be returned. This is unlimited when set to -1.shouldValidate
- whether the XML should be validated (not supported for JSON).java.io.InputStream exportToStream(IContext context, java.lang.String exportMappingName, IMendixObject objectToExport, boolean shouldValidate)
context
- the context.exportMappingName
- name of the mapping document, containing the mapping of the domain model objects to XML or JSON.objectToExport
- Domain model object to export to JSON or XML using the specified export mapping.shouldValidate
- whether the XML should be validated (not supported for JSON).java.io.InputStream exportToStream(IContext context, java.lang.String exportMappingName, java.util.List<IMendixObject> objectsToExport, boolean shouldValidate)
context
- the context.exportMappingName
- name of the mapping document, containing the mapping of the domain model objects to XML or JSON.objectsToExport
- Domain model objects to export to JSON or XML using the specified export mapping.shouldValidate
- whether the XML should be validated (not supported for JSON).@Deprecated default java.io.InputStream exportStream(IContext context, java.lang.String exportMappingName, IMendixObject objectToExport, boolean shouldValidate)
exportToStream(IContext, String, IMendixObject, boolean)
context
- the context.exportMappingName
- name of the mapping document, containing the mapping of the domain model objects to XML or JSON.objectToExport
- Domain model object to export to JSON or XML using the specified export mapping.shouldValidate
- whether the XML should be validated (not supported for JSON).@Deprecated IHttpResponse executeHttpRequest(java.net.URI uri, HttpMethod method, HttpHeader[] headers, java.io.InputStream content)
Http.executeHttpRequest(java.net.URI, com.mendix.http.HttpMethod, com.mendix.http.HttpHeader[], InputStream)
uri
- the uri to contact.method
- the HTTP method.headers
- the headers of the request.content
- the content of the request, or null when there is no content. For methods GET and DELETE this value
is ignored.