<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page trimDirectiveWhitespaces="true" %> <%@ page import="org.crosswire.community.projects.ntmss.data.Document" %> <%@ page import="org.crosswire.xml.XMLBlock" %> <%@ page import="org.crosswire.webtools.annotation.*" %> <%@ page import="org.crosswire.webtools.*" %> <%! @Description(value = "Retrieve list of institution countries.", name = "institute/getcountries") public static class MyParameters extends Parameters { @Description(value = "show only values for institutions with custom institution names populated", defaultValue = "false", example = "true") public Boolean customInstNamesOnly = false; @Description(value = "show usage for this web service", defaultValue = "false", example = "true") public Boolean usage = false; @Description(value = "only show Liste catalog objects", defaultValue = "false", example = "true") public Boolean listeOnly = false; } %> <% MyParameters params = new MyParameters().loadFromRequest(request, response, false); if (params.getErrors().size() == 0 && !params.usage) { String retVal = Document.getAllCountriesXML(params.customInstNamesOnly, params.listeOnly); Serializer.output(response, out, params, XMLBlock.createXMLBlock(retVal)); return; } else params.format = "html"; Serializer.reportErrors(request, response, out, params, true); %>