Project JXTA

net.jxta.impl.endpoint.tls
Class TlsTransport.TlsLoopbackMessenger

java.lang.Object
  extended by net.jxta.util.AbstractSimpleSelectable
      extended by net.jxta.endpoint.AbstractMessenger
          extended by net.jxta.impl.endpoint.BlockingMessenger
              extended by net.jxta.impl.endpoint.LoopbackMessenger
                  extended by net.jxta.impl.endpoint.tls.TlsTransport.TlsLoopbackMessenger
All Implemented Interfaces:
Messenger, SimpleSelectable
Enclosing class:
TlsTransport

 class TlsTransport.TlsLoopbackMessenger
extends LoopbackMessenger

Extends LoopbackMessenger to add a message property to passed messages so that TLS pipes and other users can be sure that the message originate with the local TLS transport.


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.jxta.util.SimpleSelectable
SimpleSelectable.IdentityReference
 
Field Summary
 
Fields inherited from class net.jxta.endpoint.AbstractMessenger
DEFAULT_MTU, dstAddress
 
Fields inherited from class net.jxta.util.AbstractSimpleSelectable
identityReference
 
Fields inherited from interface net.jxta.endpoint.Messenger
ANYSTATE, BREAKING, BROKEN, CLOSED, CLOSING, CONNECTED, DISCONNECTED, DISCONNECTING, IDLE, RECONCLOSING, RECONNECTING, RECONSATURATED, RESOLCLOSING, RESOLPENDING, RESOLSATURATED, RESOLVED, RESOLVING, SATURATED, SENDING, SENDINGSATURATED, TERMINAL, UNRESOLVABLE, UNRESOLVED, UNRESOLVING, USABLE
 
Constructor Summary
TlsTransport.TlsLoopbackMessenger(EndpointService ep, EndpointAddress src, EndpointAddress dest, EndpointAddress logicalDest)
           
 
Method Summary
 boolean sendMessageBImpl(Message message, String service, String serviceParam)
          Sends a message to the destination
 
Methods inherited from class net.jxta.impl.endpoint.LoopbackMessenger
closeImpl, getLogicalDestinationImpl, isIdleImpl
 
Methods inherited from class net.jxta.impl.endpoint.BlockingMessenger
close, getChannelMessenger, getDestAddressToUse, getLogicalDestinationAddress, getState, isClosed, resolve, sendMessageB, sendMessageN, setOwner, shutdown
 
Methods inherited from class net.jxta.endpoint.AbstractMessenger
flush, getDestinationAddress, getDestinationAddressObject, getMTU, isIdle, isSynchronous, itemChanged, sendMessage, sendMessage, sendMessage, setStateLock, waitState
 
Methods inherited from class net.jxta.util.AbstractSimpleSelectable
getIdentityReference, haveListeners, notifyChange, register, registerListener, unregister, unregisterListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.jxta.util.SimpleSelectable
getIdentityReference, register, unregister
 

Constructor Detail

TlsTransport.TlsLoopbackMessenger

TlsTransport.TlsLoopbackMessenger(EndpointService ep,
                                  EndpointAddress src,
                                  EndpointAddress dest,
                                  EndpointAddress logicalDest)
Method Detail

sendMessageBImpl

public boolean sendMessageBImpl(Message message,
                                String service,
                                String serviceParam)
                         throws IOException
Sends a message to the destination

Overrides:
sendMessageBImpl in class LoopbackMessenger
Parameters:
message - the message to send.
service - Optionally replaces the service in the destination address. If null then the destination address's default service will be used.
serviceParam - Optionally replaces the service param in the destination address. If null then the destination address's default service parameter will be used.
Throws:
IOException

JXTA J2SE