Search in sources :

Example 1 with TemplateActionResponseVerificator

use of com.axway.ats.agent.core.templateactions.model.TemplateActionResponseVerificator in project ats-framework by Axway.

the class TemplateLoadClient method configureAgentLoaders.

/**
     * Called right before sending the queued actions
     * @throws AgentException
     */
@Override
protected void configureAgentLoaders() throws AgentException {
    super.configureAgentLoaders();
    // get the configurator instance
    TemplateActionsResponseVerificationConfigurator verificationConfigurator = new TemplateActionsResponseVerificationConfigurator(queueName);
    // add globally applicable header matchers
    verificationConfigurator.addGlobalHeaderMatchers(globalHeadersMatchers);
    // add action verificators
    for (TemplateActionResponseVerificator verificator : verificators.values()) {
        verificationConfigurator.addActionVerificator(verificator);
    }
    // send the info to all loaders
    for (String loader : loaderAddresses) {
        new TemplateActionsResponseVerificationClient(loader, verificationConfigurator).send();
    }
}
Also used : TemplateActionResponseVerificator(com.axway.ats.agent.core.templateactions.model.TemplateActionResponseVerificator) TemplateActionsResponseVerificationConfigurator(com.axway.ats.agent.core.configuration.TemplateActionsResponseVerificationConfigurator)

Example 2 with TemplateActionResponseVerificator

use of com.axway.ats.agent.core.templateactions.model.TemplateActionResponseVerificator in project ats-framework by Axway.

the class TemplateLoadClient method getStepHeaderMatchers.

private List<HeaderMatcher> getStepHeaderMatchers(String actionName, int stepNumber) {
    TemplateActionResponseVerificator actionVerificator = verificators.get(actionName);
    if (actionVerificator == null) {
        actionVerificator = new TemplateActionResponseVerificator(actionName);
        verificators.put(actionName, actionVerificator);
    }
    return actionVerificator.getStepHeaderMatchers(stepNumber);
}
Also used : TemplateActionResponseVerificator(com.axway.ats.agent.core.templateactions.model.TemplateActionResponseVerificator)

Example 3 with TemplateActionResponseVerificator

use of com.axway.ats.agent.core.templateactions.model.TemplateActionResponseVerificator in project ats-framework by Axway.

the class TemplateLoadClient method getStepBodyMatchers.

private List<ResponseMatcher> getStepBodyMatchers(String actionName, int stepNumber) {
    TemplateActionResponseVerificator actionVerificator = verificators.get(actionName);
    if (actionVerificator == null) {
        actionVerificator = new TemplateActionResponseVerificator(actionName);
        verificators.put(actionName, actionVerificator);
    }
    return actionVerificator.getStepBodyMatchers(stepNumber);
}
Also used : TemplateActionResponseVerificator(com.axway.ats.agent.core.templateactions.model.TemplateActionResponseVerificator)

Aggregations

TemplateActionResponseVerificator (com.axway.ats.agent.core.templateactions.model.TemplateActionResponseVerificator)3 TemplateActionsResponseVerificationConfigurator (com.axway.ats.agent.core.configuration.TemplateActionsResponseVerificationConfigurator)1