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

public Class MixedAttribute

extends AbstractMixedHttpData<Attribute>
implements Attribute
Class Inheritance
All Implemented Interfaces
io.netty.contrib.handler.codec.http.multipart.Attribute, io.netty.contrib.handler.codec.http.multipart.HttpData, io.netty.contrib.handler.codec.http.multipart.InterfaceHttpData, io.netty5.util.Resource, java.lang.AutoCloseable, java.lang.Comparable
Imports
io.netty5.buffer.Owned, io.netty5.handler.codec.http.HttpConstants, io.netty5.util.Send, 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.contrib.handler.codec.http.multipart.AbstractMixedHttpData:
baseDirdeleteOnExitlimitSizewrapped

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)

public
MixedAttribute(String baseDir, boolean deleteOnExit, long limitSize, Attribute attribute)

Method Summary

Modifier and TypeMethod and Description
public String
getValue()

Implements io.netty.contrib.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)

protected Owned<AbstractMixedHttpData<?>>
prepareSend()

Implements abstract io.netty5.buffer.internal.ResourceSupport.prepareSend.

Prepare this instance for ownership transfer.
public void
setValue(String value)

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

Sets the value of this HttpData.
Inherited from io.netty.contrib.handler.codec.http.multipart.AbstractMixedHttpData:
addContentcheckAccessiblecheckAccessiblecheckSizecompareTocopycreateResourceClosedExceptiondefinedLengthdeleteequalsgetgetCharsetgetChunkgetFilegetHttpDataTypegetMaxSizegetNamegetStringgetStringhashCodeisCompletedisInMemorylengthrenameToreplacesetCharsetsetContentsetContentsetContentsetMaxSizetoStringusingBufferusingContent

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)
MixedAttributeback to summary
public MixedAttribute(String baseDir, boolean deleteOnExit, long limitSize, Attribute attribute)

Method Detail

getValueback to summary
public String getValue() throws IOException

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

Doc from io.netty.contrib.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.contrib.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)
prepareSendback to summary
protected Owned<AbstractMixedHttpData<?>> prepareSend()

Implements abstract io.netty5.buffer.internal.ResourceSupport.prepareSend.

Doc from io.netty5.buffer.internal.ResourceSupport.prepareSend.

Prepare this instance for ownership transfer. This method is called from send() in the sending thread. This method should put this resource in a deactivated state where it is no longer accessible from the currently owning thread. In this state, the resource instance should only allow a call to Owned#transferOwnership(Drop) in the recipient thread.

Returns:Owned<AbstractMixedHttpData<?>>

This resource instance in a deactivated state.

Annotations
@Override
setValueback to summary
public void setValue(String value) throws IOException

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

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

Sets the value of this HttpData.

Annotations
@Override