mitreid-connect
静的公開変数類 | 限定公開メンバ関数 | 非公開変数類 | 静的非公開変数類 | 全メンバ一覧
org.mitre.openid.connect.view.ClientInformationResponseView クラス
org.mitre.openid.connect.view.ClientInformationResponseView の継承関係図
Inheritance graph
org.mitre.openid.connect.view.ClientInformationResponseView 連携図
Collaboration graph

静的公開変数類

static final String VIEWNAME = "clientInformationResponseView"
 

限定公開メンバ関数

void renderMergedOutputModel (Map< String, Object > model, HttpServletRequest request, HttpServletResponse response)
 

非公開変数類

Gson gson = new Gson()
 

静的非公開変数類

static final Logger logger = LoggerFactory.getLogger(ClientInformationResponseView.class)
 

詳解

Provides representation of a client's registration metadata, to be shown from the dynamic registration endpoint on the client_register and rotate_secret operations.

著者
jricher

関数詳解

◆ renderMergedOutputModel()

void org.mitre.openid.connect.view.ClientInformationResponseView.renderMergedOutputModel ( Map< String, Object >  model,
HttpServletRequest  request,
HttpServletResponse  response 
)
inlineprotected
68  {
69 
70  response.setContentType(MediaType.APPLICATION_JSON_VALUE);
71 
72  RegisteredClient c = (RegisteredClient) model.get("client");
73  //OAuth2AccessTokenEntity token = (OAuth2AccessTokenEntity) model.get("token");
74  //String uri = (String)model.get("uri"); //request.getRequestURL() + "/" + c.getClientId();
75 
76  HttpStatus code = (HttpStatus) model.get(HttpCodeView.CODE);
77  if (code == null) {
78  code = HttpStatus.OK;
79  }
80  response.setStatus(code.value());
81 
82  JsonObject o = ClientDetailsEntityJsonProcessor.serialize(c);
83 
84  try {
85  Writer out = response.getWriter();
86  gson.toJson(o, out);
87  } catch (JsonIOException e) {
88 
89  logger.error("JsonIOException in ClientInformationResponseView.java: ", e);
90 
91  } catch (IOException e) {
92 
93  logger.error("IOException in ClientInformationResponseView.java: ", e);
94 
95  }
96 
97  }
static final Logger logger
Definition: ClientInformationResponseView.java:57
Gson gson
Definition: ClientInformationResponseView.java:62

メンバ詳解

◆ gson

Gson org.mitre.openid.connect.view.ClientInformationResponseView.gson = new Gson()
private

◆ logger

final Logger org.mitre.openid.connect.view.ClientInformationResponseView.logger = LoggerFactory.getLogger(ClientInformationResponseView.class)
staticprivate

Logger for this class

◆ VIEWNAME

final String org.mitre.openid.connect.view.ClientInformationResponseView.VIEWNAME = "clientInformationResponseView"
static

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