public class ConnectionTagHandler extends Object implements TagHandler
Constructor and Description |
---|
ConnectionTagHandler(Authorization parent)
Creates a new ConnectionTagHandler that parses a Connection owned by
the given Authorization.
|
Modifier and Type | Method and Description |
---|---|
GuacamoleConfiguration |
asGuacamoleConfiguration()
Returns a GuacamoleConfiguration whose contents are populated from data
within this connection element and child elements.
|
TagHandler |
childElement(String localName)
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.
|
void |
init(Attributes attributes)
Called when the element corresponding to this TagHandler is first seen,
just after an instance is created.
|
public ConnectionTagHandler(Authorization parent)
parent
- The Authorization that will own this Connection once
parsed.public void init(Attributes attributes) throws SAXException
TagHandler
init
in interface TagHandler
attributes
- The attributes of the element seen.SAXException
- If an error prevents a the TagHandler from being
from being initialized.public TagHandler childElement(String localName) throws SAXException
TagHandler
childElement
in interface TagHandler
localName
- The local name of the child element seen.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.public void complete(String textContent) throws SAXException
TagHandler
complete
in interface TagHandler
textContent
- The full text content of this element, if any.SAXException
- If the text content received is not valid for any
reason, or the child elements parsed are not
correct.public GuacamoleConfiguration asGuacamoleConfiguration()
public String getName()
Copyright © 2017. All rights reserved.