com.aspose.html

Class Configuration

    • Constructor Detail

      • Configuration

        public Configuration()

        Initializes a new instance of the Configuration class.

    • Method Detail

      • getContainer

        public com.aspose.html.services.ServiceContainer getContainer()
      • getSecurity

        public int getSecurity()

        Gets or sets the sandboxing flag of the configuration.

        Value: The security.
      • setSecurity

        public void setSecurity(int value)

        Gets or sets the sandboxing flag of the configuration.

        Value: The security.
      • getService

        public <TService extends IService> TService getService(Class<?> clazz)

        Gets the requested service.

        Specified by:
        getService in interface IServiceProvider
        Returns:
        An instance of the service if it could be found, or if it could not be found

        TService: The type of service to retrieve.

        Value: null
      • addService

        public <TService extends IService> void addService(TService service,
                                                           Class<?> clazz)

        Adds the specified service to the configuration.

        Specified by:
        addService in interface IServiceContainer
        Parameters:
        service - An instance of the service to add.

        TService: The type of service to add.

      • dispose

        public void dispose()

        Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable