public abstract class AsyncServletUpnpStream extends ServletUpnpStream implements javax.servlet.AsyncListener
Concrete implementations must provide a connection wrapper, as this wrapper most likely has to access proprietary APIs to implement connection checking.
| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.AsyncContext |
asyncContext |
protected javax.servlet.http.HttpServletRequest |
request |
responseMessageprotocolFactory, syncProtocol| Constructor and Description |
|---|
AsyncServletUpnpStream(ProtocolFactory protocolFactory,
javax.servlet.AsyncContext asyncContext,
javax.servlet.http.HttpServletRequest request) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
complete() |
protected javax.servlet.http.HttpServletRequest |
getRequest() |
protected javax.servlet.http.HttpServletResponse |
getResponse() |
void |
onComplete(javax.servlet.AsyncEvent event) |
void |
onError(javax.servlet.AsyncEvent event) |
void |
onStartAsync(javax.servlet.AsyncEvent event) |
void |
onTimeout(javax.servlet.AsyncEvent event) |
String |
toString() |
createConnection, readRequestMessage, run, writeResponseMessagegetProtocolFactory, process, responseException, responseSentprotected final javax.servlet.AsyncContext asyncContext
protected final javax.servlet.http.HttpServletRequest request
public AsyncServletUpnpStream(ProtocolFactory protocolFactory, javax.servlet.AsyncContext asyncContext, javax.servlet.http.HttpServletRequest request)
protected javax.servlet.http.HttpServletRequest getRequest()
getRequest in class ServletUpnpStreamprotected javax.servlet.http.HttpServletResponse getResponse()
getResponse in class ServletUpnpStreamprotected void complete()
complete in class ServletUpnpStreampublic void onStartAsync(javax.servlet.AsyncEvent event)
throws IOException
onStartAsync in interface javax.servlet.AsyncListenerIOExceptionpublic void onComplete(javax.servlet.AsyncEvent event)
throws IOException
onComplete in interface javax.servlet.AsyncListenerIOExceptionpublic void onTimeout(javax.servlet.AsyncEvent event)
throws IOException
onTimeout in interface javax.servlet.AsyncListenerIOExceptionpublic void onError(javax.servlet.AsyncEvent event)
throws IOException
onError in interface javax.servlet.AsyncListenerIOExceptionpublic String toString()
toString in class UpnpStreamCopyright © 2023 jUPnP.org. All rights reserved.