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

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

public class AuthorizeTagHandler
extends Object
implements TagHandler

TagHandler for the "authorize" element.

Author:
Mike Jumper

Constructor Summary
AuthorizeTagHandler(Attributes attributes)
          Creates a new handler for an "authorize" tag having the given attributes.
 
Method Summary
 Authorization asAuthorization()
          Returns an Authorization backed by the data of this authorize tag handler.
 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

AuthorizeTagHandler

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

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

asAuthorization

public Authorization asAuthorization()
Returns an Authorization backed by the data of this authorize tag handler. This Authorization is guaranteed to at least have the username, password, and encoding available. Any associated configurations will be added dynamically as the authorize tag is parsed.

Returns:
An Authorization backed by the data of this authorize tag handler.


Copyright © 2013. All Rights Reserved.