public class SsdpResponse extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SsdpResponse.Type |
| Constructor and Description |
|---|
SsdpResponse(SsdpResponse.Type type,
Map<String,String> headers,
byte[] body,
long expiry,
InetAddress originAddress)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
byte[] |
getBody() |
long |
getExpiry() |
Map<String,String> |
getHeaders() |
InetAddress |
getOriginAddress() |
SsdpResponse.Type |
getType() |
int |
hashCode() |
boolean |
isExpired() |
SsdpService |
toService() |
SsdpServiceAnnouncement |
toServiceAnnouncement() |
String |
toString() |
public SsdpResponse(SsdpResponse.Type type, Map<String,String> headers, byte[] body, long expiry, InetAddress originAddress)
type - the response typeheaders - the response headersbody - the response body or null if noneexpiry - the expiration or 0 if noneoriginAddress - the origin ip addresspublic SsdpResponse.Type getType()
public byte[] getBody()
public InetAddress getOriginAddress()
public SsdpService toService()
public SsdpServiceAnnouncement toServiceAnnouncement()
public long getExpiry()
public boolean isExpired()
Copyright © 2019. All rights reserved.