|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RpcMethod
An interface representing an RPC method that can be marshalled to
an OutputStream
.
This is the base interface for calls and responses.
RpcCall
,
RpcResponse
Method Summary | |
---|---|
java.lang.String |
getContentType()
Called to get the value for the Content-Type
HTTP header. |
void |
marshal(java.io.OutputStream out,
java.nio.charset.Charset charSet)
Marshal the current instance to an OutputStream
encoded using the specified character set. |
Method Detail |
---|
void marshal(java.io.OutputStream out, java.nio.charset.Charset charSet) throws java.io.IOException, MarshallingException
OutputStream
encoded using the specified character set.
Implementations are free to ignore the character set but only if a character set has been agreed upon in advance by both sides.
out
- The OutputStream
to marshal
this instance to.charSet
- The character set to use when encoding
the marshalled form of this instance. When
this interface is invoked by an
HttpRpcProcessor
this is the value that will be sent as part of the
Content-Type
HTTP header.
java.io.IOException
- if an error occurs while storing the marshalled
form of this instance out this instance.
MarshallingException
- if an error occurs while marshalling this instance.java.lang.String getContentType()
Content-Type
HTTP header.
This is used when constructing requests and responses, and when validating requests and responses.
Content-Type
string description
without the charset
attribute.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |