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

ch.squaredesk.nova.comm.http.RpcCompletor Maven / Gradle / Ivy

/*
 * Copyright (c) Squaredesk GmbH and Oliver Dotzauer.
 *
 * This program is distributed under the squaredesk open source license. See the LICENSE file
 * distributed with this work for additional information regarding copyright ownership. You may also
 * obtain a copy of the license at
 *
 *   https://squaredesk.ch/license/oss/LICENSE
 *
 */

package ch.squaredesk.nova.comm.http;

import java.util.Map;

public interface RpcCompletor extends ch.squaredesk.nova.comm.rpc.RpcCompletor {

    default void complete(int statusCode, MessageType reply, Map replyHeaders) {
        ReplyInfo replyInfo = new ReplyInfo(statusCode, replyHeaders);
        complete(reply, replyInfo);
    }

    default void complete(int statusCode, MessageType reply) {
        complete(statusCode, reply, null);
    }

    default void complete(MessageType reply, Map replyHeaders) {
        complete(200, reply, replyHeaders);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy