org.fourthline.cling.model.message.header
Class UserAgentHeader

java.lang.Object
  extended by org.fourthline.cling.model.message.header.UpnpHeader<String>
      extended by org.fourthline.cling.model.message.header.UserAgentHeader

public class UserAgentHeader
extends UpnpHeader<String>

A simple string, not validated (everyone gets this wrong)

Author:
Christian Bauer, Michael Pujos

Nested Class Summary
 
Nested classes/interfaces inherited from class org.fourthline.cling.model.message.header.UpnpHeader
UpnpHeader.Type
 
Constructor Summary
UserAgentHeader()
           
UserAgentHeader(String s)
           
 
Method Summary
 String getString()
           
 void setString(String s)
           
 
Methods inherited from class org.fourthline.cling.model.message.header.UpnpHeader
getValue, newInstance, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserAgentHeader

public UserAgentHeader()

UserAgentHeader

public UserAgentHeader(String s)
Method Detail

setString

public void setString(String s)
               throws InvalidHeaderException
Specified by:
setString in class UpnpHeader<String>
Parameters:
s - This header's value as a string representation.
Throws:
InvalidHeaderException - If the value is invalid for this UPnP header.

getString

public String getString()
Specified by:
getString in class UpnpHeader<String>
Returns:
A string representing this header's value.


Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.