Klasse DLNAHeader<T>
java.lang.Object
org.jupnp.model.message.header.UpnpHeader<T>
org.jupnp.support.model.dlna.message.header.DLNAHeader<T>
- Bekannte direkte Unterklassen:
AvailableRangeHeader,AvailableSeekRangeHeader,BufferBytesHeader,BufferInfoHeader,ContentFeaturesHeader,EventTypeHeader,FriendlyNameHeader,GetAvailableSeekRangeHeader,GetContentFeaturesHeader,MaxPrateHeader,PeerManagerHeader,PlaySpeedHeader,PragmaHeader,RealTimeInfoHeader,SCIDHeader,ScmsFlagHeader,SupportedHeader,TimeSeekRangeHeader,TransferModeHeader,WCTHeader
Transforms known and standardized DLNA/HTTP headers from/to string representation.
The newInstance(org.jupnp.support.model.dlna.message.header.DLNAHeader.Type, String) method
attempts to instantiate the best header subtype for a given header (name) and string value.
- Autor:
- Mario Franco, Christian Bauer, Amit Kumar Mondal - Code Refactoring
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumMaps a standardized DLNA header to potential header subtypes. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic DLNAHeader<?> newInstance(DLNAHeader.Type type, String headerValue) Create a new instance of aDLNAHeadersubtype that matches the given type and value.Von Klasse geerbte Methoden org.jupnp.model.message.header.UpnpHeader
getString, getValue, newInstance, setString, setValue, toString
-
Konstruktordetails
-
DLNAHeader
public DLNAHeader()
-
-
Methodendetails
-
newInstance
Create a new instance of aDLNAHeadersubtype that matches the given type and value.This method iterates through all potential header subtype classes as declared in
DLNAHeader.Type. It creates a new instance of the subtype class and calls itsUpnpHeader.setString(String)method. If noInvalidHeaderExceptionis thrown, the subtype instance is returned.- Parameter:
type- The type (or name) of the header.headerValue- The value of the header.- Gibt zurück:
- The best matching header subtype instance, or
nullif no subtype can be found.
-