org.duelengine.duel.mvc
Class ViewResult
java.lang.Object
org.duelengine.duel.mvc.ViewResult
- All Implemented Interfaces:
- javax.ws.rs.core.StreamingOutput
public class ViewResult
- extends Object
- implements javax.ws.rs.core.StreamingOutput
Simple adapter for conveniently 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 org.duelengine.duel.DuelView> viewType,
DuelMvcContext context)
data
public ViewResult data(Object data)
extras
public ViewResult extras(Map<String,?> extras)
extra
public ViewResult extra(String ident,
Object value)
getContext
public DuelMvcContext getContext()
getViewType
public Class<? extends org.duelengine.duel.DuelView> getViewType()
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 © 2013. All Rights Reserved.