public class F5Blender extends Blender
This Dummy blender supports only plain blending without an offset.
Constructor and Description |
---|
F5Blender(String section)
A dummy blender implementation.
|
F5Blender(String identity,
BlendingReceiver router,
IdentityStore identityStore,
BlenderGenerator blender)
Creates a passthru blender which abstracts a local transport media.
|
Modifier and Type | Method and Description |
---|---|
boolean |
blendMessage(BlendingSpec target,
VortexMessage msg)
This method is called by the router layer to blend a message.
|
byte[] |
blendMessageToBytes(BlendingSpec nextHop,
VortexMessage msg)
Blends a VortexMessage into the apropriate text.
|
String |
getBlendingAddress()
Returns the address supported for blender.
|
boolean |
gotMessage(InputStream is)
This Method is called by the TransportSender layer if a possible vmessage has arrived.
|
VortexMessage |
unblendMessage(byte[] blendedMessage)
Extracts a vortexMessage from a blended message.
|
getTransportSender, getVerifier, setBlenderReceiver, setIncomingMessageListener, setTransportSender, setVerifier
shutdownDaemon, startDaemon, stopDaemon
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shutdownDaemon, startDaemon, stopDaemon
public F5Blender(String section) throws IOException
A dummy blender implementation.
section
- the config foile section to be used to configureIOException
- if anything fails :-Dpublic F5Blender(String identity, BlendingReceiver router, IdentityStore identityStore, BlenderGenerator blender) throws IOException
Creates a passthru blender which abstracts a local transport media.
identity
- the identity (receiver/sender address)router
- the router layer to be usedidentityStore
- the identity store to be used (for decryption of headers)blender
- the blender generator used to blend messagesIOException
- if anything fails :-Dpublic String getBlendingAddress()
Blender
Returns the address supported for blender.
The address is specified by <transport><address>!<publickey>.
getBlendingAddress
in class Blender
public byte[] blendMessageToBytes(BlendingSpec nextHop, VortexMessage msg)
Blender
Blends a VortexMessage into the apropriate text.
blendMessageToBytes
in class Blender
nextHop
- the blending spec for the recipientmsg
- the message to be blendedpublic VortexMessage unblendMessage(byte[] blendedMessage)
Blender
Extracts a vortexMessage from a blended message.
unblendMessage
in class Blender
blendedMessage
- the blended messagepublic boolean blendMessage(BlendingSpec target, VortexMessage msg)
Blender
This method is called by the router layer to blend a message.
blendMessage
in interface BlendingSender
blendMessage
in class Blender
msg
- the message to be blendedpublic boolean gotMessage(InputStream is)
TransportReceiver
This Method is called by the TransportSender layer if a possible vmessage has arrived.
The message (if any) is decoded, verified and (if successful) passed on to the router layer in a separate thread (@see IncommingMessageRouterListener).
is
- the InputStream containing a possible messageCopyright © 2023. All rights reserved.