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

io.zbus.rpc.Request Maven / Gradle / Ivy

There is a newer version: 1.0.0-b1
Show newest version
package io.zbus.rpc;

import java.util.Arrays;

public class Request{ 
	private String module = "";  
	private String method;       
	private Object[] params;     
	private String[] paramTypes; 
	
	public String getModule() {
		return module;
	}
	public void setModule(String module) {
		this.module = module;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public Object[] getParams() {
		return params;
	}
	public void setParams(Object[] params) {
		this.params = params;
	}
	public String[] getParamTypes() {
		return paramTypes;
	}
	public void setParamTypes(String[] paramTypes) {
		this.paramTypes = paramTypes;
	} 
	public Request method(String method){
		this.method = method;
		return this;
	}
	public Request module(String module){
		this.module = module;
		return this;
	}
	public Request params(Object... params){
		this.params = params;
		return this;
	} 
	
	public Request paramTypes(Class... types){
		if(types == null) return this;
		this.paramTypes = new String[types.length];
		for(int i=0; i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy