35 final HttpServletRequest httpRequest = request;
36 final HttpServletResponse httpResponse = response;
38 httpResponse.setContentType(
"application/json");
39 PrintWriter out = httpResponse.getWriter();
41 String urlPath = httpRequest.getPathInfo();
42 String oxId = urlPath.substring(urlPath.lastIndexOf(
"/") + 1, urlPath.length());
46 JSONArray jsonArray =
new JSONArray();
48 for (String redirectUri : sectorIdentifier.getRedirectUris()) {
49 jsonArray.put(redirectUri);
52 out.println(jsonArray.toString(4).replace(
"\\/",
"/"));
53 }
catch (JSONException e) {
54 log.error(e.getMessage(), e);
55 }
catch (Exception e) {
56 log.error(e.getMessage(), e);
Logger log
Definition: SectorIdentifier.java:28
SectorIdentifierService sectorIdentifierService
Definition: SectorIdentifier.java:31
SectorIdentifier getSectorIdentifierById(String oxId)
Definition: SectorIdentifierService.java:34
Definition: ClientAuthorizations.java:1
Definition: SectorIdentifier.java:17