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

public Class MixedAttribute

extends AbstractMixedHttpData<Attribute>
implements Attribute
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.http.multipart.Attribute, 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.HttpConstants, java.io.IOException, 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
MixedAttribute(String name, long limitSize)

public
MixedAttribute(String name, long definedSize, long limitSize)

public
MixedAttribute(String name, long limitSize, Charset charset)

public
MixedAttribute(String name, long limitSize, Charset charset, String baseDir, boolean deleteOnExit)

public
MixedAttribute(String name, long definedSize, long limitSize, Charset charset)

public
MixedAttribute(String name, long definedSize, long limitSize, Charset charset, String baseDir, boolean deleteOnExit)

public
MixedAttribute(String name, String value, long limitSize)

public
MixedAttribute(String name, String value, long limitSize, Charset charset)

public
MixedAttribute(String name, String value, long limitSize, Charset charset, String baseDir, boolean deleteOnExit)

Method Summary

Modifier and TypeMethod and Description
public Attribute
public Attribute
public String
getValue()

Implements io.netty.handler.codec.http.multipart.Attribute.getValue.

Returns the value of this HttpData.
pack-priv Attribute
private static Attribute
makeInitialAttributeFromValue(String name, String value, long limitSize, Charset charset, String baseDir, boolean deleteOnExit)

public Attribute
public Attribute
public Attribute
public Attribute
public void
setValue(String value)

Implements io.netty.handler.codec.http.multipart.Attribute.setValue.

Sets the value of this HttpData.
public Attribute
public Attribute
touch(Object hint)

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

Implements io.netty.handler.codec.http.multipart.Attribute.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

MixedAttributeback to summary
public MixedAttribute(String name, long limitSize)
MixedAttributeback to summary
public MixedAttribute(String name, long definedSize, long limitSize)
MixedAttributeback to summary
public MixedAttribute(String name, long limitSize, Charset charset)
MixedAttributeback to summary
public MixedAttribute(String name, long limitSize, Charset charset, String baseDir, boolean deleteOnExit)
MixedAttributeback to summary
public MixedAttribute(String name, long definedSize, long limitSize, Charset charset)
MixedAttributeback to summary
public MixedAttribute(String name, long definedSize, long limitSize, Charset charset, String baseDir, boolean deleteOnExit)
MixedAttributeback to summary
public MixedAttribute(String name, String value, long limitSize)
MixedAttributeback to summary
public MixedAttribute(String name, String value, long limitSize, Charset charset)
MixedAttributeback to summary
public MixedAttribute(String name, String value, long limitSize, Charset charset, String baseDir, boolean deleteOnExit)

Method Detail

copyback to summary
public Attribute copy()

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

Implements io.netty.handler.codec.http.multipart.Attribute.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 Attribute duplicate()

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

Implements io.netty.handler.codec.http.multipart.Attribute.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
getValueback to summary
public String getValue() throws IOException

Implements io.netty.handler.codec.http.multipart.Attribute.getValue.

Doc from io.netty.handler.codec.http.multipart.Attribute.getValue.

Returns the value of this HttpData.

Annotations
@Override
makeDiskDataback to summary
pack-priv Attribute makeDiskData()

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

Annotations
@Override
makeInitialAttributeFromValueback to summary
private static Attribute makeInitialAttributeFromValue(String name, String value, long limitSize, Charset charset, String baseDir, boolean deleteOnExit)
replaceback to summary
public Attribute replace(ByteBuf content)

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

Implements io.netty.handler.codec.http.multipart.Attribute.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 Attribute retain()

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

Implements io.netty.handler.codec.http.multipart.Attribute.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 Attribute retain(int increment)

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

Implements io.netty.handler.codec.http.multipart.Attribute.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 Attribute retainedDuplicate()

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

Implements io.netty.handler.codec.http.multipart.Attribute.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
setValueback to summary
public void setValue(String value) throws IOException

Implements io.netty.handler.codec.http.multipart.Attribute.setValue.

Doc from io.netty.handler.codec.http.multipart.Attribute.setValue.

Sets the value of this HttpData.

Annotations
@Override
touchback to summary
public Attribute touch()

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

Implements io.netty.handler.codec.http.multipart.Attribute.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 Attribute touch(Object hint)

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

Implements io.netty.handler.codec.http.multipart.Attribute.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