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.
  • Constructor Details

    • DefaultLogic

      public DefaultLogic()
  • Method Details

    • getUploadUriFormat

      public String getUploadUriFormat()
    • setUploadUriFormat

      public void setUploadUriFormat(String format)
    • getDownloadUriFormat

      public String getDownloadUriFormat()
    • setDownloadUriFormat

      public void setDownloadUriFormat(String format)
    • getMaxFileSize

      public long getMaxFileSize()
      Specified by:
      getMaxFileSize in interface Logic
    • requestSlot

      public String requestSlot(tigase.xmpp.jid.JID requester, String filename, long filesize, String contentType) throws tigase.component.exceptions.ComponentException
      Specified by:
      requestSlot in interface Logic
      Throws:
      tigase.component.exceptions.ComponentException
    • getUploadURI

      public String getUploadURI(tigase.xmpp.jid.JID requester, String slotId, String filename)
      Specified by:
      getUploadURI in interface Logic
    • getDownloadURI

      public String getDownloadURI(tigase.xmpp.jid.JID requester, String slotId, String filename)
      Specified by:
      getDownloadURI in interface Logic
    • generateSlotId

      public String generateSlotId()
      Specified by:
      generateSlotId in interface Logic
    • getUploadURIFormat

      public UriFormat getUploadURIFormat()
      Specified by:
      getUploadURIFormat in interface Logic
    • getDownloadURIFormat

      public UriFormat getDownloadURIFormat()
      Specified by:
      getDownloadURIFormat in interface Logic
    • removeExpired

      public void removeExpired(Duration expirationTime, int limit)
      Specified by:
      removeExpired in interface Logic
    • generateURI

      protected String generateURI(UriFormat format, tigase.xmpp.jid.JID requester, String slotId, String filename)