org.yestech.rpx.objectmodel
Class RPXUtil
java.lang.Object
org.yestech.rpx.objectmodel.RPXUtil
public final class RPXUtil
- extends Object
- Author:
- A.J. Wright
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RPXUtil
public RPXUtil()
fromRPXDateString
public static org.joda.time.DateTime fromRPXDateString(String string)
toRPXDateString
public static String toRPXDateString(org.joda.time.DateTime dt)
jsonString
public static String jsonString(org.json.JSONObject jo,
String property)
jsonArray
public static org.json.JSONArray jsonArray(org.json.JSONObject jo,
String property)
jsonObject
public static org.json.JSONObject jsonObject(org.json.JSONObject jo,
String property)
jsonInt
public static int jsonInt(org.json.JSONObject jo,
String property)
jsonObject
public static org.json.JSONObject jsonObject(org.json.JSONArray array,
int index)
jsonString
public static String jsonString(org.json.JSONArray array,
int index)
uriEncode
public static String uriEncode(String uri)
- Escape HTTP URI fragment per RFC2396
- Parameters:
uri - Url to encode.
- Returns:
- The encoded url.
Copyright © 2010 YES Technology Association. All Rights Reserved.