Package org.openas2.cmd
Class XMLCommandRegistry
- java.lang.Object
-
- org.openas2.BaseComponent
-
- org.openas2.cmd.BaseCommandRegistry
-
- org.openas2.cmd.XMLCommandRegistry
-
- All Implemented Interfaces:
CommandRegistry
,Component
public class XMLCommandRegistry extends BaseCommandRegistry
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PARAM_FILENAME
-
Constructor Summary
Constructors Constructor Description XMLCommandRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(Session session, java.util.Map<java.lang.String,java.lang.String> parameters)
Component lifecycle hook.void
load(java.io.InputStream in)
protected void
loadCommand(org.w3c.dom.Node node, MultiCommand parent)
protected void
loadMultiCommand(org.w3c.dom.Node node, MultiCommand parent)
void
refresh()
-
Methods inherited from class org.openas2.cmd.BaseCommandRegistry
getCommands, setCommands
-
Methods inherited from class org.openas2.BaseComponent
destroy, getName, getParameter, getParameter, getParameterInt, getParameters, getSession, setParameter, setParameter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openas2.Component
destroy, getName, getParameters, getSession
-
-
-
-
Field Detail
-
PARAM_FILENAME
public static final java.lang.String PARAM_FILENAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(Session session, java.util.Map<java.lang.String,java.lang.String> parameters) throws OpenAS2Exception
Description copied from interface:Component
Component lifecycle hook. After creating a Component object, this method should be called to set any parameters used by the component. Component implementations typically have required parameter checking and code to start timers and threads within this method.- Specified by:
init
in interfaceComponent
- Overrides:
init
in classBaseComponent
- Parameters:
session
- the component uses this object to access other componentsparameters
- configuration values for the component- Throws:
OpenAS2Exception
- If an error occurs while initializing the component- See Also:
Session
-
load
public void load(java.io.InputStream in) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, OpenAS2Exception
- Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
OpenAS2Exception
-
refresh
public void refresh() throws OpenAS2Exception
- Throws:
OpenAS2Exception
-
loadCommand
protected void loadCommand(org.w3c.dom.Node node, MultiCommand parent) throws OpenAS2Exception
- Throws:
OpenAS2Exception
-
loadMultiCommand
protected void loadMultiCommand(org.w3c.dom.Node node, MultiCommand parent) throws OpenAS2Exception
- Throws:
OpenAS2Exception
-
-