| Modifier and Type | Field and Description |
|---|---|
| private Charset | |
| private boolean | |
| protected long | |
| private static final Drop | |
| protected static final byte[] | |
| private long | |
| private final String | |
| private static final Pattern | |
| protected long | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| public void | checkSize(long newSize)
Implements io. |
| protected RuntimeException | |
| 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 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 <E extends Exception> void | usingContent(Helpers.
The file item buffer callback callbackImplements io. |
| charset | back to summary |
|---|---|
| private Charset charset | |
| completed | back to summary |
|---|---|
| private boolean completed | |
| definedSize | back to summary |
|---|---|
| protected long definedSize | |
| drop | back to summary |
|---|---|
| private static final Drop<AbstractHttpData> drop | |
| EMPTY_ARRAY | back to summary |
|---|---|
| protected static final byte[] EMPTY_ARRAY | |
| 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) | |
| AbstractHttpData | back to summary |
|---|---|
| protected AbstractHttpData(AbstractHttpData copy) | |
| checkAccessible | back to summary |
|---|---|
| protected void checkAccessible() | |
| checkAccessible | back to summary |
|---|---|
| protected void checkAccessible(Buffer cleanup) | |
| 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.
| |
| createResourceClosedException | back to summary |
|---|---|
| protected RuntimeException createResourceClosedException() Implements abstract io.
| |
| 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
| |
| 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.
| |
| usingContent | back to summary |
|---|---|
| public <E extends Exception> void usingContent(Helpers. Implements io. Doc from io. Calls the passed callback to operate on the file item as a Buffer. Note this method will allocate a lot of memory, if the data is currently stored on the file system. Buffer ownersip: The ownership of the buffer passed to the callack is not transferred and remains to this HttpData interface.
| |