tigase.server.script
Class Script

java.lang.Object
  extended by tigase.server.script.AbstractScriptCommand
      extended by tigase.server.script.Script
All Implemented Interfaces:
CommandIfc

public class Script
extends AbstractScriptCommand

Created: Jan 2, 2009 1:21:55 PM

Version:
$Rev: 1998 $
Author:
Artur Hefczyc

Field Summary
 
Fields inherited from class tigase.server.script.AbstractScriptCommand
lineCommentStart
 
Fields inherited from interface tigase.server.script.CommandIfc
ADD_SCRIPT_CMD, ADMN_CMDS, ADMN_DISC, AUTH_REPO, COMMAND_ID, COMPONENT_NAME, DEL_SCRIPT_CMD, DESCRIPT, LANGUAGE, PACKET, SAVE_TO_DISK, SCRI_MANA, SCRIPT_BASE_DIR, SCRIPT_COMP_DIR, SCRIPT_COMPONENT, SCRIPT_DESCRIPTION, SCRIPT_ID, SCRIPT_RESULT, SCRIPT_TEXT, USER_CONN, USER_REPO, USER_SESS
 
Constructor Summary
Script()
           
 
Method Summary
 javax.script.Bindings getBindings()
           
 String getFileExtension()
           
 String getLanguageName()
           
 void init(String id, String description, String script, String lang, String ext, javax.script.Bindings binds)
           
 void runCommand(Iq packet, javax.script.Bindings binds, Queue<Packet> results)
           
 
Methods inherited from class tigase.server.script.AbstractScriptCommand
getCommandId, getDescription, init, isEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Script

public Script()
Method Detail

init

public void init(String id,
                 String description,
                 String script,
                 String lang,
                 String ext,
                 javax.script.Bindings binds)
          throws javax.script.ScriptException
Throws:
javax.script.ScriptException

getLanguageName

public String getLanguageName()

getFileExtension

public String getFileExtension()

runCommand

public void runCommand(Iq packet,
                       javax.script.Bindings binds,
                       Queue<Packet> results)

getBindings

public javax.script.Bindings getBindings()


Copyright © 2001-2006 Tigase Developers Team. All rights Reserved.