@UnstableApi public interface SmtpContent extends ByteBufHolder
DATA
request.
Be aware that a SmtpContent
/ LastSmtpContent
sequence must always use CRLF as line delimiter
and the lines that start with a DOT must be escaped with an extra DOT as
specified by RFC2821.Modifier and Type | Method and Description |
---|---|
SmtpContent |
copy()
Creates a deep copy of this
ByteBufHolder . |
SmtpContent |
duplicate()
Duplicates this
ByteBufHolder . |
SmtpContent |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content . |
SmtpContent |
retain()
Increases the reference count by
1 . |
SmtpContent |
retain(int increment)
Increases the reference count by the specified
increment . |
SmtpContent |
retainedDuplicate()
Duplicates this
ByteBufHolder . |
SmtpContent |
touch()
Records the current access location of this object for debugging purposes.
|
SmtpContent |
touch(Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
content
refCnt, release, release
SmtpContent copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
SmtpContent duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
SmtpContent retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
in interface ByteBufHolder
ByteBuf.retainedDuplicate()
SmtpContent replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified content
.replace
in interface ByteBufHolder
SmtpContent retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
SmtpContent retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
SmtpContent touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
SmtpContent touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
Copyright © 2008–2024 The Netty Project. All rights reserved.