org.fourthline.cling.transport.impl.apache

## Class HttpServerConnectionUpnpStream

- java.lang.Object
- - org.fourthline.cling.transport.spi.UpnpStream
  - - 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

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `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

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `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

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `HttpServerConnectionUpnpStream(ProtocolFactory protocolFactory, org.apache.http.HttpServerConnection connection, org.apache.http.params.HttpParams params)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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 © 2014 4th Line GmbH, Switzerland. All Rights Reserved.