public class RequestObjectBuilderImpl extends Object implements RequestObjectBuilder
RequestObjectBuilder
interfaceModifier and Type | Field and Description |
---|---|
static String |
GENERICASYNC |
Constructor and Description |
---|
RequestObjectBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
Confirm |
buildConfirmRequest(OrigineType origin,
List<MsgResponse> msgResponses,
List<TAckResponse> tackResponses)
Builds a Confirm request from given parameters
|
Confirm |
buildConfirmRequestWithHashes(OrigineType origin,
List<byte[]> msgHashValues,
List<byte[]> tackContents)
Builds a Confirm request from given parameters
|
Confirm |
buildConfirmWithReferences(OrigineType origin,
GetResponse getResponse)
Builds a Confirm request, using references as tAck as message identifiers
|
Get |
buildGetRequest(OrigineType origin,
MsgQuery msgQuery,
Query tackQuery)
Builds a Get request from given parameters
|
Get |
buildGetRequest(OrigineType origin,
MsgQuery msgQuery,
Query tackQuery,
byte[] replyToEtk) |
Get |
buildGetRequest(OrigineType origin,
MsgQuery msgQuery,
Query tackQuery,
QueryParameters queryParameters) |
Get |
buildGetRequest(OrigineType origin,
MsgQuery msgQuery,
Query tackQuery,
QueryParameters queryParameters,
byte[] replyToEtk) |
Post |
buildPostRequest(CommonInput commonInput,
Blob blob,
byte[] xades)
Builds a Post request from given parameters
|
Post |
buildPostRequest(String projectName,
PostContent postContent)
Builds a Post request from given parameters
|
Post |
buildPostRequest(String messageName,
String projectName,
String platformName,
byte[] xmlByteArray,
InputReference inputReference) |
Post |
buildPostRequest(String messageName,
String projectName,
String platformName,
ConfigName configName,
byte[] xmlByteArray,
InputReference inputReference) |
Post |
buildPostRequest(String messageName,
String projectName,
String platformName,
Object object,
String schemaLocation,
InputReference inputReference) |
MsgQuery |
createMsgQuery(Integer max,
Boolean include,
String... messageNames)
convenience builder for
MsgQuery |
Query |
createQuery(Integer max,
Boolean include)
O creates the
Query object. |
void |
initialize(Map<String,Object> parameterMap)
initializes the implementation with additional parameters.
|
public static final String GENERICASYNC
public final Post buildPostRequest(CommonInput commonInput, Blob blob, byte[] xades)
RequestObjectBuilder
buildPostRequest
in interface RequestObjectBuilder
commonInput
- the common inputblob
- the details of the transactionxades
- the xadespublic final Post buildPostRequest(String projectName, PostContent postContent) throws TechnicalConnectorException
RequestObjectBuilder
buildPostRequest
in interface RequestObjectBuilder
projectName
- the name of the connector projectpostContent
- a pojo holding the post parametersTechnicalConnectorException
public final Get buildGetRequest(OrigineType origin, MsgQuery msgQuery, Query tackQuery)
RequestObjectBuilder
buildGetRequest
in interface RequestObjectBuilder
origin
- the originmsgQuery
- the message querytackQuery
- the tack queryRequestObjectBuilder.buildGetRequest(be.cin.mycarenet.esb.common.v2.OrigineType,
be.cin.nip.async.generic.MsgQuery, be.cin.nip.async.generic.Query)
public final Get buildGetRequest(OrigineType origin, MsgQuery msgQuery, Query tackQuery, QueryParameters queryParameters)
buildGetRequest
in interface RequestObjectBuilder
public final Get buildGetRequest(OrigineType origin, MsgQuery msgQuery, Query tackQuery, QueryParameters queryParameters, byte[] replyToEtk)
buildGetRequest
in interface RequestObjectBuilder
public final Get buildGetRequest(OrigineType origin, MsgQuery msgQuery, Query tackQuery, byte[] replyToEtk)
buildGetRequest
in interface RequestObjectBuilder
public final Confirm buildConfirmRequest(OrigineType origin, List<MsgResponse> msgResponses, List<TAckResponse> tackResponses) throws TechnicalConnectorException, DataFormatException
RequestObjectBuilder
buildConfirmRequest
in interface RequestObjectBuilder
origin
- the originmsgResponses
- the list of messages responses (from the get response)tackResponses
- tackContents the tack contents (from the get response)TechnicalConnectorException
DataFormatException
- if an error occurs while decompressing the blobRequestObjectBuilder.buildConfirmRequest(be.cin.mycarenet.esb.common.v2.OrigineType,
java.util.List, java.util.List)
public Confirm buildConfirmRequestWithHashes(OrigineType origin, List<byte[]> msgHashValues, List<byte[]> tackContents)
buildConfirmRequestWithHashes
in interface RequestObjectBuilder
origin
- msgHashValues
- tackContents
- public Confirm buildConfirmWithReferences(OrigineType origin, GetResponse getResponse)
RequestObjectBuilder
buildConfirmWithReferences
in interface RequestObjectBuilder
origin
- the origin of the confirmgetResponse
- the response of the get for which we want to confirm tAck and messagespublic Query createQuery(Integer max, Boolean include)
RequestObjectBuilder
Query
object.createQuery
in interface RequestObjectBuilder
max
- maximum number of tack resultsinclude
- set to false if no responses should be returned, the default value is 'true'Query
RequestObjectBuilder.createQuery(java.lang.Integer, java.lang.Boolean)
public MsgQuery createMsgQuery(Integer max, Boolean include, String... messageNames)
RequestObjectBuilder
MsgQuery
createMsgQuery
in interface RequestObjectBuilder
max
- maximum number of tack resultsinclude
- set to false if no responses should be returned, the default value is 'true'messageNames
- indicate the message types to receive, if no names are given , all messages for careProvider will be returnedMsgQuery
RequestObjectBuilder.createMsgQuery(java.lang.Integer, java.lang.Boolean,
java.lang.String[])
public void initialize(Map<String,Object> parameterMap) throws TechnicalConnectorException
ConfigurableImplementation
initialize
in interface ConfigurableImplementation
parameterMap
- Map with for each propertyString ,the input parameter as Object.TechnicalConnectorException
- if the parameterMap is not correct.ConfigurableImplementation.initialize(java.util.Map)
public Post buildPostRequest(String messageName, String projectName, String platformName, Object object, String schemaLocation, InputReference inputReference) throws TechnicalConnectorException
buildPostRequest
in interface RequestObjectBuilder
TechnicalConnectorException
public Post buildPostRequest(String messageName, String projectName, String platformName, byte[] xmlByteArray, InputReference inputReference) throws TechnicalConnectorException
buildPostRequest
in interface RequestObjectBuilder
TechnicalConnectorException
public Post buildPostRequest(String messageName, String projectName, String platformName, ConfigName configName, byte[] xmlByteArray, InputReference inputReference) throws TechnicalConnectorException
buildPostRequest
in interface RequestObjectBuilder
TechnicalConnectorException
Connector Packaging TRUSSMAKER 4.1.2 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.