Class FileTransferRejectedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jivesoftware.openfire.filetransfer.FileTransferRejectedException
- All Implemented Interfaces:
Serializable
Thrown by a
FileTransferEventListener when a file transfer is rejected by the Interceptor. The file
transfer is aborted and the participating parties are notified.- Author:
- Alexander Wenckus
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFileTransferRejectedException(String msg, Throwable nestedThrowable) FileTransferRejectedException(Throwable nestedThrowable) -
Method Summary
Modifier and TypeMethodDescriptionReturns the text to include in a message that will be sent to the initiator and target of the file transfer that got rejected ornullif none was defined.voidvoidvoidvoidsetRejectionMessage(String rejectionMessage) Sets the text to include in a message that will be sent to the initiator and target of the file transfer that got rejected ornullif no message will be sent to the parties of the rejected file transfer.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
FileTransferRejectedException
public FileTransferRejectedException() -
FileTransferRejectedException
-
FileTransferRejectedException
-
FileTransferRejectedException
-
-
Method Details
-
printStackTrace
public void printStackTrace()- Overrides:
printStackTracein classThrowable
-
printStackTrace
- Overrides:
printStackTracein classThrowable
-
printStackTrace
- Overrides:
printStackTracein classThrowable
-
getRejectionMessage
Returns the text to include in a message that will be sent to the initiator and target of the file transfer that got rejected ornullif none was defined. If no text was specified then no message will be sent to the parties of the rejected file transfer.- Returns:
- the text to include in a message that will be sent to the parties of the file
transfer that got rejected or
nullif none was defined.
-
setRejectionMessage
Sets the text to include in a message that will be sent to the initiator and target of the file transfer that got rejected ornullif no message will be sent to the parties of the rejected file transfer. Bt default, no message will be sent.- Parameters:
rejectionMessage- the text to include in the notification message for the rejection.
-