org.duelengine.duel.rs
Class DuelController

java.lang.Object
  extended by org.duelengine.duel.rs.DuelController

public abstract class DuelController
extends Object

Simple MVC-style controller for using DUEL views in JAX-RS


Constructor Summary
DuelController()
           
 
Method Summary
protected  javax.ws.rs.core.StreamingOutput error(Exception ex)
          Renders an error message to the response
protected abstract  DuelContext getViewContext()
           
protected  ViewResult view(Class<? extends DuelView> view)
          Builds a view result
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DuelController

public DuelController()
Method Detail

getViewContext

protected abstract DuelContext getViewContext()

view

protected ViewResult view(Class<? extends DuelView> view)
Builds a view result


error

protected javax.ws.rs.core.StreamingOutput error(Exception ex)
Renders an error message to the response



Copyright © 2011. All Rights Reserved.