Interface IRequestContext

  • All Known Implementing Classes:
    ServletRequestContext

    public interface IRequestContext

    Abstracts access to the request information needed for file uploads. This interfsace should be implemented for each type of request that may be handled by FileUpload, such as servlets and portlets.

    Since:
    FileUpload 1.1
    Version:
    $Id: RequestContext.java 479262 2006-11-26 03:09:24Z niallp $
    Author:
    Martin Cooper
    • Method Detail

      • getCharacterEncoding

        @Nullable
        String getCharacterEncoding()
        Retrieve the character encoding for the request.
        Returns:
        The character encoding for the request.
      • getContentType

        @Nullable
        String getContentType()
        Retrieve the content type of the request.
        Returns:
        The content type of the request.
      • getContentLength

        @CheckForSigned
        long getContentLength()
        Retrieve the content length of the request.
        Returns:
        The content length of the request. My be -1 to indicate an unknown content length.