Top Description Methods
org.apache.tomcat.util.http.fileupload

public Interface UploadContext

extends RequestContext
Known Direct Implementers
org.apache.tomcat.util.http.fileupload.servlet.ServletRequestContext

Enhanced access to the request information needed for file uploads, which fixes the Content Length data access in RequestContext. The reason of introducing this new interface is just for backward compatibility and it might vanish for a refactored 2.x version moving the new method into RequestContext again.
Since
1.3

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

The content length of the request.
contentLength
()

Retrieve the content length of the request.

Inherited from org.apache.tomcat.util.http.fileupload.RequestContext:
getCharacterEncodinggetContentTypegetInputStream

Method Detail

contentLengthback to summary
public long contentLength()

Retrieve the content length of the request.

Returns:long

The content length of the request.

Since
1.3