Class SignaturePadModelDelegate.SignatureSubmittedPageEvent

java.lang.Object
com.inductiveautomation.perspective.gateway.components.SignaturePadModelDelegate.SignatureSubmittedPageEvent
All Implemented Interfaces:
AutoCloseable
Enclosing class:
SignaturePadModelDelegate

public static class SignaturePadModelDelegate.SignatureSubmittedPageEvent extends Object implements AutoCloseable
This is the event object for the route to post to the page's gauva event bus, to get picked up by this delegate.
  • Constructor Details

    • SignatureSubmittedPageEvent

      public SignatureSubmittedPageEvent(String componentPath, String name, long size, String contentType, org.apache.commons.io.output.DeferredFileOutputStream deferredContent)
  • Method Details

    • claimContent

      public org.apache.commons.io.output.DeferredFileOutputStream claimContent()
      Atomically claims ownership of the deferred content. The caller becomes responsible for closing it. Returns null if the content has already been claimed.
    • close

      public void close()
      Releases the deferred content if it was never claimed by a listener. If it was claimed, the listener (via UploadedFile) is responsible for cleanup.
      Specified by:
      close in interface AutoCloseable