public abstract class AsyncServletUpnpStream extends UpnpStream 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 |
protected StreamResponseMessage |
responseMessage |
protocolFactory, 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 abstract Connection |
createConnection() |
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) |
protected StreamRequestMessage |
readRequestMessage() |
void |
run() |
protected void |
writeResponseMessage(StreamResponseMessage responseMessage) |
getProtocolFactory, process, responseException, responseSent, toStringprotected final javax.servlet.AsyncContext asyncContext
protected final javax.servlet.http.HttpServletRequest request
protected StreamResponseMessage responseMessage
public AsyncServletUpnpStream(ProtocolFactory protocolFactory, javax.servlet.AsyncContext asyncContext, javax.servlet.http.HttpServletRequest request)
protected javax.servlet.http.HttpServletRequest getRequest()
protected javax.servlet.http.HttpServletResponse getResponse()
protected void complete()
public 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.AsyncListenerIOExceptionprotected StreamRequestMessage readRequestMessage() throws IOException
IOExceptionprotected void writeResponseMessage(StreamResponseMessage responseMessage) throws IOException
IOExceptionprotected abstract Connection createConnection()
Copyright © 2015 4th Line GmbH, Switzerland. All rights reserved.