public class MultipartEntry extends Object
Request.
In order to read multipart entry data it's possible to use either getNIOInputStream()
or getNIOReader() depends on whether we want to operate with binary or
String data.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
usingInputStream
Using stream flag.
|
protected boolean |
usingReader
Using writer flag.
|
| Modifier and Type | Method and Description |
|---|---|
ContentDisposition |
getContentDisposition()
Get the multipart entry content-disposition.
|
String |
getContentType()
Get the multipart entry content-type.
|
protected String |
getEncoding() |
String |
getHeader(Header header)
Get the multipart entry header value.
|
String |
getHeader(String name)
Get the multipart entry header value.
|
Set<String> |
getHeaderNames()
Get the multipart entry header names.
|
MultipartContext |
getMultipartContext()
Get multipart processing context.
|
NIOInputStream |
getNIOInputStream() |
NIOReader |
getNIOReader() |
boolean |
isMultipart()
Returns true if this is "multipart/*" multipart entry, or
false otherwise.
|
void |
skip()
Skip the multipart entry processing.
|
protected boolean usingInputStream
protected boolean usingReader
public NIOInputStream getNIOInputStream()
public NIOReader getNIOReader()
public MultipartContext getMultipartContext()
MultipartContext.public boolean isMultipart()
public String getContentType()
public ContentDisposition getContentDisposition()
public Set<String> getHeaderNames()
public String getHeader(String name)
name - multipart entry header name.public String getHeader(Header header)
header - entry header.public void skip()
throws IOException
IOExceptionprotected String getEncoding()
Copyright © 2024 Oracle Corporation. All rights reserved.