Package nl.goodbytes.xmpp.xep0363
Class SlotManager
java.lang.Object
nl.goodbytes.xmpp.xep0363.SlotManager
A manager of HTTP slots.
- Author:
- Guus der Kinderen, guus@goodbytes.nl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic URLstatic SlotManagerstatic URLvoidinitialize(SlotProvider slotProvider) voidsetMaxFileSize(Long maxFileSize) voidsetWebContextRoot(String webContextRoot) voidsetWebHost(String webHost) voidsetWebPort(int webPort) voidsetWebProtocol(String webProtocol)
-
Field Details
-
DEFAULT_MAX_FILE_SIZE
public static final long DEFAULT_MAX_FILE_SIZE- See Also:
-
-
Constructor Details
-
SlotManager
public SlotManager()
-
-
Method Details
-
getInstance
-
initialize
-
getMaxFileSize
-
setMaxFileSize
-
getSlot
public Slot getSlot(org.xmpp.packet.JID from, String fileName, long fileSize) throws TooLargeException - Throws:
TooLargeException
-
consumeSlotForPut
-
getPutUrl
-
getGetUrl
-
setWebProtocol
-
getWebProtocol
-
setWebHost
-
getWebHost
-
setWebPort
public void setWebPort(int webPort) -
getWebPort
-
getWebContextRoot
-
setWebContextRoot
-