Top Fields Constructors Methods
io.vertx.core.http.impl

pack-priv final Class NettyFileUpload

extends Object
implements FileUpload, ReadStream<Buffer>
Class Inheritance
All Implemented Interfaces
io.vertx.core.streams.ReadStream, io.vertx.core.streams.StreamBase, io.netty.handler.codec.http.multipart.FileUpload, io.netty.handler.codec.http.multipart.HttpData, io.netty.buffer.ByteBufHolder, io.netty.util.ReferenceCounted, io.netty.handler.codec.http.multipart.InterfaceHttpData, java.lang.Comparable
Imports
io.netty.buffer.ByteBuf, io.netty.handler.codec.http.multipart.FileUpload, .InterfaceHttpData, io.vertx.core.Context, .Handler, io.vertx.core.buffer.Buffer, io.vertx.core.http.HttpServerRequest, io.vertx.core.streams.ReadStream, io.vertx.core.streams.impl.InboundBuffer, java.io.File, .IOException, .InputStream, java.nio.charset.Charset

Author
Julien Viet

Field Summary

Modifier and TypeField and Description
private Charset
private boolean
private String
private String
private Handler<Buffer>
private Handler<Void>
private Handler<Throwable>
private String
private long
private final String
private final InboundBuffer<Object>
private final HttpServerRequest
private final long

Constructor Summary

AccessConstructor and Description
pack-priv
NettyFileUpload(Context context, HttpServerRequest request, String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long size)

Method Summary

Modifier and TypeMethod and Description
public void
addContent(ByteBuf
must be not null except if last is set to False
channelBuffer
,
boolean
True of the buffer is the last one
last
)

Implements io.netty.handler.codec.http.multipart.HttpData.addContent.

Add the content from the ChannelBuffer

ByteBuf#release() ownership of buffer is transferred to this HttpData.

public void
checkSize(long newSize)

Implements io.netty.handler.codec.http.multipart.HttpData.checkSize.

Check if the new size is not reaching the max limit allowed.

public int
compareTo(InterfaceHttpData
the object to be compared.
o
)

Implements java.lang.Comparable.compareTo.

Compares this object with the specified object for order.

public ByteBuf
content()

Implements io.netty.buffer.ByteBufHolder.content.

Return the data which is held by this ByteBufHolder.

public FileUpload
public long
definedLength()

Implements io.netty.handler.codec.http.multipart.HttpData.definedLength.

Returns the defined length of the HttpData.

public void
delete()

Implements io.netty.handler.codec.http.multipart.HttpData.delete.

Deletes the underlying storage for a file item, including deleting any associated temporary disk file.

public FileUpload
private void
end()

private synchronized Handler<Void>
public synchronized NettyFileUpload
public synchronized NettyFileUpload
public NettyFileUpload
fetch(long amount)

Implements io.vertx.core.streams.ReadStream.fetch.

Fetch the specified amount of elements.

public byte[]
get()

Implements io.netty.handler.codec.http.multipart.HttpData.get.

Returns the contents of the file item as an array of bytes.

public ByteBuf
getByteBuf()

Implements io.netty.handler.codec.http.multipart.HttpData.getByteBuf.

Returns the content of the file item as a ByteBuf.

public Charset
getCharset()

Implements io.netty.handler.codec.http.multipart.HttpData.getCharset.

Returns the Charset passed by the browser or null if not defined.

public ByteBuf
getChunk(int i)

Implements io.netty.handler.codec.http.multipart.HttpData.getChunk.

Returns a ChannelBuffer for the content from the current position with at most length read bytes, increasing the current position of the Bytes read.

public String
public String
getContentType()

Implements io.netty.handler.codec.http.multipart.FileUpload.getContentType.

Returns the content type passed by the browser or null if not defined.

public File
public String
getFilename()

Implements io.netty.handler.codec.http.multipart.FileUpload.getFilename.

Returns the original filename in the client's filesystem, as provided by the browser (or other client software).

public InterfaceHttpData.HttpDataType
public long
getMaxSize()

Implements io.netty.handler.codec.http.multipart.HttpData.getMaxSize.

Returns the maxSize for this HttpData.

public String
getName()

Implements io.netty.handler.codec.http.multipart.InterfaceHttpData.getName.

Returns the name of this InterfaceHttpData.

