Class GlobalDiskFileItemFactory

    • Constructor Detail

      • GlobalDiskFileItemFactory

        @UsedViaReflection
        @Deprecated(forRemoval=false)
        public GlobalDiskFileItemFactory()
        Deprecated.
    • Method Detail

      • onDestroy

        protected void onDestroy​(@Nonnull
                                 com.helger.scope.IScope aScopeInDestruction)
        Overrides:
        onDestroy in class com.helger.scope.singleton.AbstractSingleton
      • createItem

        @Nonnull
        public DiskFileItem createItem​(String sFieldName,
                                       @Nullable
                                       String sContentType,
                                       boolean bIsFormField,
                                       @Nullable
                                       String sFileName)
        Description copied from interface: IFileItemFactory
        Create a new IFileItem instance from the supplied parameters and any local factory configuration.
        Specified by:
        createItem in interface IFileItemFactory
        Parameters:
        sFieldName - The name of the form field.
        sContentType - The content type of the form field.
        bIsFormField - true if this is a plain form field; false otherwise.
        sFileName - The name of the uploaded file, if any, as supplied by the browser or other client.
        Returns:
        The newly created file item.
      • toString

        public String toString()
        Overrides:
        toString in class com.helger.scope.singleton.AbstractSingleton