All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.autonomy.aci.client.services.StAXProcessor Maven / Gradle / Ivy

/*
 * Copyright 2006-2018 Open Text.
 *
 * Licensed under the MIT License (the "License"); you may not use this file
 * except in compliance with the License.
 *
 * The only warranties for products and services of Open Text and its affiliates
 * and licensors ("Open Text") are as may be set forth in the express warranty
 * statements accompanying such products and services. Nothing herein should be
 * construed as constituting an additional warranty. Open Text shall not be
 * liable for technical or editorial errors or omissions contained herein. The
 * information contained herein is subject to change without notice.
 */

package com.autonomy.aci.client.services;

import javax.xml.stream.XMLStreamReader;

/**
 * Defines methods that StAX based ACI response processors should implement.
 * @param  The type of object this processor will generate
 */
public interface StAXProcessor extends Processor {

    /**
     * Process the ACI response input into an object of type T.
     * @param aciResponse The ACI server response to process
     * @return An object of type T
     * @throws AciErrorException  If the ACI response was an error response
     * @throws ProcessorException If an error occurred during the processing of the ACI server response
     */
    T process(XMLStreamReader aciResponse) throws AciErrorException, ProcessorException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy