to.etc.domui.ajax
Class AjaxRequestContext

java.lang.Object
  extended by to.etc.domui.ajax.AjaxRequestContext
All Implemented Interfaces:
IRpcCallContext

public class AjaxRequestContext
extends java.lang.Object
implements IRpcCallContext


Constructor Summary
AjaxRequestContext(AjaxRequestHandler ajaxRequestHandler, RpcCallHandler ch, RequestContextImpl ctx)
           
 
Method Summary
<T> T
allocateOutput(java.lang.Class<T> oc, ResponseFormat rf)
           
<T> T
createHandlerClass(java.lang.Class<T> clz)
           
 RequestContextImpl getRctx()
           
 java.io.Writer getResponseWriter(ResponseFormat format, java.lang.String callname)
           
 boolean hasRight(java.lang.String role)
           
 void outputCompleted(java.lang.Object output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxRequestContext

public AjaxRequestContext(AjaxRequestHandler ajaxRequestHandler,
                          RpcCallHandler ch,
                          RequestContextImpl ctx)
Method Detail

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