cgl.narada.transport.sslHttpBase
Class LinkNegotiatorImpl

java.lang.Object
  extended by cgl.narada.transport.sslHttpBase.LinkNegotiatorImpl
All Implemented Interfaces:
LinkNegotiator
Direct Known Subclasses:
HTTPLinkNegotiator, SSLLinkNegotiator

public abstract class LinkNegotiatorImpl
extends Object
implements LinkNegotiator

Generic channel negotiator implementation using a transport instance. Checks by just making a connection and closing it.

Version:
1.1

Constructor Summary
LinkNegotiatorImpl(Transport transport)
          -----------------------------------------------------------
 
Method Summary
 boolean negotiationResult()
          The signature of this method requires to return rated scale value reflecting how good the link is.
 void setNegotiationProperties(Properties properties)
          -----------------------------------------------------------
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cgl.narada.transport.LinkNegotiator
getLinkNegotiatorType
 

Constructor Detail

LinkNegotiatorImpl

public LinkNegotiatorImpl(Transport transport)
-----------------------------------------------------------

Method Detail

setNegotiationProperties

public void setNegotiationProperties(Properties properties)
-----------------------------------------------------------

Specified by:
setNegotiationProperties in interface LinkNegotiator
Parameters:
properties - The properties needed to set up negotiation.

negotiationResult

public boolean negotiationResult()
The signature of this method requires to return rated scale value reflecting how good the link is. The value is computed according to some heuristics. --Hongbin

Specified by:
negotiationResult in interface LinkNegotiator
Returns:
true If the negotiation was successful, false otherwise.


For comments and suggestions please send e-mail to The NaradaBrokering Project