org.fourthline.cling.transport.impl.apache
Class HttpServerConnectionUpnpStream

java.lang.Object
  extended by org.fourthline.cling.transport.spi.UpnpStream
      extended by org.fourthline.cling.transport.impl.apache.HttpServerConnectionUpnpStream
All Implemented Interfaces:
Runnable

public abstract class HttpServerConnectionUpnpStream
extends UpnpStream

Implementation for Apache HTTP Components API.

Author:
Christian Bauer

Nested Class Summary
protected  class HttpServerConnectionUpnpStream.UpnpHttpService
          A thread-safe custom service implementation that creates a UPnP message from the request, then passes it to UpnpStream#process(), finally sends the response back to the client.
 
Field Summary
protected  org.apache.http.HttpServerConnection connection
           
protected  org.apache.http.protocol.BasicHttpProcessor httpProcessor
           
protected  org.apache.http.protocol.HttpService httpService
           
protected  org.apache.http.params.HttpParams params
           
 
Fields inherited from class org.fourthline.cling.transport.spi.UpnpStream
protocolFactory, syncProtocol
 
Constructor Summary
protected HttpServerConnectionUpnpStream(ProtocolFactory protocolFactory, org.apache.http.HttpServerConnection connection, org.apache.http.params.HttpParams params)
           
 
Method Summary
protected abstract  Connection createConnection()
           
 org.apache.http.HttpServerConnection getConnection()
           
 void run()
           
 
Methods inherited from class org.fourthline.cling.transport.spi.UpnpStream
getProtocolFactory, process, responseException, responseSent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

connection

protected final org.apache.http.HttpServerConnection connection

httpProcessor

protected final org.apache.http.protocol.BasicHttpProcessor httpProcessor

httpService

protected final org.apache.http.protocol.HttpService httpService

params

protected final org.apache.http.params.HttpParams params
Constructor Detail

HttpServerConnectionUpnpStream

protected HttpServerConnectionUpnpStream(ProtocolFactory protocolFactory,
                                         org.apache.http.HttpServerConnection connection,
                                         org.apache.http.params.HttpParams params)
Method Detail

getConnection

public org.apache.http.HttpServerConnection getConnection()

run

public void run()

createConnection

protected abstract Connection createConnection()


Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.