*/
private void parseKeyValue() throws XmlBlasterException {
int qIndex = cmd.indexOf("?");
if (qIndex < 1 || cmd.length() <= (qIndex+1)) {
log.warning("parseKeyValue(): Invalid command '" + cmd + "', can't find '?'");
throw new XmlBlasterException(this.glob, ErrorCode.USER_ILLEGALARGUMENT, ME + ".parseKeyValue", "Invalid command '" + cmd + "', can't find '?'");
}
// "addRemoteProperty=arg1&arg2"
String propString = cmd.substring(qIndex+1);
int equalsIndex = propString.indexOf("=");
if (equalsIndex < 1 || propString.length() <= (equalsIndex+1)) {
this.key = propString;
this.args = null;
return; // a getXy()
//log.warn(ME, "parseKeyValue(): Invalid command '" + cmd + "', can't find '='");
//throw new XmlBlasterException(this.glob, ErrorCode.USER_ILLEGALARGUMENT, ME + ".parseKeyValue", "Invalid command '" + cmd + "', can't find '='");
}
this.key = propString.substring(0, equalsIndex);
// "arg1&arg2"
this.argsString = propString.substring(equalsIndex+1).trim();
this.args = StringPairTokenizer.parseLine(argsString, '&');
if (this.args.length < 1) {
log.warning("parseKeyValue(): Invalid command '" + cmd + "', can't find value behind '='");
throw new XmlBlasterException(this.glob, ErrorCode.USER_ILLEGALARGUMENT, ME + ".parseKeyValue", "Invalid command '" + cmd + "', can't find value behind '='");
}
/*
StringTokenizer tokenizer = new StringTokenizer(propString.trim(), PROP_SEPARATOR); // "&"
boolean keyAlreadyAssigned = false;