public class ResponseObjectBuilderImpl extends Object implements ResponseObjectBuilder
ResponseObjectBuilder
Modifier and Type | Field and Description |
---|---|
static String |
GENERICASYNC |
Constructor and Description |
---|
ResponseObjectBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getContent(MsgResponse msgResponse,
String projectName) |
Map<Object,SignatureVerificationResult> |
handleGetResponse(GetResponse getResponse)
Checks and validates the response of a get request.
|
Map<Object,SignatureVerificationResult> |
handleGetResponse(GetResponse getResponse,
String projectName) |
boolean |
handlePostResponse(PostResponse postResponse)
Check the response of a post request.
|
void |
initialize(Map<String,Object> parameterMap)
initializes the implementation with additional parameters.
|
<T> ProcessedMsgResponse<T> |
processEncryptedResponse(MsgResponse msgResponse,
String projectName,
Class<T> clazz) |
<T> ProcessedGetResponse |
processResponse(GetResponse getResponse,
Class<T> clazz,
String projectName,
String schemaLocation) |
SignatureVerificationResult |
validateMsgXadesT(Object value,
byte[] xadesT,
String projectName) |
SignatureVerificationResult |
validateTAckXadesT(Object value,
byte[] xadesT,
String projectName) |
public static final String GENERICASYNC
public final boolean handlePostResponse(PostResponse postResponse) throws GenAsyncBusinessConnectorException
ResponseObjectBuilder
handlePostResponse
in interface ResponseObjectBuilder
postResponse
- the WS responseGenAsyncBusinessConnectorException
ResponseObjectBuilder.handlePostResponse(PostResponse)
public final Map<Object,SignatureVerificationResult> handleGetResponse(GetResponse getResponse) throws GenAsyncBusinessConnectorException
ResponseObjectBuilder
handleGetResponse
in interface ResponseObjectBuilder
getResponse
- the WS ResponseSignatureVerificationResult
as valueGenAsyncBusinessConnectorException
- with the results if there is a signature verification failurepublic final Map<Object,SignatureVerificationResult> handleGetResponse(GetResponse getResponse, String projectName) throws GenAsyncBusinessConnectorException
handleGetResponse
in interface ResponseObjectBuilder
GenAsyncBusinessConnectorException
public <T> ProcessedGetResponse processResponse(GetResponse getResponse, Class<T> clazz, String projectName, String schemaLocation) throws GenAsyncBusinessConnectorException, TechnicalConnectorException
processResponse
in interface ResponseObjectBuilder
GenAsyncBusinessConnectorException
TechnicalConnectorException
public <T> ProcessedMsgResponse<T> processEncryptedResponse(MsgResponse msgResponse, String projectName, Class<T> clazz) throws TechnicalConnectorException, GenAsyncBusinessConnectorException
processEncryptedResponse
in interface ResponseObjectBuilder
TechnicalConnectorException
GenAsyncBusinessConnectorException
public byte[] getContent(MsgResponse msgResponse, String projectName) throws TechnicalConnectorException
TechnicalConnectorException
public SignatureVerificationResult validateTAckXadesT(Object value, byte[] xadesT, String projectName) throws GenAsyncBusinessConnectorException
validateTAckXadesT
in interface ResponseObjectBuilder
GenAsyncBusinessConnectorException
public SignatureVerificationResult validateMsgXadesT(Object value, byte[] xadesT, String projectName) throws GenAsyncBusinessConnectorException
validateMsgXadesT
in interface ResponseObjectBuilder
GenAsyncBusinessConnectorException
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)
Connector Packaging TRUSSMAKER 4.1.2 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.