Java Code Examples for org.fourthline.cling.model.message.header.UpnpHeader#getString()

The following examples show how to use org.fourthline.cling.model.message.header.UpnpHeader#getString() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UpnpHeaders.java    From TVRemoteIME with GNU General Public License v2.0 4 votes vote down vote up
public void add(UpnpHeader.Type type, UpnpHeader value) {
    super.add(type.getHttpName(), value.getString());
    if (parsedHeaders != null)
        addParsedValue(type, value);
}
 
Example 2
Source File: UpnpHeaders.java    From TVRemoteIME with GNU General Public License v2.0 4 votes vote down vote up
public String getFirstHeaderString(UpnpHeader.Type type) {
    UpnpHeader header = getFirstHeader(type);
    return header != null ? header.getString() : null;
}
 
Example 3
Source File: DLNAHeaders.java    From TVRemoteIME with GNU General Public License v2.0 4 votes vote down vote up
public void add(DLNAHeader.Type type, UpnpHeader value) {
    super.add(type.getHttpName(), value.getString());
    if (parsedDLNAHeaders != null)
        addParsedValue(type, value);
}
 
Example 4
Source File: UpnpHeaders.java    From DroidDLNA with GNU General Public License v3.0 4 votes vote down vote up
public void add(UpnpHeader.Type type, UpnpHeader value) {
    super.add(type.getHttpName(), value.getString());
    if (parsedHeaders != null)
        addParsedValue(type, value);
}
 
Example 5
Source File: UpnpHeaders.java    From DroidDLNA with GNU General Public License v3.0 4 votes vote down vote up
public String getFirstHeaderString(UpnpHeader.Type type) {
    UpnpHeader header = getFirstHeader(type);
    return header != null ? header.getString() : null;
}
 
Example 6
Source File: DLNAHeaders.java    From DroidDLNA with GNU General Public License v3.0 4 votes vote down vote up
public void add(DLNAHeader.Type type, UpnpHeader value) {
    super.add(type.getHttpName(), value.getString());
    if (parsedDLNAHeaders != null)
        addParsedValue(type, value);
}