|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteContextHandler
Interface enabling hiveremoting.caucho users to add and analyse context
information to the actual Caucho payload.
Developers must provide a class that implement this interface and pass an
instance of their class to the hiveremoting.caucho.RemoteServices
configuration-point (for server side) and to
hiveremoting.caucho.CauchoProxyFactory
(for client side).
Please note that the actual way to pass this extra information is not compatible with other Hession/Burlap implementations (it does not use Hessian/Burlap headers, but prefer http headers instead). This may change in a future version of hiveremoting.caucho (to bring higher interoperability).
Method Summary | |
---|---|
void |
extractContext(java.util.Map<java.lang.String,java.lang.String> context)
Called just after a Caucho message is received through the wire. |
void |
initContext(java.util.Map<java.lang.String,java.lang.String> context)
Called just before a Caucho message is sent through the wire. |
Method Detail |
---|
void initContext(java.util.Map<java.lang.String,java.lang.String> context)
This method is used to add context to the payload.
context
- a map to which specific context can be added. Note that
only String values are accepted (any non String value will be silently
dismissed).void extractContext(java.util.Map<java.lang.String,java.lang.String> context)
This method is used to extract context from the payload in order to, ie, check it.
context
- a map containing the specific context that was present in
the payload.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |