|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageSource
Represents the source of an incoming message.
If the message is being delivered in an asychronous method invoking getMessageAsStream()
,
getMessageAsString()
, or getMessageAsString(String)
may return null if the message has not yet
arrived.
Method Summary | |
---|---|
java.lang.String |
getContentCharacterEncoding()
Gets the character encoding of the message, if known. |
long |
getContentLength()
Gets the length, in bytes, of the message. |
java.lang.String |
getContentType()
Gets the MIME type of the message, if known. |
java.io.InputStream |
getMessageAsStream()
Gets the message, if available, as a stream. |
java.lang.String |
getMessageAsString()
Gets the message, if available, as a string encoded using the encoding type provided by getContentCharacterEncoding() or UTF-8 if the encoding type is not known. |
java.lang.String |
getMessageAsString(java.lang.String encoding)
Gets the message, if available as an encoded string. |
boolean |
isPeerAuthenticated()
Gets whether the communication peer was authenticated. |
Method Detail |
---|
boolean isPeerAuthenticated()
java.lang.String getContentCharacterEncoding()
long getContentLength()
java.lang.String getContentType()
java.io.InputStream getMessageAsStream()
java.lang.String getMessageAsString()
getContentCharacterEncoding()
or UTF-8 if the encoding type is not known.
java.lang.String getMessageAsString(java.lang.String encoding)
encoding
- character encoding to use when creating the string
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |