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

io.baltoro.client.WebMethod Maven / Gradle / Ivy

There is a newer version: 4.0.12
Show newest version
package io.baltoro.client;

import java.lang.reflect.Method;

public class WebMethod
{
	
	private String webPath;
	boolean authRequired = true;
	private Class _class;
	private Method method;
	boolean discoverable = true;
	String propJson;
	int timeoutSec = 20;
	boolean webSocket;
	
	public WebMethod(String webPath, Class _class, Method method)
	{
		this.webPath = webPath;
		this._class = _class;
		this.method = method;
	}
	

	public Class get_class()
	{
		return _class;
	}

	public Method getMethod()
	{
		return method;
	}

	public String getWebPath()
	{
		return webPath;
	}
	
	
	public boolean isWebSocket()
	{
		return webSocket;
	}


	public void setWebSocket(boolean webSocket)
	{
		this.webSocket = webSocket;
	}


	@Override
	public String toString()
	{
		StringBuffer str = new StringBuffer();
		
		if(webPath != null)
		{
			str.append(webPath+", ");
		}
			
		if(_class != null)
		{
			str.append(_class.getSimpleName()+", ");
		}
		
		if(method != null)
		{
			str.append(method.getName()+", ");
		}
		return str.toString();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy