public class ContentTypeHeader extends UpnpHeader<MimeType>
UpnpHeader.Type| Modifier and Type | Field and Description |
|---|---|
static MimeType |
DEFAULT_CONTENT_TYPE |
static MimeType |
DEFAULT_CONTENT_TYPE_UTF8 |
| Constructor and Description |
|---|
ContentTypeHeader() |
ContentTypeHeader(MimeType contentType) |
ContentTypeHeader(String s) |
| Modifier and Type | Method and Description |
|---|---|
String |
getString() |
boolean |
isText() |
boolean |
isUDACompliantXML() |
void |
setString(String s) |
getValue, newInstance, setValue, toStringpublic static final MimeType DEFAULT_CONTENT_TYPE
public static final MimeType DEFAULT_CONTENT_TYPE_UTF8
public ContentTypeHeader()
public ContentTypeHeader(MimeType contentType)
public ContentTypeHeader(String s) throws InvalidHeaderException
InvalidHeaderExceptionpublic void setString(String s) throws InvalidHeaderException
setString in class UpnpHeader<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<MimeType>public boolean isUDACompliantXML()
public boolean isText()
Copyright © 2023 jUPnP.org. All rights reserved.