/**
* @see RepositoryService#getSupportedQueryLanguages(SessionInfo)
*/
public String[] getSupportedQueryLanguages(SessionInfo sessionInfo) throws RepositoryException {
OptionsMethod method = new OptionsMethod(uriResolver.getWorkspaceUri(sessionInfo.getWorkspaceName()));
try {
getClient(sessionInfo).executeMethod(method);
method.checkSuccess();
Header daslHeader = method.getResponseHeader(SearchConstants.HEADER_DASL);
CodedUrlHeader h = new CodedUrlHeader(daslHeader.getName(), daslHeader.getValue());
return h.getCodedUrls();
} catch (IOException e) {
throw new RepositoryException(e);
} catch (DavException e) {
throw ExceptionConverter.generate(e);
} finally {
method.releaseConnection();
}
}