Groovy Documentation

org.grails.plugin.resource.util
[Groovy] Class DispositionsUtils

java.lang.Object
  org.grails.plugin.resource.util.DispositionsUtils

class DispositionsUtils

Utility class with static methods for manipulating dispositions on Requests.

Authors:
Peter N. Steinmetz Date: 3/18/13 Time: 4:41 PM


Property Summary
static java.lang.Object DEFAULT_DISPOSITION_LIST

static java.lang.Object DISPOSITION_DEFER

static java.lang.Object DISPOSITION_HEAD

static java.lang.Object REQ_ATTR_DISPOSITIONS_DONE

static java.lang.Object REQ_ATTR_DISPOSITIONS_REMAINING

 
Constructor Summary
DispositionsUtils()

 
Method Summary
static void addDispositionToRequest(java.lang.Object request, java.lang.String disposition, java.lang.String reason)

Add a disposition to the request's set of them.

static void doneDispositionResources(java.lang.Object request, java.lang.String disposition)

Move a disposition from the list to be performed for a request to the list of those which are done.

static java.util.Set getRequestDispositionsRemaining(java.lang.Object request)

Get the set of dispositions required by resources in the current request, which have not yet been rendered.

static boolean haveAlreadyDoneDispositionResources(java.lang.Object request, java.lang.String disposition)

Check if disposition's resources have already been rendered for a request.

static void removeDispositionFromRequest(java.lang.Object request, java.lang.String disposition)

Remove a disposition from the current request's set.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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()
 

Property Detail

DEFAULT_DISPOSITION_LIST

static java.lang.Object DEFAULT_DISPOSITION_LIST


DISPOSITION_DEFER

static java.lang.Object DISPOSITION_DEFER


DISPOSITION_HEAD

static java.lang.Object DISPOSITION_HEAD


REQ_ATTR_DISPOSITIONS_DONE

static java.lang.Object REQ_ATTR_DISPOSITIONS_DONE


REQ_ATTR_DISPOSITIONS_REMAINING

static java.lang.Object REQ_ATTR_DISPOSITIONS_REMAINING


 
Constructor Detail

DispositionsUtils

DispositionsUtils()


 
Method Detail

addDispositionToRequest

static void addDispositionToRequest(java.lang.Object request, java.lang.String disposition, java.lang.String reason)
Add a disposition to the request's set of them.
throws:
IllegalArgumentException if disposition has already been rendered
Parameters:
to - add disposition to
disposition - to add
reason - disposition is being added


doneDispositionResources

static void doneDispositionResources(java.lang.Object request, java.lang.String disposition)
Move a disposition from the list to be performed for a request to the list of those which are done.
Parameters:
request - with disposition to move
disposition - to move


getRequestDispositionsRemaining

static java.util.Set getRequestDispositionsRemaining(java.lang.Object request)
Get the set of dispositions required by resources in the current request, which have not yet been rendered.
Parameters:
request - to retrieve dispositions from


haveAlreadyDoneDispositionResources

static boolean haveAlreadyDoneDispositionResources(java.lang.Object request, java.lang.String disposition)
Check if disposition's resources have already been rendered for a request.
Parameters:
request
disposition
Returns:
true if already resources have been rendered, false otherwise.


removeDispositionFromRequest

static void removeDispositionFromRequest(java.lang.Object request, java.lang.String disposition)
Remove a disposition from the current request's set.
Parameters:
request - to remove disposition from
dispostion - to remove


 

Groovy Documentation