mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
Actually read parameter contents (oops).
This commit is contained in:
@@ -36,6 +36,11 @@ public class ParamTagHandler implements TagHandler {
|
||||
*/
|
||||
private GuacamoleConfiguration config;
|
||||
|
||||
/**
|
||||
* The name of the parameter
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* Creates a new handler for an "param" tag having the given
|
||||
* attributes.
|
||||
@@ -47,6 +52,10 @@ public class ParamTagHandler implements TagHandler {
|
||||
*/
|
||||
public ParamTagHandler(GuacamoleConfiguration config,
|
||||
Attributes attributes) throws SAXException {
|
||||
|
||||
this.config = config;
|
||||
this.name = attributes.getValue("name");
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -56,7 +65,7 @@ public class ParamTagHandler implements TagHandler {
|
||||
|
||||
@Override
|
||||
public void complete(String textContent) throws SAXException {
|
||||
// Do nothing
|
||||
config.setParameter(name, textContent);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user