org.duelengine.duel.rs
Class ViewResult
java.lang.Object
org.duelengine.duel.rs.ViewResult
- All Implemented Interfaces:
- javax.ws.rs.core.StreamingOutput
public class ViewResult
- extends Object
- implements javax.ws.rs.core.StreamingOutput
Simple adapter for rendering DUEL views in JAX-RS
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewResult
public ViewResult(Class<? extends DuelView> view,
DuelContext context)
data
public ViewResult data(Object data)
extras
public ViewResult extras(Map<String,?> extras)
extra
public ViewResult extra(String ident,
Object value)
write
public void write(OutputStream stream)
throws IOException,
javax.ws.rs.WebApplicationException
- Specified by:
write in interface javax.ws.rs.core.StreamingOutput
- Throws:
IOException
javax.ws.rs.WebApplicationException
Copyright © 2011. All Rights Reserved.