net.sourceforge.guacamole.net.basic.xml.user_mapping
Class ProtocolTagHandler

java.lang.Object
  extended by net.sourceforge.guacamole.net.basic.xml.user_mapping.ProtocolTagHandler
All Implemented Interfaces:
TagHandler

public class ProtocolTagHandler
extends Object
implements TagHandler

TagHandler for the "protocol" element.

Author:
Mike Jumper

Constructor Summary
ProtocolTagHandler(net.sourceforge.guacamole.protocol.GuacamoleConfiguration config)
          Creates a new handler for a "protocol" tag having the given attributes.
 
Method Summary
 TagHandler childElement(String localName, Attributes attributes)
          Called when a child element of the current element is parsed.
 void complete(String textContent)
          Called when this element, and all child elements, have been fully parsed, and the entire text content of this element (if any) is available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolTagHandler

public ProtocolTagHandler(net.sourceforge.guacamole.protocol.GuacamoleConfiguration config)
                   throws SAXException
Creates a new handler for a "protocol" tag having the given attributes.

Parameters:
config - The GuacamoleConfiguration to update with the data parsed from the "protocol" tag.
Throws:
SAXException - If the attributes given are not valid.
Method Detail

childElement

public TagHandler childElement(String localName,
                               Attributes attributes)
                        throws SAXException
Description copied from interface: TagHandler
Called when a child element of the current element is parsed.

Specified by:
childElement in interface TagHandler
Parameters:
localName - The local name of the child element seen.
attributes - The attributes of the child element seen.
Returns:
The TagHandler which should handle all element-level events related to the child element.
Throws:
SAXException - If the child element being parsed was not expected, or some other error prevents a proper TagHandler from being constructed for the child element.

complete

public void complete(String textContent)
              throws SAXException
Description copied from interface: TagHandler
Called when this element, and all child elements, have been fully parsed, and the entire text content of this element (if any) is available.

Specified by:
complete in interface TagHandler
Parameters:
textContent - The full text content of this element, if any.
Throws:
SAXException - If the text content received is not valid for any reason, or the child elements parsed are not correct.


Copyright © 2013. All Rights Reserved.