|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ltd.getahead.dwr.util.LocalUtil
Various utilities, mostly to make up for JDK 1.4 functionallity that is not in JDK 1.3
Field Summary | |
static int |
INBOUND_INDEX_TYPE
splitInbound() returns the type info in this parameter |
static int |
INBOUND_INDEX_VALUE
splitInbound() returns the value info in this parameter |
Method Summary | |
static void |
addNoCacheHeaders(javax.servlet.http.HttpServletResponse resp)
Add headers to prevent browers and proxies from caching this reply. |
static java.lang.String |
decode(java.lang.String value)
URL decode a value. |
static java.lang.Class |
getNonPrimitiveType(java.lang.Class type)
|
static java.lang.String |
getShortClassName(java.lang.Class clazz)
Get the short class name (i.e. |
static boolean |
isEquivalent(java.lang.Class c1,
java.lang.Class c2)
True if c1 is java.lang.Boolean and c2 is boolean, etc. |
static boolean |
isServletClass(java.lang.Class paramType)
Is this class one that we auto fill, so the user can ignore? |
static java.lang.String |
replace(java.lang.String text,
java.lang.String repl,
java.lang.String with)
Replacement for String#replaceAll(String, String) in JDK 1.4+ |
static void |
setProperty(java.lang.Object object,
java.lang.String key,
java.lang.Object value)
Set a property on an object using reflection |
static java.lang.String[] |
splitInbound(java.lang.String data)
The javascript outbound marshaller prefixes the toString value with a colon and the original type information. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int INBOUND_INDEX_TYPE
public static final int INBOUND_INDEX_VALUE
Method Detail |
public static java.lang.String replace(java.lang.String text, java.lang.String repl, java.lang.String with)
text
- source textrepl
- the stuff to get rid ofwith
- the stuff to replace it with
public static boolean isEquivalent(java.lang.Class c1, java.lang.Class c2)
c1
- the first class to testc2
- the second class to test
public static java.lang.Class getNonPrimitiveType(java.lang.Class type)
type
- The class to de-primitivize
public static void addNoCacheHeaders(javax.servlet.http.HttpServletResponse resp)
resp
- The response to add headers topublic static boolean isServletClass(java.lang.Class paramType)
paramType
- The type to test
public static java.lang.String decode(java.lang.String value)
value
- The string to decode
public static void setProperty(java.lang.Object object, java.lang.String key, java.lang.Object value) throws java.lang.NoSuchMethodException, java.lang.SecurityException, java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException
object
- The object to call the setter onkey
- The name of the property to set.value
- The new value to use for the property
java.lang.NoSuchMethodException
- Passed on from reflection code
java.lang.SecurityException
- Passed on from reflection code
java.lang.IllegalAccessException
- Passed on from reflection code
java.lang.IllegalArgumentException
- Passed on from reflection code
java.lang.reflect.InvocationTargetException
- Passed on from reflection codepublic static java.lang.String[] splitInbound(java.lang.String data)
data
- The string to be split up
public static java.lang.String getShortClassName(java.lang.Class clazz)
clazz
- the class to get the short name of
|
Copyright ? 2005 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |