Class MultipartEntry
java.lang.Object
org.glassfish.grizzly.http.multipart.MultipartEntry
Abstraction represents single multipart entry, its functionality is pretty similar to
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.- Since:
- 2.0.1
- Author:
- Alexey Stashok
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanUsing stream flag.protected booleanUsing writer flag. -
Method Summary
Modifier and TypeMethodDescriptionGet the multipart entry content-disposition.Get the multipart entry content-type.protected StringGet the multipart entry header value.Get the multipart entry header value.Get the multipart entry header names.Get multipart processing context.booleanReturns true if this is "multipart/*" multipart entry, or false otherwise.voidskip()Skip the multipart entry processing.
-
Field Details
-
usingInputStream
protected boolean usingInputStreamUsing stream flag. -
usingReader
protected boolean usingReaderUsing writer flag.
-
-
Method Details
-
getNIOInputStream
-
getNIOReader
-
getMultipartContext
Get multipart processing context.- Returns:
MultipartContext.
-
isMultipart
public boolean isMultipart()Returns true if this is "multipart/*" multipart entry, or false otherwise.- Returns:
- true if this is "multipart/*" multipart entry, or false otherwise.
-
getContentType
Get the multipart entry content-type.- Returns:
- the multipart entry content-type.
-
getContentDisposition
Get the multipart entry content-disposition.- Returns:
- the multipart entry content-disposition.
-
getHeaderNames
Get the multipart entry header names.- Returns:
- the multipart entry header names.
-
getHeader
Get the multipart entry header value.- Parameters:
name- multipart entry header name.- Returns:
- the multipart entry header value.
-
getHeader
Get the multipart entry header value.- Parameters:
header- entry header.- Returns:
- the multipart entry header value.
- Since:
- 2.1.2
-
skip
Skip the multipart entry processing.- Throws:
IOException
-
getEncoding
-