Class AcceptOnlyStreamsWithWebhook

java.lang.Object
io.antmedia.security.AcceptOnlyStreamsWithWebhook
All Implemented Interfaces:
IStreamPublishSecurity

public class AcceptOnlyStreamsWithWebhook extends Object implements IStreamPublishSecurity
  • Field Details

  • Constructor Details

    • AcceptOnlyStreamsWithWebhook

      public AcceptOnlyStreamsWithWebhook()
  • Method Details

    • isPublishAllowed

      public boolean isPublishAllowed(IScope scope, String streamId, String mode, Map<String,String> queryParams, String metaData)
      Description copied from interface: IStreamPublishSecurity
      Check if publishing a stream with the given name is allowed.
      Specified by:
      isPublishAllowed in interface IStreamPublishSecurity
      Parameters:
      scope - Scope the stream is about to be published in.
      streamId - Name of the stream to publish.
      mode - Publishing mode.
      Returns:
       True
       
      if publishing is allowed, otherwise
       False
       
    • getConnectionLocal

      public IConnection getConnectionLocal()
    • getAppSettings

      public AppSettings getAppSettings()
    • setAppSettings

      public void setAppSettings(AppSettings appSettings)
    • getHttpClient

      public org.apache.http.impl.client.CloseableHttpClient getHttpClient()