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.
| Modifier and Type | Method and Description |
|---|---|
String |
getCharacterEncoding()
Retrieve the character encoding for the request.
|
long |
getContentLength()
Retrieve the content length of the request.
|
String |
getContentType()
Retrieve the content type of the request.
|
InputStream |
getInputStream()
Retrieve the input stream for the request.
|
@Nullable String getCharacterEncoding()
@Nullable String getContentType()
@CheckForSigned long getContentLength()
@Nonnull InputStream getInputStream() throws IOException
IOException - if a problem occurs.Copyright © 2014–2019 Philip Helger. All rights reserved.