gluu
公開メンバ関数 | 全メンバ一覧
org.xdi.oxauth.validator.JSonValidator クラス
org.xdi.oxauth.validator.JSonValidator の継承関係図
Inheritance graph
org.xdi.oxauth.validator.JSonValidator 連携図
Collaboration graph

公開メンバ関数

void validate (FacesContext context, UIComponent component, Object value) throws ValidatorException
 

詳解

著者
Javier Rojas Blum
バージョン
August 24, 2016

関数詳解

◆ validate()

void org.xdi.oxauth.validator.JSonValidator.validate ( FacesContext  context,
UIComponent  component,
Object  value 
) throws ValidatorException
inline
29  {
30  try {
31  if (!Strings.isNullOrEmpty((String) value)) {
32  new JSONObject((String) value);
33  }
34  } catch (JSONException e) {
35  FacesMessage msg = new FacesMessage("Invalid JSON format.");
36  msg.setSeverity(FacesMessage.SEVERITY_ERROR);
37  throw new ValidatorException(msg);
38  }
39  }

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