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

com.webank.wecross.stub.TransactionRequest Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.webank.wecross.stub;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

public class TransactionRequest {
    private String method;
    private String[] args;

    // Optional args
    // xaTransactionID, xaTransactionSeq, peers, etc...
    private Map options = new HashMap();

    public TransactionRequest() {}

    public TransactionRequest(String method, String[] args) {
        this.method = method;
        this.args = args;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String[] getArgs() {
        return args;
    }

    public void setArgs(String[] args) {
        this.args = args;
    }

    public Map getOptions() {
        return options;
    }

    public void setOptions(Map options) {
        this.options = options;
    }

    @Override
    public String toString() {
        return "TransactionRequest{"
                + "method='"
                + method
                + '\''
                + ", args="
                + Arrays.toString(args)
                + ", options="
                + options
                + '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy