gluu
静的公開メンバ関数 | 非公開メンバ関数 | 全メンバ一覧
org.xdi.oxauth.client.QueryStringDecoder クラス
org.xdi.oxauth.client.QueryStringDecoder 連携図
Collaboration graph

静的公開メンバ関数

static Map< String, String > decode (String queryString)
 

非公開メンバ関数

 QueryStringDecoder ()
 

詳解

Provides functionality to parse query strings.

著者
Javier Rojas Blum Date: 09.29.2011

構築子と解体子

◆ QueryStringDecoder()

org.xdi.oxauth.client.QueryStringDecoder.QueryStringDecoder ( )
inlineprivate

Avoid instance creation

24  {
25  }

関数詳解

◆ decode()

static Map<String, String> org.xdi.oxauth.client.QueryStringDecoder.decode ( String  queryString)
inlinestatic

Decodes a query string and returns a map with the parsed query string parameters as keys and its values.

引数
queryStringThe query string.
戻り値
A map with the parsed query string parameters and its values.
34  {
35  Map<String, String> map = new HashMap<String, String>();
36 
37  if (queryString != null) {
38  String[] params = queryString.split("&");
39  for (String param : params) {
40  String[] nameValue = param.split("=");
41  String name = nameValue.length > 0 ? nameValue[0] : "";
42  String value = nameValue.length > 1 ? nameValue[1] : "";
43  if (StringUtils.isNotBlank(name)) {
44  map.put(name, value);
45  }
46  }
47  }
48 
49  return map;
50  }

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