public interface RequestContext
Abstracts access to the request information needed for file uploads. This interface should be implemented for each type of request that may be handled by FileUpload, such as servlets and portlets.
Modifier and Type | Method and Description |
---|---|
String |
getCharacterEncoding()
Retrieve the character encoding for the request.
|
int |
getContentLength()
Deprecated.
1.3 Use
UploadContext.contentLength() instead |
String |
getContentType()
Retrieve the content type of the request.
|
InputStream |
getInputStream()
Retrieve the input stream for the request.
|
String getCharacterEncoding()
String getContentType()
@Deprecated int getContentLength()
UploadContext.contentLength()
insteadInputStream getInputStream() throws IOException
IOException
- if a problem occurs.Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.