Groovy Documentation

de.dewarim.goblin
[Groovy] Class BaseController

java.lang.Object
  de.dewarim.goblin.BaseController

class BaseController

Base class for Controller classes.


Property Summary
java.lang.Object inputValidationService

java.lang.Object springSecurityService

 
Constructor Summary
BaseController()

 
Method Summary
protected Item fetchItem(PlayerCharacter pc)

protected PlayerCharacter fetchPc()

Fetch the player character specified by the "pc" parameter.

protected UserAccount fetchUser()

protected void renderException(java.lang.Exception e)

Render an exception by returning a 503 HTTP status code and the localized exception message as text content.

 
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

inputValidationService

java.lang.Object inputValidationService


springSecurityService

java.lang.Object springSecurityService


 
Constructor Detail

BaseController

BaseController()


 
Method Detail

fetchItem

protected Item fetchItem(PlayerCharacter pc)


fetchPc

protected PlayerCharacter fetchPc()
Fetch the player character specified by the "pc" parameter. Make sure that it is a pc belonging to the logged in user to prevent impersonation attacks.


fetchUser

protected UserAccount fetchUser()


renderException

protected void renderException(java.lang.Exception e)
Render an exception by returning a 503 HTTP status code and the localized exception message as text content.
Parameters:
e - the exception you want to render.


 

Groovy Documentation