Package com.oorian

Interface OorianUploadPart

All Known Implementing Classes:
JakartaUploadPart

public interface OorianUploadPart
Abstraction layer for multipart file upload parts, decoupling from servlet API specifics.

This interface wraps the subset of Part methods used by the Oorian framework for file upload processing.

Since:
2.1
Version:
1.0
Author:
Marvin P. Warble Jr.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the content type of this part.
    Returns the value of the specified header for this part.
    Returns an input stream for reading the content of this part.
    Returns the name of this part (the form field name).
  • Method Details

    • getContentType

      String getContentType()
      Returns the content type of this part.
      Returns:
      the content type
    • getInputStream

      InputStream getInputStream() throws IOException
      Returns an input stream for reading the content of this part.
      Returns:
      the input stream
      Throws:
      IOException - if an I/O error occurs
    • getName

      String getName()
      Returns the name of this part (the form field name).
      Returns:
      the part name
    • getHeader

      String getHeader(String name)
      Returns the value of the specified header for this part.
      Parameters:
      name - the header name
      Returns:
      the header value, or null if not present