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, toString
protected 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.AsyncListener
IOException
public void onComplete(javax.servlet.AsyncEvent event) throws IOException
onComplete
in interface javax.servlet.AsyncListener
IOException
public void onTimeout(javax.servlet.AsyncEvent event) throws IOException
onTimeout
in interface javax.servlet.AsyncListener
IOException
public void onError(javax.servlet.AsyncEvent event) throws IOException
onError
in interface javax.servlet.AsyncListener
IOException
protected StreamRequestMessage readRequestMessage() throws IOException
IOException
protected void writeResponseMessage(StreamResponseMessage responseMessage) throws IOException
IOException
protected abstract Connection createConnection()
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.