
edu.stanford.protege.webprotege.gateway.RpcRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webprotege-gwt-api-gateway Show documentation
Show all versions of webprotege-gwt-api-gateway Show documentation
The API Gateway for the WebProtégé GWT User Interface
The newest version!
package edu.stanford.protege.webprotege.gateway;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
import com.fasterxml.jackson.databind.node.ObjectNode;
/**
* Matthew Horridge
* Stanford Center for Biomedical Informatics Research
* 2021-07-21
*/
public record RpcRequest(RpcMethod method, ObjectNode params) {
public RpcRequest {
if(params == null) {
params = new ObjectNode(new JsonNodeFactory(true));
}
}
@JsonIgnore
String methodName() {
return this.method.getMethodName();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy