Package org.dellroad.msrp
Interface SessionListener
-
public interface SessionListenerCallback interface for MSRPSessions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsessionClosed(Session session, Exception cause)Notification that aSessionhas been closed or failed due to an error.voidsessionReceivedMessage(Session session, List<MsrpUri> fromPath, String messageId, byte[] content, String contentType, SortedSet<Header> headers, boolean successReport, boolean failureReport)Notification that an MSRP message has been received in a session.
-
-
-
Method Detail
-
sessionClosed
void sessionClosed(Session session, Exception cause)
Notification that aSessionhas been closed or failed due to an error.- Parameters:
session- the session that closedcause- the error that occurred, or null if the session was closed manually by the application
-
sessionReceivedMessage
void sessionReceivedMessage(Session session, List<MsrpUri> fromPath, String messageId, byte[] content, String contentType, SortedSet<Header> headers, boolean successReport, boolean failureReport)
Notification that an MSRP message has been received in a session.Note that this method is responsible for (eventually) triggering a success or failure report depending on
successReportand/orfailureReport.- Parameters:
session- the session on which the message was receivedfromPath- the path that the message took to get heremessageId- sender's unique ID for this messagecontent- message content, or null if message contained no contentcontentType- message content type, or null if message contained no contentheaders- other headers (including any MIME headers) sorted by namesuccessReport- whether a success report is requested by the senderfailureReport- whether a failure report is requested by the sender- See Also:
Session.sendSuccessReport(),Session.sendFailureReport()
-
-