org.teleal.cling.model.message.header
Enum UpnpHeader.Type
java.lang.Object
java.lang.Enum<UpnpHeader.Type>
org.teleal.cling.model.message.header.UpnpHeader.Type
- All Implemented Interfaces:
- Serializable, Comparable<UpnpHeader.Type>
- Enclosing class:
- UpnpHeader<T>
public static enum UpnpHeader.Type
- extends Enum<UpnpHeader.Type>
Maps a standardized UPnP header to potential header subtypes.
USN
public static final UpnpHeader.Type USN
NT
public static final UpnpHeader.Type NT
NTS
public static final UpnpHeader.Type NTS
HOST
public static final UpnpHeader.Type HOST
SERVER
public static final UpnpHeader.Type SERVER
LOCATION
public static final UpnpHeader.Type LOCATION
MAX_AGE
public static final UpnpHeader.Type MAX_AGE
USER_AGENT
public static final UpnpHeader.Type USER_AGENT
CONTENT_TYPE
public static final UpnpHeader.Type CONTENT_TYPE
MAN
public static final UpnpHeader.Type MAN
MX
public static final UpnpHeader.Type MX
ST
public static final UpnpHeader.Type ST
EXT
public static final UpnpHeader.Type EXT
SOAPACTION
public static final UpnpHeader.Type SOAPACTION
TIMEOUT
public static final UpnpHeader.Type TIMEOUT
CALLBACK
public static final UpnpHeader.Type CALLBACK
SID
public static final UpnpHeader.Type SID
SEQ
public static final UpnpHeader.Type SEQ
EXT_IFACE_MAC
public static final UpnpHeader.Type EXT_IFACE_MAC
values
public static UpnpHeader.Type[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (UpnpHeader.Type c : UpnpHeader.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static UpnpHeader.Type valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getHttpName
public String getHttpName()
getHeaderTypes
public Class<? extends UpnpHeader>[] getHeaderTypes()
isValidHeaderType
public boolean isValidHeaderType(Class<? extends UpnpHeader> clazz)
getByHttpName
public static UpnpHeader.Type getByHttpName(String httpName)
- Parameters:
httpName
- A case-insensitive HTTP header name.
Copyright © 2011 Teleal GmbH, Switzerland. All Rights Reserved.