public String
getString()

Implements io.netty.handler.codec.http.multipart.HttpData.getString.

Returns the contents of the file item as a String, using the default character encoding.

public String
getString(Charset
the charset to use
charset
)

Implements io.netty.handler.codec.http.multipart.HttpData.getString.

Returns the contents of the file item as a String, using the specified charset.

public void
private Handler<Buffer>
public synchronized NettyFileUpload
public boolean
public boolean
isInMemory()

Implements io.netty.handler.codec.http.multipart.HttpData.isInMemory.

Provides a hint as to whether or not the file contents will be read from memory.

public long
length()

Implements io.netty.handler.codec.http.multipart.HttpData.length.

Returns the size in byte of the InterfaceHttpData

public NettyFileUpload
pause()

Implements io.vertx.core.streams.ReadStream.pause.

Pause the ReadStream, it sets the buffer in fetch mode and clears the actual demand.

private void
receiveData(Buffer data)
References Deprecated Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

public int
refCnt()

Implements io.netty.util.ReferenceCounted.refCnt.

Returns the reference count of this object.

public boolean
release()

Implements io.netty.util.ReferenceCounted.release.

Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.

public boolean
release(int decrement)

Implements io.netty.util.ReferenceCounted.release.

Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.

public boolean
renameTo(File
destination file - must be not null
file
)

Implements io.netty.handler.codec.http.multipart.HttpData.renameTo.

A convenience getMethod to write an uploaded item to disk.

public FileUpload
replace(ByteBuf content)

Implements io.netty.handler.codec.http.multipart.FileUpload.replace.

Returns a new ByteBufHolder which contains the specified content.

public NettyFileUpload
resume()

Implements io.vertx.core.streams.ReadStream.resume.

Resume reading, and sets the buffer in flowing mode.

public FileUpload
retain()

Implements io.netty.handler.codec.http.multipart.FileUpload.retain.

Increases the reference count by 1.

public FileUpload
retain(int increment)

Implements io.netty.handler.codec.http.multipart.FileUpload.retain.

Increases the reference count by the specified increment.

public FileUpload
public void
setCharset(Charset
Charset to set - must be not null
charset
)

Implements io.netty.handler.codec.http.multipart.HttpData.setCharset.

Set the Charset passed by the browser if defined

public void
setContent(ByteBuf
must be not null
channelBuffer
)

Implements io.netty.handler.codec.http.multipart.HttpData.setContent.

Set the content from the ChannelBuffer (erase any previous data)

ByteBuf#release() ownership of buffer is transferred to this HttpData.

public void
setContent(File
must be not null
file
)

Implements io.netty.handler.codec.http.multipart.HttpData.setContent.

Set the content from the file (erase any previous data)

public void
setContent(InputStream
must be not null
inputStream
)

Implements io.netty.handler.codec.http.multipart.HttpData.setContent.

Set the content from the inputStream (erase any previous data)

public void
setContentTransferEncoding(String contentTransferEncoding)

Implements io.netty.handler.codec.http.multipart.FileUpload.setContentTransferEncoding.

Set the Content-Transfer-Encoding type from String as 7bit, 8bit or binary

public void
setContentType(String
Content Type to set - must be not null
contentType
)

Implements io.netty.handler.codec.http.multipart.FileUpload.setContentType.

Set the Content Type passed by the browser if defined

public void
public void
setMaxSize(long maxSize)

Implements io.netty.handler.codec.http.multipart.HttpData.setMaxSize.

Set the maxSize for this HttpData.

public FileUpload
touch(Object hint)

Implements io.netty.handler.codec.http.multipart.FileUpload.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes.

public FileUpload
touch()

Implements io.netty.handler.codec.http.multipart.FileUpload.touch.

Records the current access location of this object for debugging purposes.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

charsetback to summary
private Charset charset
completedback to summary
private boolean completed
contentTransferEncodingback to summary
private String contentTransferEncoding
contentTypeback to summary
private String contentType
dataHandlerback to summary
private Handler<Buffer> dataHandler
endHandlerback to summary
private Handler<Void> endHandler
exceptionHandlerback to summary
private Handler<Throwable> exceptionHandler
filenameback to summary
private String filename
maxSizeback to summary
private long maxSize
nameback to summary
private final String name
pendingback to summary
private final InboundBuffer<Object> pending
requestback to summary
private final HttpServerRequest request
sizeback to summary
private final long size

