It is rare to call this method directly. More typically an {@link Event}subclass will provide a static register
method, or a widget will accept handlers directly.
@param < H> The type of handler
@param type the event type associated with this handler
@param handler the handler
@return the handler registration, can be stored in order to remove thehandler later
startElement
event, the {@link HandlerStack#currentPath current path} is matched againstsearchExpr
. If the search expression starts with a slash, the current path must match exactly. Else, the current path must end with the search expression.Namespaces are represented in the search expression using the notation "'{' uri '}' localName".
Search expressions starting with a slash take precedence over serach expressions without a slash. Both take precedence over {@link #addHandler(String,Class) simple element matches}.
@param searchExpr the expression to match.
@param handlerClass the associated handler class.
@throws IllegalStateException if handlerClass
is not derived from {@link StackedHandler StackedHandler
}.
WebActionHandler
}.
@param handler the handler to be added.
By default, Loggers also send their output to their parent logger. Typically the root Logger is configured with a set of Handlers that essentially act as default handlers for all loggers. @param handler a logging Handler @exception SecurityException if a security manager exists and ifthe caller does not have LoggingPermission("control").
ElementHandler
to be called when the specified path is encounted.
@param path is the path to be handled
@param handler is the ElementHandler
to be called by the eventbased processor.
Adds a new IQHandler to the list of registered handler. The new IQHandler will be responsible for handling IQ packet whose namespace matches the namespace of the IQHandler.
An IllegalArgumentException may be thrown if the IQHandler to register was already provided by the server. The server provides a certain list of IQHandlers when the server is started up. @param handler the IQHandler to add to the list of registered handler.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|