org.activecomponents.webservice.messages.ServiceInvocationMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-platform-webservice-websocket Show documentation
Show all versions of jadex-platform-webservice-websocket Show documentation
Jadex websocket webservice implementation
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