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

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

public class UserMappingTagHandler
extends Object
implements TagHandler

TagHandler for the "user-mapping" element.

Author:
Mike Jumper

Constructor Summary
UserMappingTagHandler()
           
 
Method Summary
 UserMapping asUserMapping()
          Returns a user mapping containing all authorizations and configurations parsed so far.
 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

UserMappingTagHandler

public UserMappingTagHandler()
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.

asUserMapping

public UserMapping asUserMapping()
Returns a user mapping containing all authorizations and configurations parsed so far. This user mapping will be backed by the data being parsed, thus any additional authorizations or configurations will be available in the object returned by this function even after this function has returned, once the data corresponding to those authorizations or configurations has been parsed.

Returns:
A user mapping containing all authorizations and configurations parsed so far.


Copyright © 2013. All Rights Reserved.