to.etc.domui.ajax
Class AjaxRequestContext
java.lang.Object
to.etc.domui.ajax.AjaxRequestContext
- All Implemented Interfaces:
- IRpcCallContext
public class AjaxRequestContext
- extends java.lang.Object
- implements IRpcCallContext
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AjaxRequestContext
public AjaxRequestContext(AjaxRequestHandler ajaxRequestHandler,
RpcCallHandler ch,
RequestContextImpl ctx)
getRctx
public RequestContextImpl getRctx()
createHandlerClass
public <T> T createHandlerClass(java.lang.Class<T> clz)
throws java.lang.Exception
- Specified by:
createHandlerClass
in interface IRpcCallContext
- Throws:
java.lang.Exception
hasRight
public boolean hasRight(java.lang.String role)
- Specified by:
hasRight
in interface IRpcCallContext
allocateOutput
public <T> T allocateOutput(java.lang.Class<T> oc,
ResponseFormat rf)
throws java.lang.Exception
- Specified by:
allocateOutput
in interface IRpcCallContext
- Throws:
java.lang.Exception
outputCompleted
public void outputCompleted(java.lang.Object output)
throws java.lang.Exception
- Specified by:
outputCompleted
in interface IRpcCallContext
- Throws:
java.lang.Exception
getResponseWriter
public java.io.Writer getResponseWriter(ResponseFormat format,
java.lang.String callname)
throws java.lang.Exception
- Specified by:
getResponseWriter
in interface IRpcCallContext
- Throws:
java.lang.Exception