Class FileItemFactory.AbstractFileItemBuilder<I extends FileItem<I>,B extends FileItemFactory.AbstractFileItemBuilder<I,B>>

java.lang.Object
org.apache.commons.io.build.AbstractSupplier<I,B>
org.apache.commons.io.build.AbstractOriginSupplier<I,B>
org.apache.commons.io.build.AbstractStreamBuilder<I,B>
org.apache.commons.fileupload2.core.FileItemFactory.AbstractFileItemBuilder<I,B>
Type Parameters:
I - the type of FileItem to build.
B - the type of builder subclass.
All Implemented Interfaces:
org.apache.commons.io.function.IOSupplier<I>
Direct Known Subclasses:
DiskFileItem.Builder
Enclosing interface:
FileItemFactory<I extends FileItem<I>>

public abstract static class FileItemFactory.AbstractFileItemBuilder<I extends FileItem<I>,B extends FileItemFactory.AbstractFileItemBuilder<I,B>> extends org.apache.commons.io.build.AbstractStreamBuilder<I,B>
Abstracts building for subclasses.
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    Constructs a new instance.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    Gets the content type.
    Gets the field name.
    org.apache.commons.io.FileCleaningTracker
    Gets the file cleaning tracker.
    Gets the field item headers.
    Gets the file name.
    boolean
    Tests whether this is a form field.
    Create a new FileItemHeaders implementation.
    setContentType(String contentType)
    Sets the content type.
    setFieldName(String fieldName)
    Sets the field name.
    setFileCleaningTracker(org.apache.commons.io.FileCleaningTracker fileCleaningTracker)
    Sets the file cleaning tracker.
    Sets the file item headers.
    setFileName(String fileName)
    Sets the file name.
    setFormField(boolean isFormField)
    Sets whether this is a form field.

    Methods inherited from class org.apache.commons.io.build.AbstractStreamBuilder Link icon

    getBufferSize, getBufferSizeDefault, getCharSequence, getCharset, getCharsetDefault, getFile, getInputStream, getOpenOptions, getOutputStream, getPath, getRandomAccessFile, getReader, getWriter, setBufferSize, setBufferSize, setBufferSizeChecker, setBufferSizeDefault, setBufferSizeMax, setCharset, setCharset, setCharsetDefault, setOpenOptions

    Methods inherited from class org.apache.commons.io.build.AbstractOriginSupplier Link icon

    checkOrigin, getOrigin, hasOrigin, newByteArrayOrigin, newCharSequenceOrigin, newFileOrigin, newFileOrigin, newInputStreamOrigin, newOutputStreamOrigin, newPathOrigin, newPathOrigin, newRandomAccessFileOrigin, newRandomAccessFileOrigin, newReaderOrigin, newURIOrigin, newWriterOrigin, setByteArray, setCharSequence, setFile, setFile, setInputStream, setOrigin, setOutputStream, setPath, setPath, setRandomAccessFile, setRandomAccessFile, setReader, setURI, setWriter

    Methods inherited from class org.apache.commons.io.build.AbstractSupplier Link icon

    asThis

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.commons.io.function.IOSupplier Link icon

    asSupplier, get, getUnchecked
  • Constructor Details Link icon

  • Method Details Link icon

    • newFileItemHeaders Link icon

      Create a new FileItemHeaders implementation.
      Returns:
      a new FileItemHeaders implementation.
    • getContentType Link icon

      Gets the content type.
      Returns:
      the content type.
    • getFieldName Link icon

      public String getFieldName()
      Gets the field name.
      Returns:
      the field name.
    • getFileCleaningTracker Link icon

      public org.apache.commons.io.FileCleaningTracker getFileCleaningTracker()
      Gets the file cleaning tracker.
      Returns:
      the file cleaning tracker.
    • getFileItemHeaders Link icon

      Gets the field item headers.
      Returns:
      the field item headers.
    • getFileName Link icon

      public String getFileName()
      Gets the file name.
      Returns:
      the file name.
    • isFormField Link icon

      public boolean isFormField()
      Tests whether this is a form field.
      Returns:
      whether this is a form field.
    • setContentType Link icon

      public B setContentType(String contentType)
      Sets the content type.
      Parameters:
      contentType - the content type.
      Returns:
      this instance.
    • setFieldName Link icon

      public B setFieldName(String fieldName)
      Sets the field name.
      Parameters:
      fieldName - the field name.
      Returns:
      this instance.
    • setFileCleaningTracker Link icon

      public B setFileCleaningTracker(org.apache.commons.io.FileCleaningTracker fileCleaningTracker)
      Sets the file cleaning tracker.
      Parameters:
      fileCleaningTracker - the file cleaning tracker.
      Returns:
      this instance.
    • setFileItemHeaders Link icon

      public B setFileItemHeaders(FileItemHeaders fileItemHeaders)
      Sets the file item headers.
      Parameters:
      fileItemHeaders - the item headers.
      Returns:
      this instance.
    • setFileName Link icon

      public B setFileName(String fileName)
      Sets the file name.
      Parameters:
      fileName - the file name.
      Returns:
      this instance.
    • setFormField Link icon

      public B setFormField(boolean isFormField)
      Sets whether this is a form field.
      Parameters:
      isFormField - whether this is a form field.
      Returns:
      this instance.