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

network.oxalis.test.asd.AsdTransmissionResponse Maven / Gradle / Ivy

package network.oxalis.test.asd;

import network.oxalis.api.model.TransmissionIdentifier;
import network.oxalis.api.outbound.TransmissionRequest;
import network.oxalis.api.outbound.TransmissionResponse;
import network.oxalis.vefa.peppol.common.model.*;

import java.util.Date;
import java.util.List;

/**
 * @author erlend
 */
public class AsdTransmissionResponse implements TransmissionResponse {

    private Endpoint endpoint;

    private Header header;

    private TransmissionIdentifier transmissionIdentifier;

    public AsdTransmissionResponse(TransmissionRequest transmissionRequest,
                                   TransmissionIdentifier transmissionIdentifier) {
        this.endpoint = transmissionRequest.getEndpoint();
        this.header = transmissionRequest.getHeader();
        this.transmissionIdentifier = transmissionIdentifier;
    }

    @Override
    public Endpoint getEndpoint() {
        return endpoint;
    }

    @Override
    public TransmissionIdentifier getTransmissionIdentifier() {
        return transmissionIdentifier;
    }

    @Override
    public Header getHeader() {
        return header;
    }

    @Override
    public Date getTimestamp() {
        return null;
    }

    @Override
    public Digest getDigest() {
        return null;
    }

    @Override
    public TransportProtocol getTransportProtocol() {
        return AsdConstants.TRANSPORT_PROTOCOL;
    }

    @Override
    public List getReceipts() {
        return null;
    }

    @Override
    public Receipt primaryReceipt() {
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy