org.teleal.cling.model.message.header
Class HostHeader

java.lang.Object
  extended by org.teleal.cling.model.message.header.UpnpHeader<HostPort>
      extended by org.teleal.cling.model.message.header.HostHeader

public class HostHeader
extends UpnpHeader<HostPort>

Author:
Christian Bauer

Nested Class Summary
 
Nested classes/interfaces inherited from class org.teleal.cling.model.message.header.UpnpHeader
UpnpHeader.Type
 
Constructor Summary
HostHeader()
           
HostHeader(int port)
           
HostHeader(String host, int port)
           
 
Method Summary
 String getString()
           
 void setString(String s)
           
 
Methods inherited from class org.teleal.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

HostHeader

public HostHeader()

HostHeader

public HostHeader(int port)

HostHeader

public HostHeader(String host,
                  int port)
Method Detail

setString

public void setString(String s)
               throws InvalidHeaderException
Specified by:
setString in class UpnpHeader<HostPort>
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<HostPort>
Returns:
A string representing this header's value.


Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.