Groovy Documentation

org.linkedin.glu.groovy.utils.rest
[Groovy] Class GluGroovyRestUtils

java.lang.Object
  org.linkedin.glu.groovy.utils.rest.GluGroovyRestUtils

class GluGroovyRestUtils

Authors:
yan@pongasoft.com


Field Summary
static java.lang.String MODULE

static Logger log

 
Method Summary
static RestException fromJSON(java.lang.Object jsonRepresentation)

From a json representation (as built by {@link #toJSON(Throwable)) builds a rest exception

static java.lang.Throwable rebuildException(RestException restException)

This method will try to rebuild the full stack trace based on the rest exception recursively.

static java.lang.Object toJSON(java.lang.Throwable th)

'Serializes' the throwable into a json representation in order to be able to rebuild it later.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

MODULE

public static final java.lang.String MODULE


log

public static final Logger log


 
Method Detail

fromJSON

static RestException fromJSON(java.lang.Object jsonRepresentation)
From a json representation (as built by {
link:
#toJSON(Throwable)) builds a rest exception


rebuildException

static java.lang.Throwable rebuildException(RestException restException)
This method will try to rebuild the full stack trace based on the rest exception recursively. Handles the case when the client does not know about an exception (or it simply cannot be created).


toJSON

static java.lang.Object toJSON(java.lang.Throwable th)
'Serializes' the throwable into a json representation in order to be able to rebuild it later.


 

Groovy Documentation