![JAR search and dependency download from the Maven repository](/logo.png)
io.sipstack.netty.codec.sip.SipMessageEvent Maven / Gradle / Ivy
The newest version!
/**
*
*/
package io.sipstack.netty.codec.sip;
import io.netty.channel.ChannelPipeline;
import io.pkts.packet.sip.SipMessage;
/**
* Whenever a {@link SipMessage} is received it will be framed and a
* {@link SipMessageEvent} will be created and passed up through the
* {@link ChannelPipeline}. The main reason for this object is the need to
* encapsulate stream based and datagram based connections in Netty 4 (worked
* differently in Netty 3) as well as to provide a time stamp for when the
* message was received on the socket (or rather when it was framed)
*
* @author [email protected]
*/
public interface SipMessageEvent {
/**
* The {@link Connection} over which this {@link SipMessage} was received.
*
* @return
*/
Connection getConnection();
/**
* The framed {@link SipMessage}.
*
* @return
*/
SipMessage getMessage();
/**
* The arrival time of the {@link SipMessage in milliseconds.
*
* @return
*/
long getArrivalTime();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy