public class ContentTypeHeader extends UpnpHeader<org.seamless.util.MimeType>
UpnpHeader.Type
Modifier and Type | Field and Description |
---|---|
static org.seamless.util.MimeType |
DEFAULT_CONTENT_TYPE |
static org.seamless.util.MimeType |
DEFAULT_CONTENT_TYPE_UTF8 |
Constructor and Description |
---|
ContentTypeHeader() |
ContentTypeHeader(org.seamless.util.MimeType contentType) |
ContentTypeHeader(String s) |
Modifier and Type | Method and Description |
---|---|
String |
getString() |
boolean |
isText() |
boolean |
isUDACompliantXML() |
void |
setString(String s) |
getValue, newInstance, setValue, toString
public static final org.seamless.util.MimeType DEFAULT_CONTENT_TYPE
public static final org.seamless.util.MimeType DEFAULT_CONTENT_TYPE_UTF8
public ContentTypeHeader()
public ContentTypeHeader(org.seamless.util.MimeType contentType)
public ContentTypeHeader(String s) throws InvalidHeaderException
InvalidHeaderException
public void setString(String s) throws InvalidHeaderException
setString
in class UpnpHeader<org.seamless.util.MimeType>
s
- This header's value as a string representation.InvalidHeaderException
- If the value is invalid for this UPnP header.public String getString()
getString
in class UpnpHeader<org.seamless.util.MimeType>
public boolean isUDACompliantXML()
public boolean isText()
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.