Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/action
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7244/src/java/net/sf/asterisk/manager/action
Added Files:
SetVarAction.java
Log Message:
Added SetVarAction (named SetVar to match the already existing GetVarAction) (Patch #1151288)
--- NEW FILE: SetVarAction.java ---
/*
* Copyright 2004-2005 Stefan Reuter
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package net.sf.asterisk.manager.action;
/**
* The SetVar action will set the value of a variable for a given channel.
*
* @author Asteria Solutions Group, Inc. <http://www.asteriasgi.com>
* @version $Id: SetVarAction.java,v 1.1 2005/02/25 11:25:49 srt Exp $
*/
public class SetVarAction extends ManagerAction
{
/**
* Serial version identifier
*/
private static final long serialVersionUID = 3978144348493591607L;
/**
* The channel on which to set the variable.
*/
public String channel;
/**
* The name of the variable to set.
*/
public String variable;
/**
* The value to store.
*/
public String value;
/**
* Returns the name of this action, i.e. "SetVar".
*
* @return the name of this action
*/
public String getAction()
{
return "SetVar";
}
/**
* Returns the name of the channel.
*
* @return the name of channel.
*/
public String getChannel()
{
return channel;
}
/**
* Sets the name of the channel.
*
* @param channel the name of the channel to set.
*/
public void setChannel(String channel)
{
this.channel = channel;
}
/**
* Returns the name of the variable to set.
*
* @return the name of the variable to set.
*/
public String getVariable()
{
return variable;
}
/**
* Sets the name of the variable to set.
*
* @param variable the name of the variable to set.
*/
public void setVariable(String variable)
{
this.variable = variable;
}
/**
* Returns the value to store.
*
* @return the value to store.
*/
public String getValue()
{
return value;
}
/**
* Sets the value to store.
*
* @param value the value to set.
*/
public void setValue(String value)
{
this.value = value;
}
}
|