Package org.jupnp.model.message.header
Klasse UpnpHeader<T>
java.lang.Object
org.jupnp.model.message.header.UpnpHeader<T>
- Bekannte direkte Unterklassen:
AVClientInfoHeader,CallbackHeader,ContentRangeHeader,ContentTypeHeader,DeviceTypeHeader,DeviceUSNHeader,EventSequenceHeader,EXTHeader,HostHeader,InterfaceMacHeader,LocationHeader,MANHeader,MaxAgeHeader,MXHeader,NTEventHeader,NTSHeader,PragmaHeader,RangeHeader,RootDeviceHeader,ServerHeader,ServiceTypeHeader,ServiceUSNHeader,SoapActionHeader,STAllHeader,SubscriptionIdHeader,TimeoutHeader,UDNHeader,UserAgentHeader,USNRootDeviceHeader
Transforms known and standardized UPnP/HTTP headers from/to string representation.
The newInstance(org.jupnp.model.message.header.UpnpHeader.Type, String) method
attempts to instantiate the best header subtype for a given header (name) and string value.
- Autor:
- Christian Bauer
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumMaps a standardized UPnP header to potential header subtypes. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract StringgetValue()static UpnpHeadernewInstance(UpnpHeader.Type type, String headerValue) Create a new instance of aUpnpHeadersubtype that matches the given type and value.abstract voidvoidtoString()
-
Konstruktordetails
-
UpnpHeader
public UpnpHeader()
-
-
Methodendetails
-
setValue
-
getValue
-
setString
- Parameter:
s- This header's value as a string representation.- Löst aus:
InvalidHeaderException- If the value is invalid for this UPnP header.
-
getString
- Gibt zurück:
- A string representing this header's value.
-
newInstance
Create a new instance of aUpnpHeadersubtype that matches the given type and value.This method iterates through all potential header subtype classes as declared in
UpnpHeader.Type. It creates a new instance of the subtype class and calls itssetString(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.
-
toString
-