_type = requestTypeIndex;
}
} else if ((parameters.hasParameter(RequestParameter.ParameterVersion)) && (parameters.hasParameter(RequestParameter.ParameterExportXML))) {
//?version=x && ?xml
try {
RequestParameterVersion version = RequestParameter.versionParameter(parameters.get(RequestParameter.ParameterVersion));
if (version.versionSingle()) {
_type = requestTypeExportXML;
}
} catch (org.dbwiki.exception.WikiException wikiException) {
// silently ignore wiki exceptions
// FIXME #requestparsing: is this really the behaviour we want?
}
} else if ((parameters.hasParameter(RequestParameter.ParameterVersion)) && (parameters.hasParameter(RequestParameter.ParameterExportJSON))) {
//?version=x && ?json
try {
RequestParameterVersion version = RequestParameter.versionParameter(parameters.get(RequestParameter.ParameterVersion));
if (version.versionSingle()) {
_type = requestTypeExportJSON;
}
} catch (org.dbwiki.exception.WikiException wikiException) {
// silently ignore wiki exceptions
// FIXME #requestparsing: is this really the behaviour we want?