public class StunResponseEvent extends StunMessageEvent
Response
s. Apart from
the Response
itself this event also carries a reference to the
Request
that started the corresponding transaction as well as other
useful things.Modifier and Type | Field and Description |
---|---|
private Request |
request
|
private static long |
serialVersionUID
Serial version UID for this Serializable class.
|
source
Constructor and Description |
---|
StunResponseEvent(StunStack stunStack,
RawMessage rawMessage,
Response response,
Request request,
TransactionID transactionID)
Creates a new instance of this event.
|
Modifier and Type | Method and Description |
---|---|
Request |
getRequest()
|
Response |
getResponse()
Returns the
Response that has just arrived and that caused this
event. |
getLocalAddress, getRawMessage, getRemoteAddress, toString
getMessage, getSourceAddress, getStunStack, getTransactionID, setTransactionID
getSource
private static final long serialVersionUID
private final Request request
public StunResponseEvent(StunStack stunStack, RawMessage rawMessage, Response response, Request request, TransactionID transactionID)
stunStack
- the StunStack to be associated with the new
instancerawMessage
- the crude message we got off the wire.response
- the STUN Response
that we've just received.request
- the message itselftransactionID
- a reference to the exact TransactionID
instance that represents the corresponding client transaction.public Request getRequest()
Copyright © 2018. All rights reserved.