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

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

public class ConnectionTagHandler
extends Object
implements TagHandler

TagHandler for the "connection" element.

Author:
Mike Jumper

Constructor Summary
ConnectionTagHandler(Attributes attributes)
          Creates a new handler for an "connection" tag having the given attributes.
 
Method Summary
 net.sourceforge.guacamole.protocol.GuacamoleConfiguration asGuacamoleConfiguration()
          Returns a GuacamoleConfiguration whose contents are populated from data within this connection element and child elements.
 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.
 String getName()
          Returns the name associated with this connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionTagHandler

public ConnectionTagHandler(Attributes attributes)
                     throws SAXException
Creates a new handler for an "connection" tag having the given attributes.

Parameters:
attributes - The attributes of the "connection" 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.

asGuacamoleConfiguration

public net.sourceforge.guacamole.protocol.GuacamoleConfiguration asGuacamoleConfiguration()
Returns a GuacamoleConfiguration whose contents are populated from data within this connection element and child elements. This GuacamoleConfiguration will continue to be modified as the user mapping is parsed.

Returns:
A GuacamoleConfiguration whose contents are populated from data within this connection element.

getName

public String getName()
Returns the name associated with this connection.

Returns:
The name associated with this connection.


Copyright © 2013. All Rights Reserved.