Constructor Detail

NettyFileUploadback to summary
pack-priv NettyFileUpload(Context context, HttpServerRequest request, String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long size)

Method Detail

addContentback to summary
public void addContent(ByteBuf channelBuffer, boolean last) throws IOException

Implements io.netty.handler.codec.http.multipart.HttpData.addContent.

Doc from io.netty.handler.codec.http.multipart.HttpData.addContent.

Add the content from the ChannelBuffer

ByteBuf#release() ownership of buffer is transferred to this HttpData.

Parameters
channelBuffer:ByteBuf

must be not null except if last is set to False

last:boolean

True of the buffer is the last one

Annotations
@Override
checkSizeback to summary
public void checkSize(long newSize) throws IOException

Implements io.netty.handler.codec.http.multipart.HttpData.checkSize.

Doc from io.netty.handler.codec.http.multipart.HttpData.checkSize.

Check if the new size is not reaching the max limit allowed. The limit is always computed in terms of bytes.

Annotations
@Override
compareToback to summary
public int compareTo(InterfaceHttpData o)

Implements java.lang.Comparable.compareTo.

Doc from java.lang.Comparable.compareTo.

Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

The implementor must ensure signum(x.compareTo(y)) == -signum(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception if and only if y.compareTo(x) throws an exception.)

The implementor must also ensure that the relation is transitive: (x.compareTo(y) > 0 && y.compareTo(z) > 0) implies x.compareTo(z) > 0.

Finally, the implementor must ensure that x.compareTo(y)==0 implies that signum(x.compareTo(z)) == signum(y.compareTo(z)), for all z.

Parameters
o:InterfaceHttpData

the object to be compared.

Returns:int

a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Annotations
@Override
contentback to summary
public ByteBuf content()

Implements io.netty.buffer.ByteBufHolder.content.

Doc from io.netty.buffer.ByteBufHolder.content.

Return the data which is held by this ByteBufHolder.

Annotations
@Override
copyback to summary
public FileUpload copy()

Implements io.netty.handler.codec.http.multipart.FileUpload.copy.

Doc from io.netty.buffer.ByteBufHolder.copy.

Creates a deep copy of this ByteBufHolder.

Annotations
@Override
definedLengthback to summary
public long definedLength()

Implements io.netty.handler.codec.http.multipart.HttpData.definedLength.

Doc from io.netty.handler.codec.http.multipart.HttpData.definedLength.

Returns the defined length of the HttpData. If no Content-Length is provided in the request, the defined length is always 0 (whatever during decoding or in final state). If Content-Length is provided in the request, this is this given defined length. This value does not change, whatever during decoding or in the final state. This method could be used for instance to know the amount of bytes transmitted for one particular HttpData, for example one FileUpload or any known big Attribute.

Returns:long

the defined length of the HttpData

Annotations
@Override
deleteback to summary
public void delete()

Implements io.netty.handler.codec.http.multipart.HttpData.delete.

Doc from io.netty.handler.codec.http.multipart.HttpData.delete.

Deletes the underlying storage for a file item, including deleting any associated temporary disk file.

Annotations
@Override
duplicateback to summary
public FileUpload duplicate()

Implements io.netty.handler.codec.http.multipart.FileUpload.duplicate.

Doc from io.netty.buffer.ByteBufHolder.duplicate.

Duplicates this ByteBufHolder. Be aware that this will not automatically call retain().

endback to summary
private void end()
endHandlerback to summary
private synchronized Handler<Void> endHandler()
endHandlerback to summary
public synchronized NettyFileUpload endHandler(Handler<Void> handler)
Annotations
@Override
exceptionHandlerback to summary
public synchronized NettyFileUpload exceptionHandler(Handler<Throwable> handler)
Annotations
@Override
fetchback to summary
public NettyFileUpload fetch(long amount)

Implements io.vertx.core.streams.ReadStream.fetch.

Doc from io.vertx.core.streams.ReadStream.fetch.

Fetch the specified amount of elements. If the ReadStream has been paused, reading will recommence with the specified amount of items, otherwise the specified amount will be added to the current stream demand.

Returns:NettyFileUpload

a reference to this, so the API can be used fluently

