| Modifier and Type | Field and Description |
|---|---|
| private Charset | |
| private boolean | |
| protected long | |
| private long | |
| private final String | |
| private static final Pattern | |
| protected long | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | checkSize(long newSize)
Implements io. |
| public ByteBuf | content()
Implements io. ByteBufHolder.
|
| protected void | deallocate()
Implements abstract io. refCnt() is equals 0.
|
| public long | definedLength()
Implements io. |
| public Charset | getCharset()
Implements io. |
| public long | getMaxSize()
Implements io. |
| public String | getName()
Implements io. |
| public boolean | |
| public long | length()
Implements io. |
| public HttpData | retain()
Overrides io. Implements io. 1.
|
| public HttpData | retain(int increment)
Overrides io. Implements io. increment.
|
| public void | setCharset(Charset
Charset to set - must be not null charset)Implements io. |
| protected void | |
| protected void | |
| public void | setMaxSize(long maxSize)
Implements io. |
| public abstract HttpData | touch()
Redeclares io. Overrides io. |
| public abstract HttpData | touch(Object hint)
Redeclares io. |
| charset | back to summary |
|---|---|
| private Charset charset | |
| completed | back to summary |
|---|---|
| private boolean completed | |
| definedSize | back to summary |
|---|---|
| protected long definedSize | |
| maxSize | back to summary |
|---|---|
| private long maxSize | |
| name | back to summary |
|---|---|
| private final String name | |
| REPLACE_PATTERN | back to summary |
|---|---|
| private static final Pattern REPLACE_PATTERN | |
| size | back to summary |
|---|---|
| protected long size | |
| STRIP_PATTERN | back to summary |
|---|---|
| private static final Pattern STRIP_PATTERN | |
| AbstractHttpData | back to summary |
|---|---|
| protected AbstractHttpData(String name, Charset charset, long size) | |
| checkSize | back to summary |
|---|---|
| public void checkSize(long newSize) throws IOException Implements io. Doc from io. Check if the new size is not reaching the max limit allowed. The limit is always computed in terms of bytes.
| |
| content | back to summary |
|---|---|
| public ByteBuf content() Implements io. Doc from io. Return the data which is held by this
| |
| deallocate | back to summary |
|---|---|
| protected void deallocate() Implements abstract io. Doc from io. Called once
| |
| definedLength | back to summary |
|---|---|
| public long definedLength() Implements io. Doc from io. Returns the defined length of the HttpData.
If no Content-Length is provided in the request, the defined length is
always 0 (whatever during decoding or in final state).
If Content-Length is provided in the request, this is this given defined length.
This value does not change, whatever during decoding or in the final state.
This method could be used for instance to know the amount of bytes transmitted for
one particular HttpData, for example one
| |
| getCharset | back to summary |
|---|---|
| public Charset getCharset() Implements io. Doc from io. Returns the Charset passed by the browser or null if not defined. | |
| getMaxSize | back to summary |
|---|---|
| public long getMaxSize() Implements io. Doc from io. Returns the maxSize for this HttpData.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements io. Doc from io. Returns the name of this InterfaceHttpData.
| |
| isCompleted | back to summary |
|---|---|
| public boolean isCompleted() Implements io.
| |
| length | back to summary |
|---|---|
| public long length() Implements io. Doc from io. Returns the size in byte of the InterfaceHttpData
| |
| retain | back to summary |
|---|---|
| public HttpData retain() Overrides io. Implements io. Doc from io. Increases the reference count by
| |
| retain | back to summary |
|---|---|
| public HttpData retain(int increment) Overrides io. Implements io. Doc from io. Increases the reference count by the specified
| |
| setCharset | back to summary |
|---|---|
| public void setCharset(Charset charset) Implements io. Doc from io. Set the Charset passed by the browser if defined | |
| setCompleted | back to summary |
|---|---|
| protected void setCompleted() | |
| setCompleted | back to summary |
|---|---|
| protected void setCompleted(boolean completed) | |
| setMaxSize | back to summary |
|---|---|
| public void setMaxSize(long maxSize) Implements io. Doc from io. Set the maxSize for this HttpData. When limit will be reached, an exception will be raised. Setting it to (-1) means no limitation. By default, to be set from the HttpDataFactory.
| |
| touch | back to summary |
|---|---|
| public abstract HttpData touch() Redeclares io. Overrides io. Doc from io. 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
| |
| touch | back to summary |
|---|---|
| public abstract HttpData touch(Object hint) Redeclares io. Doc from io. 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
| |