Smack/smack-experimental/src/main/java/org/jivesoftware/smackx/jingle_filetransfer/component/JingleOutgoingFileRequest.java

58 lines
1.7 KiB
Java
Raw Normal View History

2017-07-27 17:35:16 +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-08-14 13:58:48 +02:00
package org.jivesoftware.smackx.jingle_filetransfer.component;
2017-07-22 01:01:50 +02:00
2017-07-25 20:25:36 +02:00
import org.jivesoftware.smackx.bytestreams.BytestreamSession;
2017-07-28 14:02:32 +02:00
import org.jivesoftware.smackx.jingle.element.JingleContentDescriptionInfoElement;
import org.jivesoftware.smackx.jingle.element.JingleElement;
2017-08-14 22:15:23 +02:00
import org.jivesoftware.smackx.jingle_filetransfer.controller.OutgoingFileRequestController;
2017-07-25 20:25:36 +02:00
2017-07-22 01:01:50 +02:00
/**
2017-07-27 15:18:18 +02:00
* Created by vanitas on 27.07.17.
2017-07-22 01:01:50 +02:00
*/
2017-08-13 19:44:02 +02:00
public class JingleOutgoingFileRequest extends AbstractJingleFileRequest<JingleFileTransferFile.RemoteFile> implements OutgoingFileRequestController {
2017-07-28 14:02:32 +02:00
2017-08-13 19:44:02 +02:00
public JingleOutgoingFileRequest(JingleFileTransferFile.RemoteFile file) {
2017-07-28 14:02:32 +02:00
super(file);
}
2017-08-13 14:38:53 +02:00
@Override
2017-08-13 19:44:02 +02:00
public JingleFileTransferFile.RemoteFile getFile() {
return (JingleFileTransferFile.RemoteFile) file;
2017-08-13 14:38:53 +02:00
}
2017-07-26 16:17:33 +02:00
@Override
2017-07-28 14:02:32 +02:00
public JingleElement handleDescriptionInfo(JingleContentDescriptionInfoElement info) {
2017-07-26 16:17:33 +02:00
return null;
}
2017-07-27 16:43:09 +02:00
@Override
public boolean isOffer() {
return false;
}
@Override
public boolean isRequest() {
return true;
}
2017-07-25 20:25:36 +02:00
@Override
2017-07-30 15:40:04 +02:00
public void onBytestreamReady(BytestreamSession bytestreamSession) {
2017-07-25 20:25:36 +02:00
}
2017-07-22 01:01:50 +02:00
}