Top Description Fields Constructors Methods
io.netty.handler.codec.http.multipart

public Class MixedFileUpload

extends AbstractMixedHttpData<FileUpload>
implements FileUpload
Class Inheritance
All Implemented Interfaces
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, java.nio.charset.Charset

Mixed implementation using both in Memory and in File with a limit of size

Field Summary

Inherited from io.netty.handler.codec.http.multipart.AbstractMixedHttpData:
baseDirdeleteOnExitwrapped

Constructor Summary

AccessConstructor and Description
public
MixedFileUpload(String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long size, long limitSize)

public
MixedFileUpload(String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long size, long limitSize, String baseDir, boolean deleteOnExit)

Method Summary

Modifier and TypeMethod and Description
public FileUpload
public FileUpload
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 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).
pack-priv FileUpload
public FileUpload
public FileUpload
public FileUpload
public FileUpload
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 FileUpload
public FileUpload
touch(Object hint)

Overrides io.netty.handler.codec.http.multipart.AbstractMixedHttpData.touch.

Implements io.netty.handler.codec.http.multipart.FileUpload.touch, io.netty.handler.codec.http.multipart.HttpData.touch, io.netty.util.ReferenceCounted.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes.
Inherited from io.netty.handler.codec.http.multipart.AbstractMixedHttpData:
addContentcheckSizecompareTocontentdeallocatedefinedLengthdeleteequalsgetgetByteBufgetCharsetgetChunkgetFilegetHttpDataTypegetMaxSizegetNamegetStringgetStringhashCodeisCompletedisInMemorylengthrenameTosetCharsetsetContentsetContentsetContentsetMaxSizetoString

Constructor Detail

MixedFileUploadback to summary
public MixedFileUpload(String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long size, long limitSize)
MixedFileUploadback to summary
public MixedFileUpload(String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long size, long limitSize, String baseDir, boolean deleteOnExit)

Method Detail

copyback to summary
public FileUpload copy()

Overrides io.netty.handler.codec.http.multipart.AbstractMixedHttpData.copy.

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

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

Creates a deep copy of this ByteBufHolder.

Annotations
@Override
duplicateback to summary
public FileUpload duplicate()

Overrides io.netty.handler.codec.http.multipart.AbstractMixedHttpData.duplicate.

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

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

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

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
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
makeDiskDataback to summary
pack-priv FileUpload makeDiskData()

Implements abstract io.netty.handler.codec.http.multipart.AbstractMixedHttpData.makeDiskData.

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

Overrides io.netty.handler.codec.http.multipart.AbstractMixedHttpData.replace.

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

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

Returns a new ByteBufHolder which contains the specified content.

Annotations
@Override
retainback to summary
public FileUpload retain()

Overrides io.netty.handler.codec.http.multipart.AbstractMixedHttpData.retain.

Implements io.netty.handler.codec.http.multipart.FileUpload.retain, io.netty.handler.codec.http.multipart.HttpData.retain, io.netty.util.ReferenceCounted.retain.

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

Increases the reference count by 1.

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

Overrides io.netty.handler.codec.http.multipart.AbstractMixedHttpData.retain.

Implements io.netty.handler.codec.http.multipart.FileUpload.retain, io.netty.handler.codec.http.multipart.HttpData.retain, io.netty.util.ReferenceCounted.retain.

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

Increases the reference count by the specified increment.

Annotations
@Override
retainedDuplicateback to summary
public FileUpload retainedDuplicate()

Overrides io.netty.handler.codec.http.multipart.AbstractMixedHttpData.retainedDuplicate.

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

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

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

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
touchback to summary
public FileUpload touch()

Overrides io.netty.handler.codec.http.multipart.AbstractMixedHttpData.touch.

Implements io.netty.handler.codec.http.multipart.FileUpload.touch, io.netty.handler.codec.http.multipart.HttpData.touch, io.netty.util.ReferenceCounted.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
touchback to summary
public FileUpload touch(Object hint)

Overrides io.netty.handler.codec.http.multipart.AbstractMixedHttpData.touch.

Implements io.netty.handler.codec.http.multipart.FileUpload.touch, io.netty.handler.codec.http.multipart.HttpData.touch, io.netty.util.ReferenceCounted.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