Top Description Methods
io.netty.contrib.handler.codec.http.multipart

public Interface FileUpload

extends HttpData
Known Direct Implementers
io.netty.contrib.handler.codec.http.multipart.MemoryFileUpload, io.netty.contrib.handler.codec.http.multipart.MixedFileUpload, io.netty.contrib.handler.codec.http.multipart.DiskFileUpload
Imports
io.netty5.buffer.Buffer

FileUpload interface that could be in memory, on temporary file or any other implementations. Most methods are inspired from java.io.File API.

Method Summary

Modifier and TypeMethod and Description
public FileUpload
public String

Returns:

the Content-Transfer-Encoding
getContentTransferEncoding
()

Returns the Content-Transfer-Encoding

public String

Returns:

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

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

public String

Returns:

the original filename
getFilename
()

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

public FileUpload
replace(Buffer content)

Redeclares io.netty.contrib.handler.codec.http.multipart.HttpData.replace.

Returns a new HttpData which contains the specified content.
public void
setContentTransferEncoding(String contentTransferEncoding)

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
)

Set the Content Type passed by the browser if defined

public void
setFilename(String filename)

Set the original filename

Inherited from io.netty.contrib.handler.codec.http.multipart.HttpData:
addContentcheckSizedefinedLengthdeletegetgetCharsetgetChunkgetFilegetMaxSizegetStringgetStringisCompletedisInMemorylengthrenameTosetCharsetsetContentsetContentsetContentsetMaxSizeusingBufferusingContent

Method Detail

copyback to summary
public FileUpload copy()

Redeclares io.netty.contrib.handler.codec.http.multipart.HttpData.copy.

Doc from io.netty.contrib.handler.codec.http.multipart.HttpData.copy.

Creates a deep copy of this HttpData.

Annotations
@Override
getContentTransferEncodingback to summary
public String getContentTransferEncoding()

Returns the Content-Transfer-Encoding

Returns:String

the Content-Transfer-Encoding

getContentTypeback to summary
public String 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.

getFilenameback to summary
public String getFilename()

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

Returns:String

the original filename

replaceback to summary
public FileUpload replace(Buffer content)

Redeclares io.netty.contrib.handler.codec.http.multipart.HttpData.replace.

Doc from io.netty.contrib.handler.codec.http.multipart.HttpData.replace.

Returns a new HttpData which contains the specified content.

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

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

setContentTypeback to summary
public void setContentType(String contentType)

Set the Content Type passed by the browser if defined

Parameters
contentType:String

Content Type to set - must be not null

setFilenameback to summary
public void setFilename(String filename)

Set the original filename