Package tigase.http.upload.logic
Class DefaultLogic
java.lang.Object
tigase.http.upload.logic.DefaultLogic
- All Implemented Interfaces:
Logic
@Bean(name="logic",
parent=FileUploadComponent.class,
active=true,
exportable=true)
public class DefaultLogic
extends Object
implements Logic
Created by andrzej on 07.08.2016.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgenerateURI(UriFormat format, tigase.xmpp.jid.JID requester, String slotId, String filename) getDownloadURI(tigase.xmpp.jid.JID requester, String slotId, String filename) longgetUploadURI(tigase.xmpp.jid.JID requester, String slotId, String filename) voidremoveExpired(Duration expirationTime, int limit) requestSlot(tigase.xmpp.jid.JID requester, String filename, long filesize, String contentType) voidsetDownloadUriFormat(String format) voidsetUploadUriFormat(String format)
-
Constructor Details
-
DefaultLogic
public DefaultLogic()
-
-
Method Details
-
getUploadUriFormat
-
setUploadUriFormat
-
getDownloadUriFormat
-
setDownloadUriFormat
-
getMaxFileSize
public long getMaxFileSize()- Specified by:
getMaxFileSizein interfaceLogic
-
requestSlot
public String requestSlot(tigase.xmpp.jid.JID requester, String filename, long filesize, String contentType) throws tigase.component.exceptions.ComponentException - Specified by:
requestSlotin interfaceLogic- Throws:
tigase.component.exceptions.ComponentException
-
getUploadURI
- Specified by:
getUploadURIin interfaceLogic
-
getDownloadURI
- Specified by:
getDownloadURIin interfaceLogic
-
generateSlotId
- Specified by:
generateSlotIdin interfaceLogic
-
getUploadURIFormat
- Specified by:
getUploadURIFormatin interfaceLogic
-
getDownloadURIFormat
- Specified by:
getDownloadURIFormatin interfaceLogic
-
removeExpired
- Specified by:
removeExpiredin interfaceLogic
-
generateURI
-