HttpContent implementation.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public DefaultHttpContent | copy()
Implements io. |
| public boolean | |
| public Buffer | payload()
Implements io. Buffer representing the payload of the HTTP message.
|
| public Send | send()
Implements io. |
| public String | |
| public DefaultHttpContent | touch(Object
An optional hint about this access and its context. May be hint)null.Overrides default io. |
| payload | back to summary |
|---|---|
| private final Buffer payload | |
| DefaultHttpContent | back to summary |
|---|---|
| public DefaultHttpContent(Buffer payload) Creates a new instance with the specified chunk content. | |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from io. Close the resource, making it inaccessible. Note, this method is not thread-safe unless otherwise specified.
| |
| copy | back to summary |
|---|---|
| public DefaultHttpContent copy() Implements io. Doc from io. Create a copy of this HTTP content instance, and return it.
| |
| isAccessible | back to summary |
|---|---|
| public boolean isAccessible() Implements io. Doc from io. Check if this object is accessible. | |
| payload | back to summary |
|---|---|
| public Buffer payload() Implements io. Doc from io. Returns the | |
| send | back to summary |
|---|---|
| public Send Implements io. Doc from io. Send this object instance to another Thread, transferring the ownership to the recipient. The object must be in a state where it can be sent, which includes at least being accessible. When sent, this instance will immediately become inaccessible, as if by closing it. All attempts at accessing an object that has been sent, even if that object has not yet been received, should cause an exception to be thrown.
Calling
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| touch | back to summary |
|---|---|
| public DefaultHttpContent touch(Object hint) Overrides default io. Doc from io. Record the current access location for debugging purposes. This information may be included if the resource throws a life-cycle related exception, or if it leaks. If this resource has already been closed, then this method has no effect.
| |