org.teleal.cling.transport.impl
Class StreamClientImpl

java.lang.Object
  extended by org.teleal.cling.transport.impl.StreamClientImpl
All Implemented Interfaces:
StreamClient

public class StreamClientImpl
extends java.lang.Object
implements StreamClient

It's hard to believe how bad the JDK has gotten in the last 15 years.


Nested Class Summary
static class StreamClientImpl.UpnpURLConnection
          The Sun genuises restrict the JDK handlers to GET/POST/etc.
 
Field Summary
protected  StreamClientConfigurationImpl configuration
           
static java.lang.String HACK_STREAM_HANDLER_SYSTEM_PROPERTY
           
 
Constructor Summary
StreamClientImpl(StreamClientConfigurationImpl configuration)
           
 
Method Summary
protected  void applyRequestBody(java.net.HttpURLConnection urlConnection, StreamRequestMessage requestMessage)
           
protected  void applyRequestProperties(java.net.HttpURLConnection urlConnection, StreamRequestMessage requestMessage)
           
protected  StreamResponseMessage createResponse(java.net.HttpURLConnection urlConnection, java.io.InputStream inputStream)
           
 StreamClientConfigurationImpl getConfiguration()
           
 void init(Router router)
           
 StreamResponseMessage sendRequest(StreamRequestMessage requestMessage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HACK_STREAM_HANDLER_SYSTEM_PROPERTY

public static final java.lang.String HACK_STREAM_HANDLER_SYSTEM_PROPERTY
See Also:
Constant Field Values

configuration

protected StreamClientConfigurationImpl configuration
Constructor Detail

StreamClientImpl

public StreamClientImpl(StreamClientConfigurationImpl configuration)
Method Detail

getConfiguration

public StreamClientConfigurationImpl getConfiguration()
Specified by:
getConfiguration in interface StreamClient

init

public void init(Router router)
          throws InitializationException
Specified by:
init in interface StreamClient
Throws:
InitializationException

sendRequest

public StreamResponseMessage sendRequest(StreamRequestMessage requestMessage)
Specified by:
sendRequest in interface StreamClient

applyRequestProperties

protected void applyRequestProperties(java.net.HttpURLConnection urlConnection,
                                      StreamRequestMessage requestMessage)

applyRequestBody

protected void applyRequestBody(java.net.HttpURLConnection urlConnection,
                                StreamRequestMessage requestMessage)
                         throws java.io.IOException
Throws:
java.io.IOException

createResponse

protected StreamResponseMessage createResponse(java.net.HttpURLConnection urlConnection,
                                               java.io.InputStream inputStream)
                                        throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.