Annotations
@Override
getback to summary
public byte[] get() throws IOException

Implements io.netty.handler.codec.http.multipart.HttpData.get.

Doc from io.netty.handler.codec.http.multipart.HttpData.get.

Returns the contents of the file item as an array of bytes.

Note

this method will allocate a lot of memory, if the data is currently stored on the file system.

Returns:byte[]

the contents of the file item as an array of bytes.

Annotations
@Override
getByteBufback to summary
public ByteBuf getByteBuf() throws IOException

Implements io.netty.handler.codec.http.multipart.HttpData.getByteBuf.

Doc from io.netty.handler.codec.http.multipart.HttpData.getByteBuf.

Returns the content of the file item as a ByteBuf.

Note

this method will allocate a lot of memory, if the data is currently stored on the file system.

Returns:ByteBuf

the content of the file item as a ByteBuf

Annotations
@Override
getCharsetback to summary
public Charset getCharset()

Implements io.netty.handler.codec.http.multipart.HttpData.getCharset.

Doc from io.netty.handler.codec.http.multipart.HttpData.getCharset.

Returns the Charset passed by the browser or null if not defined.

Returns:Charset

the Charset passed by the browser or null if not defined.

Annotations
@Override
getChunkback to summary
public ByteBuf getChunk(int i) throws IOException

Implements io.netty.handler.codec.http.multipart.HttpData.getChunk.

Doc from io.netty.handler.codec.http.multipart.HttpData.getChunk.

Returns a ChannelBuffer for the content from the current position with at most length read bytes, increasing the current position of the Bytes read. Once it arrives at the end, it returns an EMPTY_BUFFER and it resets the current position to 0.

Returns:ByteBuf

a ChannelBuffer for the content from the current position or an EMPTY_BUFFER if there is no more data to return

Annotations
@Override
getContentTransferEncodingback to summary
public String getContentTransferEncoding()

Implements io.netty.handler.codec.http.multipart.FileUpload.getContentTransferEncoding.

Doc from io.netty.handler.codec.http.multipart.FileUpload.getContentTransferEncoding.

Returns the Content-Transfer-Encoding

Returns:String

the Content-Transfer-Encoding

Annotations
@Override
getContentTypeback to summary
public String getContentType()

Implements io.netty.handler.codec.http.multipart.FileUpload.getContentType.

Doc from io.netty.handler.codec.http.multipart.FileUpload.getContentType.

Returns the content type passed by the browser or null if not defined.

Returns:String

the content type passed by the browser or null if not defined.

Annotations
@Override
getFileback to summary
public File getFile() throws IOException

Implements io.netty.handler.codec.http.multipart.HttpData.getFile.

Returns:File

Doc from io.netty.handler.codec.http.multipart.HttpData.getFile.

the associated File if this data is represented in a file

Annotations
@Override
Exceptions
IOException:

Doc from io.netty.handler.codec.http.multipart.HttpData.getFile.

if this data is not represented by a file

getFilenameback to summary
public String getFilename()

Implements io.netty.handler.codec.http.multipart.FileUpload.getFilename.

Doc from io.netty.handler.codec.http.multipart.FileUpload.getFilename.

Returns the original filename in the client's filesystem, as provided by the browser (or other client software).

Returns:String

the original filename

Annotations
@Override
getHttpDataTypeback to summary
public InterfaceHttpData.HttpDataType getHttpDataType()

Implements io.netty.handler.codec.http.multipart.InterfaceHttpData.getHttpDataType.

Returns:InterfaceHttpData.HttpDataType

Doc from io.netty.handler.codec.http.multipart.InterfaceHttpData.getHttpDataType.

The HttpDataType

Annotations
@Override
getMaxSizeback to summary
public long getMaxSize()

Implements io.netty.handler.codec.http.multipart.HttpData.getMaxSize.

Doc from io.netty.handler.codec.http.multipart.HttpData.getMaxSize.

Returns the maxSize for this HttpData.

Annotations
@Override
getNameback to summary
public String getName()

Implements io.netty.handler.codec.http.multipart.InterfaceHttpData.getName.

Doc from io.netty.handler.codec.http.multipart.InterfaceHttpData.getName.

Returns the name of this InterfaceHttpData.

Annotations
@Override
getStringback to summary
public String getString() throws IOException

Implements io.netty.handler.codec.http.multipart.HttpData.getString.

