|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Message
Interface exposing all necessary methods a Message must have.
| Field Summary | |
|---|---|
static java.lang.String |
BASE64_TRANSFER_ENCODING
Value for base64 transfer encoding. |
static java.lang.String |
BINARY_TRANSFER_ENCODING
Value for binary transfer encoding. |
static java.lang.String |
CONTENT_TRANSFER_ENCODING
Canonical name of the Content-Transfer-Encoding header. |
static java.lang.String |
CONTENT_TYPE
Canonical name of the Content-Type header. |
| Method Summary | |
|---|---|
java.nio.ByteBuffer |
asByteBuffer()
Writes the complete message (headers and content) into a ByteBuffer, which can then be used to send the message over the network. |
java.nio.ByteBuffer |
getContentBuffer()
Gets the content as a ByteBuffer. |
java.lang.String |
getContentType()
Gets the content type of the message. |
java.lang.String |
getHeader(java.lang.String name)
Gets the value of the header with the given name. |
java.util.Iterator<java.lang.String> |
getHeaderNames()
Gets the list of all defined header names. |
java.io.InputStream |
getInputStream()
Gets an InputStream to read the content of the message. |
java.io.Reader |
getReader()
Gets a Reader to read the content of the message. |
java.io.Reader |
getReader(java.lang.String charset)
Gets a Reader to read the content of the message. |
| Field Detail |
|---|
static final java.lang.String CONTENT_TYPE
static final java.lang.String CONTENT_TRANSFER_ENCODING
static final java.lang.String BINARY_TRANSFER_ENCODING
static final java.lang.String BASE64_TRANSFER_ENCODING
| Method Detail |
|---|
java.lang.String getContentType()
java.util.Iterator<java.lang.String> getHeaderNames()
java.lang.String getHeader(java.lang.String name)
name - the name of the header
java.io.InputStream getInputStream()
getReader() method, which
returns a fully configured Reader.
java.io.Reader getReader()
java.io.Reader getReader(java.lang.String charset)
charset - the name of the charset
java.nio.ByteBuffer getContentBuffer()
java.nio.ByteBuffer asByteBuffer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||