public class CompatibleHttpPostStandardRequestDecoder extends Object implements io.netty.handler.codec.http.multipart.InterfaceHttpPostRequestDecoder
destroy() after completion to release all resources.| 构造器和说明 |
|---|
CompatibleHttpPostStandardRequestDecoder(io.netty.handler.codec.http.multipart.HttpDataFactory factory,
io.netty.handler.codec.http.HttpRequest request) |
CompatibleHttpPostStandardRequestDecoder(io.netty.handler.codec.http.multipart.HttpDataFactory factory,
io.netty.handler.codec.http.HttpRequest request,
Charset charset) |
CompatibleHttpPostStandardRequestDecoder(io.netty.handler.codec.http.HttpRequest request) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cleanFiles()
Clean all
HttpDatas for the current request. |
io.netty.handler.codec.http.multipart.InterfaceHttpData |
currentPartialHttpData() |
void |
destroy()
Destroy the and release all it resources.
|
io.netty.handler.codec.http.multipart.InterfaceHttpData |
getBodyHttpData(String name)
This getMethod returns the first InterfaceHttpData with the given name from
body.
|
List<io.netty.handler.codec.http.multipart.InterfaceHttpData> |
getBodyHttpDatas()
This getMethod returns a List of all HttpDatas from body.
|
List<io.netty.handler.codec.http.multipart.InterfaceHttpData> |
getBodyHttpDatas(String name)
This getMethod returns a List of all HttpDatas with the given name from
body.
|
int |
getDiscardThreshold()
Return the threshold in bytes after which read data in the buffer should be discarded.
|
boolean |
hasNext()
True if at current getStatus, there is an available decoded
InterfaceHttpData from the Body.
|
boolean |
isMultipart()
True if this request is a Multipart request
|
io.netty.handler.codec.http.multipart.InterfaceHttpData |
next()
Returns the next available InterfaceHttpData or null if, at the time it
is called, there is no more available InterfaceHttpData.
|
CompatibleHttpPostStandardRequestDecoder |
offer(io.netty.handler.codec.http.HttpContent content)
Initialized the internals from a new chunk
|
void |
removeHttpDataFromClean(io.netty.handler.codec.http.multipart.InterfaceHttpData data)
Remove the given FileUpload from the list of FileUploads to clean
|
void |
setDiscardThreshold(int discardThreshold)
Set the amount of bytes after which read bytes in the buffer should be discarded.
|
public CompatibleHttpPostStandardRequestDecoder(io.netty.handler.codec.http.HttpRequest request)
request - the request to decodeNullPointerException - for requestio.netty.handler.codec.http.multipart.HttpPostRequestDecoder.ErrorDataDecoderException - if the default charset was wrong when decoding or other
errorspublic CompatibleHttpPostStandardRequestDecoder(io.netty.handler.codec.http.multipart.HttpDataFactory factory,
io.netty.handler.codec.http.HttpRequest request)
factory - the factory used to create InterfaceHttpDatarequest - the request to decodeNullPointerException - for request or factoryio.netty.handler.codec.http.multipart.HttpPostRequestDecoder.ErrorDataDecoderException - if the default charset was wrong when decoding or other
errorspublic CompatibleHttpPostStandardRequestDecoder(io.netty.handler.codec.http.multipart.HttpDataFactory factory,
io.netty.handler.codec.http.HttpRequest request,
Charset charset)
factory - the factory used to create InterfaceHttpDatarequest - the request to decodecharset - the charset to use as defaultNullPointerException - for request or charset or factoryio.netty.handler.codec.http.multipart.HttpPostRequestDecoder.ErrorDataDecoderException - if the default charset was wrong when decoding or other
errorspublic boolean isMultipart()
isMultipart 在接口中 io.netty.handler.codec.http.multipart.InterfaceHttpPostRequestDecoderpublic void setDiscardThreshold(int discardThreshold)
0 to disable it.setDiscardThreshold 在接口中 io.netty.handler.codec.http.multipart.InterfaceHttpPostRequestDecoderpublic int getDiscardThreshold()
getDiscardThreshold 在接口中 io.netty.handler.codec.http.multipart.InterfaceHttpPostRequestDecoderpublic List<io.netty.handler.codec.http.multipart.InterfaceHttpData> getBodyHttpDatas()
getBodyHttpDatas 在接口中 io.netty.handler.codec.http.multipart.InterfaceHttpPostRequestDecoderio.netty.handler.codec.http.multipart.HttpPostRequestDecoder.NotEnoughDataDecoderException - Need more chunkspublic List<io.netty.handler.codec.http.multipart.InterfaceHttpData> getBodyHttpDatas(String name)
getBodyHttpDatas 在接口中 io.netty.handler.codec.http.multipart.InterfaceHttpPostRequestDecoderio.netty.handler.codec.http.multipart.HttpPostRequestDecoder.NotEnoughDataDecoderException - need more chunkspublic io.netty.handler.codec.http.multipart.InterfaceHttpData getBodyHttpData(String name)
getBodyHttpData 在接口中 io.netty.handler.codec.http.multipart.InterfaceHttpPostRequestDecoderio.netty.handler.codec.http.multipart.HttpPostRequestDecoder.NotEnoughDataDecoderException - need more chunkspublic CompatibleHttpPostStandardRequestDecoder offer(io.netty.handler.codec.http.HttpContent content)
offer 在接口中 io.netty.handler.codec.http.multipart.InterfaceHttpPostRequestDecodercontent - the new received chunkio.netty.handler.codec.http.multipart.HttpPostRequestDecoder.ErrorDataDecoderException - if there is a problem with the charset decoding or other
errorspublic boolean hasNext()
hasNext 在接口中 io.netty.handler.codec.http.multipart.InterfaceHttpPostRequestDecoderio.netty.handler.codec.http.multipart.HttpPostRequestDecoder.EndOfDataDecoderException - No more data will be availablepublic io.netty.handler.codec.http.multipart.InterfaceHttpData next()
ReferenceCounted.release() after you are done
with processing to make sure to not leak any resourcesnext 在接口中 io.netty.handler.codec.http.multipart.InterfaceHttpPostRequestDecoderio.netty.handler.codec.http.multipart.HttpPostRequestDecoder.EndOfDataDecoderException - No more data will be availablepublic io.netty.handler.codec.http.multipart.InterfaceHttpData currentPartialHttpData()
currentPartialHttpData 在接口中 io.netty.handler.codec.http.multipart.InterfaceHttpPostRequestDecoderpublic void destroy()
destroy 在接口中 io.netty.handler.codec.http.multipart.InterfaceHttpPostRequestDecoderpublic void cleanFiles()
HttpDatas for the current request.cleanFiles 在接口中 io.netty.handler.codec.http.multipart.InterfaceHttpPostRequestDecoderpublic void removeHttpDataFromClean(io.netty.handler.codec.http.multipart.InterfaceHttpData data)
removeHttpDataFromClean 在接口中 io.netty.handler.codec.http.multipart.InterfaceHttpPostRequestDecoderCopyright © 2023. All rights reserved.