Doc from io.netty.handler.codec.http.multipart.HttpData.getString.

Returns the contents of the file item as a String, using the default character encoding.

Returns:String

the contents of the file item as a String, using the default character encoding.

Annotations
@Override
getStringback to summary
public String getString(Charset charset) throws IOException

Implements io.netty.handler.codec.http.multipart.HttpData.getString.

Doc from io.netty.handler.codec.http.multipart.HttpData.getString.

Returns the contents of the file item as a String, using the specified charset.

Parameters
charset:Charset

the charset to use

Returns:String

the contents of the file item as a String, using the specified charset.

Annotations
@Override
handleExceptionback to summary
public void handleException(Throwable err)
handlerback to summary
private Handler<Buffer> handler()
handlerback to summary
public synchronized NettyFileUpload handler(Handler<Buffer> handler)
Annotations
@Override
isCompletedback to summary
public boolean isCompleted()

Implements io.netty.handler.codec.http.multipart.HttpData.isCompleted.

Returns:boolean

Doc from io.netty.handler.codec.http.multipart.HttpData.isCompleted.

True if the InterfaceHttpData is completed (all data are stored)

Annotations
@Override
isInMemoryback to summary
public boolean isInMemory()

Implements io.netty.handler.codec.http.multipart.HttpData.isInMemory.

Doc from io.netty.handler.codec.http.multipart.HttpData.isInMemory.

Provides a hint as to whether or not the file contents will be read from memory.

Returns:boolean

True if the file contents is in memory.

Annotations
@Override
lengthback to summary
public long length()

Implements io.netty.handler.codec.http.multipart.HttpData.length.

Doc from io.netty.handler.codec.http.multipart.HttpData.length.

Returns the size in byte of the InterfaceHttpData

Returns:long

the size of the InterfaceHttpData

Annotations
@Override
pauseback to summary
public NettyFileUpload pause()

Implements io.vertx.core.streams.ReadStream.pause.

Doc from io.vertx.core.streams.ReadStream.pause.

Pause the ReadStream, it sets the buffer in fetch mode and clears the actual demand.

While it's paused, no data will be sent to the data handler.

Returns:NettyFileUpload

a reference to this, so the API can be used fluently

Annotations
@Override
receiveDataback to summary
private void receiveData(Buffer data)

References Deprecated

Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

refCntback to summary
public int refCnt()

Implements io.netty.util.ReferenceCounted.refCnt.

Doc from io.netty.util.ReferenceCounted.refCnt.

Returns the reference count of this object. If 0, it means this object has been deallocated.

Annotations
@Override
releaseback to summary
public boolean release()

Implements io.netty.util.ReferenceCounted.release.

Doc from io.netty.util.ReferenceCounted.release.

Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.

Returns:boolean

true if and only if the reference count became 0 and this object has been deallocated

Annotations
@Override
releaseback to summary
public boolean release(int decrement)

Implements io.netty.util.ReferenceCounted.release.

Doc from io.netty.util.ReferenceCounted.release.

Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.

Returns:boolean

true if and only if the reference count became 0 and this object has been deallocated

Annotations
@Override
renameToback to summary
public boolean renameTo(File file) throws IOException

Implements io.netty.handler.codec.http.multipart.HttpData.renameTo.

Doc from io.netty.handler.codec.http.multipart.HttpData.renameTo.

A convenience getMethod to write an uploaded item to disk. If a previous one exists, it will be deleted. Once this getMethod is called, if successful, the new file will be out of the cleaner of the factory that creates the original InterfaceHttpData object.

Parameters
file:File

destination file - must be not null

Returns:boolean

True if the write is successful

Annotations
@Override
replaceback to summary
public FileUpload replace(ByteBuf content)

Implements io.netty.handler.codec.http.multipart.FileUpload.replace.

Doc from io.netty.buffer.ByteBufHolder.replace.

Returns a new ByteBufHolder which contains the specified content.

Annotations
@Override
resumeback to summary
public NettyFileUpload resume()

Implements io.vertx.core.streams.ReadStream.resume.

Doc from io.vertx.core.streams.ReadStream.resume.

Resume reading, and sets the buffer in flowing mode.

If the ReadStream has been paused, reading will recommence on it.

Returns:NettyFileUpload

