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

公開メンバ関数

Response getResponse (String key, String request)
 
Response getResponse ()
 

公開変数類

 NO_DISPLAY_NAME
 
 INVALID_MODE
 

非公開メンバ関数

String getEntity (String key, String request)
 

静的非公開変数類

static ObjectMapper MAPPER = new ObjectMapper()
 

詳解

著者
jgomer

関数詳解

◆ getEntity()

String org.gluu.credmanager.plugins.authnmethod.rs.status.otp.ComputeRequestCode.getEntity ( String  key,
String  request 
)
inlineprivate
27  {
28 
29  String json;
30  try {
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 (this.equals(SUCCESS)) {
34  map.put("key", key);
35  map.put("request", request);
36  }
37  json = MAPPER.writeValueAsString(map);
38  } catch (Exception e) {
39  json = "{}";
40  }
41  return json;
42 
43  }
static ObjectMapper MAPPER
Definition: ComputeRequestCode.java:25

◆ getResponse() [1/2]

Response org.gluu.credmanager.plugins.authnmethod.rs.status.otp.ComputeRequestCode.getResponse ( String  key,
String  request 
)
inline
45  {
46 
47  Response.Status httpStatus;
48  switch (this) {
49  case NO_DISPLAY_NAME:
50  httpStatus = BAD_REQUEST;
51  break;
52  default:
53  httpStatus = OK;
54  }
55  return Response.status(httpStatus).entity(getEntity(key, request)).build();
56 
57  }
String getEntity(String key, String request)
Definition: ComputeRequestCode.java:27

◆ getResponse() [2/2]

Response org.gluu.credmanager.plugins.authnmethod.rs.status.otp.ComputeRequestCode.getResponse ( )
inline
59  {
60  return getResponse(null, null);
61  }
Response getResponse()
Definition: ComputeRequestCode.java:59

メンバ詳解

◆ INVALID_MODE

org.gluu.credmanager.plugins.authnmethod.rs.status.otp.ComputeRequestCode.INVALID_MODE

◆ MAPPER

static ObjectMapper org.gluu.credmanager.plugins.authnmethod.rs.status.otp.ComputeRequestCode.MAPPER = new ObjectMapper()
staticprivate

◆ NO_DISPLAY_NAME

org.gluu.credmanager.plugins.authnmethod.rs.status.otp.ComputeRequestCode.NO_DISPLAY_NAME

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