org.teleal.cling.transport.impl
Class HttpHeaderConverter
java.lang.Object
org.teleal.cling.transport.impl.HttpHeaderConverter
public class HttpHeaderConverter
- extends Object
Although we only read the "first" header value for a given header name, we write all of them.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpHeaderConverter
public HttpHeaderConverter()
convertHeaders
public static UpnpHeaders convertHeaders(HttpHeaders rawHeaders)
throws InstantiationException,
IllegalAccessException,
InvalidHeaderException
- Throws:
InstantiationException
IllegalAccessException
InvalidHeaderException
createUpnpHeader
protected static UpnpHeader createUpnpHeader(UpnpHeader.Type upnpHeaderType,
String headerValue)
throws InstantiationException,
IllegalAccessException,
InvalidHeaderException
- Throws:
InstantiationException
IllegalAccessException
InvalidHeaderException
writeHeaders
public static void writeHeaders(UpnpHeaders upnpHeaders,
HttpHeaders rawHeaders)
writeHeaders
public static void writeHeaders(UpnpHeaders upnpHeaders,
HttpURLConnection urlConnection)
containsTextContentType
public static boolean containsTextContentType(Map<UpnpHeader.Type,List<UpnpHeader>> headers)
convertHeaders
public static String convertHeaders(UpnpHeaders headers)
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.