public class TimeoutHeader extends UpnpHeader<Integer>
UpnpHeader.Type
Modifier and Type | Field and Description |
---|---|
static Integer |
INFINITE_VALUE |
static Pattern |
PATTERN |
Constructor and Description |
---|
TimeoutHeader()
Defaults to
UserConstants.DEFAULT_SUBSCRIPTION_DURATION_SECONDS . |
TimeoutHeader(int timeoutSeconds) |
TimeoutHeader(Integer timeoutSeconds) |
Modifier and Type | Method and Description |
---|---|
String |
getString() |
void |
setString(String s) |
getValue, newInstance, setValue, toString
public static final Integer INFINITE_VALUE
public static final Pattern PATTERN
public TimeoutHeader()
UserConstants.DEFAULT_SUBSCRIPTION_DURATION_SECONDS
.public TimeoutHeader(int timeoutSeconds)
public TimeoutHeader(Integer timeoutSeconds)
public void setString(String s) throws InvalidHeaderException
setString
in class UpnpHeader<Integer>
s
- This header's value as a string representation.InvalidHeaderException
- If the value is invalid for this UPnP header.public String getString()
getString
in class UpnpHeader<Integer>
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.