gluu
公開メンバ関数 | 公開変数類 | 非公開メンバ関数 | 全メンバ一覧
列挙 org.gluu.credmanager.plugins.authnmethod.rs.status.sms.FinishCode 詳解
org.gluu.credmanager.plugins.authnmethod.rs.status.sms.FinishCode 連携図
Collaboration graph

公開メンバ関数

Response getResponse (VerifiedMobile phone)
 

公開変数類

 MISSING_PARAMS
 
 NO_MATCH
 
 EXPIRED
 
 FAILED
 

非公開メンバ関数

String getEntity (VerifiedMobile phone)
 

詳解

著者
jgomer

関数詳解

◆ getEntity()

String org.gluu.credmanager.plugins.authnmethod.rs.status.sms.FinishCode.getEntity ( VerifiedMobile  phone)
inlineprivate
29  {
30 
31  Map<String, Object> map = new LinkedHashMap<>(); //Ensure data can be received in the same order as here
32  map.put("code", toString());
33  if (phone != null) {
34  map.put("data", phone);
35  }
36  return Utils.jsonFromObject(map);
37 
38  }

◆ getResponse()

Response org.gluu.credmanager.plugins.authnmethod.rs.status.sms.FinishCode.getResponse ( VerifiedMobile  phone)
inline
40  {
41 
42  Response.Status httpStatus;
43  switch (this) {
44  case MISSING_PARAMS:
45  httpStatus = BAD_REQUEST;
46  break;
47  case FAILED:
48  httpStatus = INTERNAL_SERVER_ERROR;
49  break;
50  default:
51  httpStatus = OK;
52  }
53  return Response.status(httpStatus).entity(getEntity(phone)).build();
54 
55  }
String getEntity(VerifiedMobile phone)
Definition: FinishCode.java:29

メンバ詳解

◆ EXPIRED

org.gluu.credmanager.plugins.authnmethod.rs.status.sms.FinishCode.EXPIRED

◆ FAILED

org.gluu.credmanager.plugins.authnmethod.rs.status.sms.FinishCode.FAILED

◆ MISSING_PARAMS

org.gluu.credmanager.plugins.authnmethod.rs.status.sms.FinishCode.MISSING_PARAMS

◆ NO_MATCH

org.gluu.credmanager.plugins.authnmethod.rs.status.sms.FinishCode.NO_MATCH

次のファイルからこの列挙についての詳解を抽出しました: