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