a reference to this, so the API can be used fluently

Annotations
@Override
retainback to summary
public FileUpload retain()

Implements io.netty.handler.codec.http.multipart.FileUpload.retain.

Doc from io.netty.util.ReferenceCounted.retain.

Increases the reference count by 1.

Annotations
@Override
retainback to summary
public FileUpload retain(int increment)

Implements io.netty.handler.codec.http.multipart.FileUpload.retain.

Doc from io.netty.util.ReferenceCounted.retain.

Increases the reference count by the specified increment.

Annotations
@Override
retainedDuplicateback to summary
public FileUpload retainedDuplicate()

Implements io.netty.handler.codec.http.multipart.FileUpload.retainedDuplicate.

Doc from io.netty.buffer.ByteBufHolder.retainedDuplicate.

Duplicates this ByteBufHolder. This method returns a retained duplicate unlike duplicate().

Annotations
@Override
setCharsetback to summary
public void setCharset(Charset charset)

Implements io.netty.handler.codec.http.multipart.HttpData.setCharset.

Doc from io.netty.handler.codec.http.multipart.HttpData.setCharset.

Set the Charset passed by the browser if defined

Parameters
charset:Charset

Charset to set - must be not null

Annotations
@Override
setContentback to summary
public void setContent(ByteBuf channelBuffer) throws IOException

Implements io.netty.handler.codec.http.multipart.HttpData.setContent.

Doc from io.netty.handler.codec.http.multipart.HttpData.setContent.

Set the content from the ChannelBuffer (erase any previous data)

ByteBuf#release() ownership of buffer is transferred to this HttpData.

Parameters
channelBuffer:ByteBuf

must be not null

Annotations
@Override
setContentback to summary
public void setContent(File file) throws IOException

Implements io.netty.handler.codec.http.multipart.HttpData.setContent.

Doc from io.netty.handler.codec.http.multipart.HttpData.setContent.

Set the content from the file (erase any previous data)

Parameters
file:File

must be not null

Annotations
@Override
setContentback to summary
public void setContent(InputStream inputStream) throws IOException

Implements io.netty.handler.codec.http.multipart.HttpData.setContent.

Doc from io.netty.handler.codec.http.multipart.HttpData.setContent.

Set the content from the inputStream (erase any previous data)

Parameters
inputStream:InputStream

must be not null

Annotations
@Override
setContentTransferEncodingback to summary
public void setContentTransferEncoding(String contentTransferEncoding)

Implements io.netty.handler.codec.http.multipart.FileUpload.setContentTransferEncoding.

Doc from io.netty.handler.codec.http.multipart.FileUpload.setContentTransferEncoding.

Set the Content-Transfer-Encoding type from String as 7bit, 8bit or binary

Annotations
@Override
setContentTypeback to summary
public void setContentType(String contentType)

Implements io.netty.handler.codec.http.multipart.FileUpload.setContentType.

Doc from io.netty.handler.codec.http.multipart.FileUpload.setContentType.

Set the Content Type passed by the browser if defined

Parameters
contentType:String

Content Type to set - must be not null

Annotations
@Override
setFilenameback to summary
public void setFilename(String filename)

Implements io.netty.handler.codec.http.multipart.FileUpload.setFilename.

Doc from io.netty.handler.codec.http.multipart.FileUpload.setFilename.

Set the original filename

Annotations
@Override
setMaxSizeback to summary
public void setMaxSize(long maxSize)

Implements io.netty.handler.codec.http.multipart.HttpData.setMaxSize.

Doc from io.netty.handler.codec.http.multipart.HttpData.setMaxSize.

Set the maxSize for this HttpData. When limit will be reached, an exception will be raised. Setting it to (-1) means no limitation. By default, to be set from the HttpDataFactory.

Annotations
@Override
touchback to summary
public FileUpload touch(Object hint)

Implements io.netty.handler.codec.http.multipart.FileUpload.touch.

Doc from io.netty.util.ReferenceCounted.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you via ResourceLeakDetector.

Annotations
@Override
touchback to summary
public FileUpload touch()

Implements io.netty.handler.codec.http.multipart.FileUpload.touch.

Doc from io.netty.util.ReferenceCounted.touch.

Records the current access location of this object for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you via ResourceLeakDetector. This method is a shortcut to touch(null).

Annotations
@Override