Package jadex.extension.rs.publish
Class NanoHttpServletRequestWrapper.NanoAsyncContext
- java.lang.Object
-
- jadex.extension.rs.publish.NanoHttpServletRequestWrapper.NanoAsyncContext
-
- All Implemented Interfaces:
javax.servlet.AsyncContext
- Enclosing class:
- NanoHttpServletRequestWrapper
public static class NanoHttpServletRequestWrapper.NanoAsyncContext extends java.lang.Object implements javax.servlet.AsyncContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NanoHttpServletRequestWrapper.NanoAsyncContext.NotifyType
-
Field Summary
Fields Modifier and Type Field Description protected boolean
completed
protected java.util.List<javax.servlet.AsyncListener>
listeners
protected javax.servlet.ServletRequest
request
protected javax.servlet.ServletResponse
response
protected boolean
started
protected long
timeout
protected java.util.Timer
timer
-
Constructor Summary
Constructors Constructor Description NanoAsyncContext(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(javax.servlet.AsyncListener listener)
void
addListener(javax.servlet.AsyncListener listener, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse)
void
complete()
<T extends javax.servlet.AsyncListener>
TcreateListener(java.lang.Class<T> clazz)
void
dispatch()
void
dispatch(java.lang.String path)
void
dispatch(javax.servlet.ServletContext context, java.lang.String path)
javax.servlet.ServletRequest
getRequest()
javax.servlet.ServletResponse
getResponse()
long
getTimeout()
boolean
hasOriginalRequestAndResponse()
boolean
isStarted()
protected void
notifyListeners(NanoHttpServletRequestWrapper.NanoAsyncContext.NotifyType type)
void
setTimeout(long timeout)
void
start(java.lang.Runnable run)
-
-
-
Field Detail
-
started
protected boolean started
-
completed
protected boolean completed
-
listeners
protected java.util.List<javax.servlet.AsyncListener> listeners
-
request
protected javax.servlet.ServletRequest request
-
response
protected javax.servlet.ServletResponse response
-
timer
protected java.util.Timer timer
-
timeout
protected long timeout
-
-
Method Detail
-
start
public void start(java.lang.Runnable run)
- Specified by:
start
in interfacejavax.servlet.AsyncContext
-
setTimeout
public void setTimeout(long timeout)
- Specified by:
setTimeout
in interfacejavax.servlet.AsyncContext
-
hasOriginalRequestAndResponse
public boolean hasOriginalRequestAndResponse()
- Specified by:
hasOriginalRequestAndResponse
in interfacejavax.servlet.AsyncContext
-
getTimeout
public long getTimeout()
- Specified by:
getTimeout
in interfacejavax.servlet.AsyncContext
-
getResponse
public javax.servlet.ServletResponse getResponse()
- Specified by:
getResponse
in interfacejavax.servlet.AsyncContext
-
getRequest
public javax.servlet.ServletRequest getRequest()
- Specified by:
getRequest
in interfacejavax.servlet.AsyncContext
-
dispatch
public void dispatch(javax.servlet.ServletContext context, java.lang.String path)
- Specified by:
dispatch
in interfacejavax.servlet.AsyncContext
-
dispatch
public void dispatch(java.lang.String path)
- Specified by:
dispatch
in interfacejavax.servlet.AsyncContext
-
dispatch
public void dispatch()
- Specified by:
dispatch
in interfacejavax.servlet.AsyncContext
-
createListener
public <T extends javax.servlet.AsyncListener> T createListener(java.lang.Class<T> clazz) throws javax.servlet.ServletException
- Specified by:
createListener
in interfacejavax.servlet.AsyncContext
- Throws:
javax.servlet.ServletException
-
complete
public void complete()
- Specified by:
complete
in interfacejavax.servlet.AsyncContext
-
addListener
public void addListener(javax.servlet.AsyncListener listener, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse)
- Specified by:
addListener
in interfacejavax.servlet.AsyncContext
-
addListener
public void addListener(javax.servlet.AsyncListener listener)
- Specified by:
addListener
in interfacejavax.servlet.AsyncContext
-
isStarted
public boolean isStarted()
-
notifyListeners
protected void notifyListeners(NanoHttpServletRequestWrapper.NanoAsyncContext.NotifyType type)
-
-