gluu
公開メンバ関数 | 限定公開メンバ関数 | 非公開変数類 | 静的非公開変数類 | 全メンバ一覧
org.xdi.oxauth.servlet.SectorIdentifier クラス
org.xdi.oxauth.servlet.SectorIdentifier の継承関係図
Inheritance graph
org.xdi.oxauth.servlet.SectorIdentifier 連携図
Collaboration graph

公開メンバ関数

String getServletInfo ()
 

限定公開メンバ関数

void processRequest (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
 
void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
 

非公開変数類

Logger log
 
SectorIdentifierService sectorIdentifierService
 

静的非公開変数類

static final long serialVersionUID = -1222077047492070618L
 

詳解

著者
Javier Rojas Blum
バージョン
January 15, 2016

関数詳解

◆ doGet()

void org.xdi.oxauth.servlet.SectorIdentifier.doGet ( HttpServletRequest  request,
HttpServletResponse  response 
) throws ServletException, IOException
inlineprotected

Handles the HTTP GET method.

引数
requestservlet request
responseservlet response
例外
ServletExceptionif a servlet-specific error occurs
IOExceptionif an I/O error occurs
73  {
74  processRequest(request, response);
75  }
void processRequest(HttpServletRequest request, HttpServletResponse response)
Definition: SectorIdentifier.java:33

◆ getServletInfo()

String org.xdi.oxauth.servlet.SectorIdentifier.getServletInfo ( )
inline

Returns a short description of the servlet.

戻り値
a String containing servlet description
83  {
84  return "Sector Identifier";
85  }

◆ processRequest()

void org.xdi.oxauth.servlet.SectorIdentifier.processRequest ( HttpServletRequest  request,
HttpServletResponse  response 
) throws ServletException, IOException
inlineprotected
34  {
35  final HttpServletRequest httpRequest = request;
36  final HttpServletResponse httpResponse = response;
37 
38  httpResponse.setContentType("application/json");
39  PrintWriter out = httpResponse.getWriter();
40  try {
41  String urlPath = httpRequest.getPathInfo();
42  String oxId = urlPath.substring(urlPath.lastIndexOf("/") + 1, urlPath.length());
43 
45 
46  JSONArray jsonArray = new JSONArray();
47 
48  for (String redirectUri : sectorIdentifier.getRedirectUris()) {
49  jsonArray.put(redirectUri);
50  }
51 
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);
57  } finally {
58  out.close();
59  }
60  }
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

メンバ詳解

◆ log

Logger org.xdi.oxauth.servlet.SectorIdentifier.log
private

◆ sectorIdentifierService

SectorIdentifierService org.xdi.oxauth.servlet.SectorIdentifier.sectorIdentifierService
private

◆ serialVersionUID

final long org.xdi.oxauth.servlet.SectorIdentifier.serialVersionUID = -1222077047492070618L
staticprivate

このクラス詳解は次のファイルから抽出されました: