Package org.symphonyoss.s2.canon.runtime
Class AbstractRequestManager<A,P,R extends IBaseEntity>
- java.lang.Object
-
- org.symphonyoss.s2.canon.runtime.AbstractRequestManager<A,P,R>
-
- Direct Known Subclasses:
EmptyRequestManager,PayloadOnlyRequestManager,PayloadResponseRequestManager,ResponseOnlyRequestManager
public abstract class AbstractRequestManager<A,P,R extends IBaseEntity> extends Object
-
-
Constructor Summary
Constructors Constructor Description AbstractRequestManager(javax.servlet.ServletInputStream in, javax.servlet.ServletOutputStream out, A auth, org.symphonyoss.s2.fugue.core.trace.ITraceContext trace, javax.servlet.AsyncContext async, ExecutorService processExecutor, ExecutorService responseExecutor)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidfinishRequest()protected javax.servlet.AsyncContextgetAsync()protected AgetAuth()protected ModelHandlerTask<String>getProcessTask()protected ModelHandlerTask<R>getResponseTask()protected org.symphonyoss.s2.fugue.core.trace.ITraceContextgetTrace()protected abstract voidhandleRequest(String request)voidonAllDataRead()voidonDataAvailable()voidonError(Throwable t)voidonWritePossible()
-
-
-
Constructor Detail
-
AbstractRequestManager
public AbstractRequestManager(javax.servlet.ServletInputStream in, javax.servlet.ServletOutputStream out, A auth, org.symphonyoss.s2.fugue.core.trace.ITraceContext trace, javax.servlet.AsyncContext async, ExecutorService processExecutor, ExecutorService responseExecutor)
-
-
Method Detail
-
finishRequest
protected abstract void finishRequest()
-
getProcessTask
protected ModelHandlerTask<String> getProcessTask()
-
getResponseTask
protected ModelHandlerTask<R> getResponseTask()
-
getAsync
protected javax.servlet.AsyncContext getAsync()
-
handleRequest
protected abstract void handleRequest(String request) throws CanonException
- Throws:
CanonException
-
onDataAvailable
public void onDataAvailable() throws IOException- Throws:
IOException
-
onAllDataRead
public void onAllDataRead() throws IOException- Throws:
IOException
-
onWritePossible
public void onWritePossible() throws IOException- Throws:
IOException
-
onError
public void onError(Throwable t)
-
getTrace
protected org.symphonyoss.s2.fugue.core.trace.ITraceContext getTrace()
-
getAuth
protected A getAuth()
-
-