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

com.tinkerpop.gremlin.driver.message.ResponseStatus Maven / Gradle / Ivy

package com.tinkerpop.gremlin.driver.message;

import java.util.Map;

/**
 * @author Stephen Mallette (http://stephen.genoprime.com)
 */
public class ResponseStatus {
    private final ResponseStatusCode code;
    private final String message;
    private final Map attributes;

    public ResponseStatus(final ResponseStatusCode code, final String message, final Map attributes){
        this.code = code;
        this.message = message;
        this.attributes = attributes;
    }

    public ResponseStatusCode getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public Map getAttributes() {
        return attributes;
    }

    @Override
    public String toString() {
        return "ResponseStatus{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", attributes=" + attributes +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy