public class CommonRequestContext extends Object implements org.apache.commons.fileupload.UploadContext
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
characterEncoding |
protected int |
contentLength |
protected String |
contentType |
protected InputStream |
inputStream |
| 构造器和说明 |
|---|
CommonRequestContext() |
CommonRequestContext(int contentLength,
String characterEncoding,
String contentType,
InputStream inputStream) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
contentLength() |
String |
getCharacterEncoding() |
int |
getContentLength() |
String |
getContentType() |
InputStream |
getInputStream() |
void |
setCharacterEncoding(String characterEncoding) |
void |
setContentLength(int contentLength) |
void |
setContentType(String contentType) |
void |
setInputStream(InputStream inputStream) |
protected int contentLength
protected String characterEncoding
protected String contentType
protected InputStream inputStream
public CommonRequestContext()
public CommonRequestContext(int contentLength,
String characterEncoding,
String contentType,
InputStream inputStream)
contentLength - characterEncoding - contentType - inputStream - public long contentLength()
contentLength 在接口中 org.apache.commons.fileupload.UploadContextpublic String getCharacterEncoding()
getCharacterEncoding 在接口中 org.apache.commons.fileupload.RequestContextpublic String getContentType()
getContentType 在接口中 org.apache.commons.fileupload.RequestContextpublic int getContentLength()
getContentLength 在接口中 org.apache.commons.fileupload.RequestContextpublic InputStream getInputStream() throws IOException
getInputStream 在接口中 org.apache.commons.fileupload.RequestContextIOExceptionpublic void setContentLength(int contentLength)
public void setCharacterEncoding(String characterEncoding)
public void setContentType(String contentType)
public void setInputStream(InputStream inputStream)
Copyright © 2020. All rights reserved.