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

org.activecomponents.webservice.messages.ServiceInvocationMessage Maven / Gradle / Ivy

There is a newer version: 4.0.267
Show newest version
package org.activecomponents.webservice.messages;

import jadex.bridge.service.IServiceIdentifier;
import jadex.commons.SUtil;

/**
 *  Message for invoking a service.
 */
public class ServiceInvocationMessage extends BaseMessage
{
	/** The message name. */
	protected String methodname;
	
	/** The service id of the service to invoke. */
	protected IServiceIdentifier sid;
	
	/** The parameter values. */
	protected Object[] parametervalues;
	
	/**
	 *  Create a new command.
	 */ 
	public ServiceInvocationMessage()
	{
	}

	/**
	 *  Create a new command.
	 *  @param callid The callid.
	 *  @param serviceId The serviceid;
	 *  @param parameterNames The parameter names.
	 *  @param parameterValues The parameter values.
	 */
	public ServiceInvocationMessage(String callid, IServiceIdentifier serviceid, String methodname, Object[] parametervalues)
	{
		super(callid);
		this.sid = serviceid;
		this.methodname = methodname;
		this.parametervalues = parametervalues;
	}

	/** 
	 *  Get the serviceId.
	 *  @return Tthe serviceId
	 */
	public IServiceIdentifier getServiceId()
	{
		return sid;
	}

	/**
	 *  Set the serviceId.
	 *  @param serviceId The serviceId to set
	 */
	public void setServiceId(IServiceIdentifier serviceid)
	{
		this.sid = serviceid;
	}

	/** 
	 *  Get the parameterValues.
	 *  @return Tthe parameterValues
	 */
	public Object[] getParameterValues()
	{
		return parametervalues!=null? parametervalues: SUtil.EMPTY_OBJECT_ARRAY;
	}

	/**
	 *  Set the parameter values.
	 *  @param parametervalues The parameterValues to set
	 */
	public void setParameterValues(Object[] parametervalues)
	{
		this.parametervalues = parametervalues;
	}

	/** 
	 *  Get the methodName.
	 *  @return Tthe methodName
	 */
	public String getMethodName()
	{
		return methodname;
	}

	/**
	 *  Set the method name.
	 *  @param methodname The method name to set
	 */
	public void setMethodName(String methodname)
	{
		this.methodname = methodname;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy