org.yestech.rpx.objectmodel
Class RPXUtil

java.lang.Object
  extended by org.yestech.rpx.objectmodel.RPXUtil

public final class RPXUtil
extends Object

Author:
A.J. Wright

Constructor Summary
RPXUtil()
           
 
Method Summary
static org.joda.time.DateTime fromRPXDateString(String string)
           
static org.json.JSONArray jsonArray(org.json.JSONObject jo, String property)
           
static int jsonInt(org.json.JSONObject jo, String property)
           
static org.json.JSONObject jsonObject(org.json.JSONArray array, int index)
           
static org.json.JSONObject jsonObject(org.json.JSONObject jo, String property)
           
static String jsonString(org.json.JSONArray array, int index)
           
static String jsonString(org.json.JSONObject jo, String property)
           
static String toRPXDateString(org.joda.time.DateTime dt)
           
static String uriEncode(String uri)
          Escape HTTP URI fragment per RFC2396
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RPXUtil

public RPXUtil()
Method Detail

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.