org.fourthline.cling.transport.impl
Class AsyncServletUpnpStream
java.lang.Object
org.fourthline.cling.transport.spi.UpnpStream
org.fourthline.cling.transport.impl.AsyncServletUpnpStream
- All Implemented Interfaces:
- Runnable, EventListener, javax.servlet.AsyncListener
public class AsyncServletUpnpStream
- extends UpnpStream
- implements javax.servlet.AsyncListener
Implementation based on Servlet 3.0 API.
- Author:
- Christian Bauer
asyncContext
protected final javax.servlet.AsyncContext asyncContext
request
protected final javax.servlet.http.HttpServletRequest request
isOpen
protected volatile boolean isOpen
responseMessage
protected StreamResponseMessage responseMessage
AsyncServletUpnpStream
public AsyncServletUpnpStream(ProtocolFactory protocolFactory,
javax.servlet.AsyncContext asyncContext,
javax.servlet.http.HttpServletRequest request)
getRequest
protected javax.servlet.http.HttpServletRequest getRequest()
getResponse
protected javax.servlet.http.HttpServletResponse getResponse()
complete
protected void complete()
run
public void run()
- Specified by:
run
in interface Runnable
onStartAsync
public void onStartAsync(javax.servlet.AsyncEvent event)
throws IOException
- Specified by:
onStartAsync
in interface javax.servlet.AsyncListener
- Throws:
IOException
onComplete
public void onComplete(javax.servlet.AsyncEvent event)
throws IOException
- Specified by:
onComplete
in interface javax.servlet.AsyncListener
- Throws:
IOException
onTimeout
public void onTimeout(javax.servlet.AsyncEvent event)
throws IOException
- Specified by:
onTimeout
in interface javax.servlet.AsyncListener
- Throws:
IOException
onError
public void onError(javax.servlet.AsyncEvent event)
throws IOException
- Specified by:
onError
in interface javax.servlet.AsyncListener
- Throws:
IOException
readRequestMessage
protected StreamRequestMessage readRequestMessage()
throws IOException
- Throws:
IOException
writeResponseMessage
protected void writeResponseMessage(StreamResponseMessage responseMessage)
throws IOException
- Throws:
IOException
Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.