org.fourthline.cling.model.message
Class IncomingDatagramMessage<O extends UpnpOperation>
java.lang.Object
org.fourthline.cling.model.message.UpnpMessage<O>
org.fourthline.cling.model.message.IncomingDatagramMessage<O>
- Direct Known Subclasses:
- IncomingNotificationRequest, IncomingSearchRequest, IncomingSearchResponse
public class IncomingDatagramMessage<O extends UpnpOperation>
- extends UpnpMessage<O>
A received UDP datagram request or response message, with source address and port.
Additionally, holds a local address that is reachable from the source
address (in the same subnet):
- When an M-SEARCH is received, we send a LOCATION header back with a
reachable (by the remote control point) local address.
- When a NOTIFY discovery message (can be a search response) is received we
need to memorize on which local address it was received, so that the we can
later give the remote device a reachable (from its point of view) local
GENA callback address.
- Author:
- Christian Bauer
Methods inherited from class org.fourthline.cling.model.message.UpnpMessage |
getBody, getBodyBytes, getBodyString, getBodyType, getContentTypeCharset, getContentTypeHeader, getHeaders, getOperation, getUdaMajorVersion, getUdaMinorVersion, hasBody, hasHostHeader, isBodyNonEmptyString, isContentTypeMissingOrText, isContentTypeText, isContentTypeTextUDA, setBody, setBody, setBodyCharacters, setBodyType, setHeaders, setUdaMajorVersion, setUdaMinorVersion, toString |
IncomingDatagramMessage
public IncomingDatagramMessage(O operation,
InetAddress sourceAddress,
int sourcePort,
InetAddress localAddress)
IncomingDatagramMessage
protected IncomingDatagramMessage(IncomingDatagramMessage<O> source)
getSourceAddress
public InetAddress getSourceAddress()
getSourcePort
public int getSourcePort()
getLocalAddress
public InetAddress getLocalAddress()
Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.