Smack/smack-extensions/src/main/java/org/jivesoftware/smackx/jingle/JingleTransportHandler.java

37 lines
1.1 KiB
Java
Raw Normal View History

2017-06-11 02:52:34 +02:00
/**
*
* Copyright © 2017 Paul Schaub
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
2017-06-10 15:09:30 +02:00
package org.jivesoftware.smackx.jingle;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smackx.jingle.element.JingleContentTransport;
/**
2017-06-11 02:52:34 +02:00
* Handler for JingleTransports.
2017-06-10 15:09:30 +02:00
*/
2017-06-12 14:44:00 +02:00
public interface JingleTransportHandler<D extends JingleContentTransport> extends JingleTransportInfoListener {
2017-06-14 17:56:46 +02:00
void prepareSession();
2017-06-13 21:59:40 +02:00
void establishOutgoingSession(JingleTransportEstablishedCallback callback);
2017-06-10 15:09:30 +02:00
2017-06-13 21:59:40 +02:00
void establishIncomingSession(JingleTransportEstablishedCallback callback);
2017-06-10 15:09:30 +02:00
XMPPConnection getConnection();
2017-06-16 20:24:01 +02:00
String getNamespace();
2017-06-10 15:09:30 +02:00
}