org.codehaus.wadi
Interface Router

All Known Implementing Classes:
DummyRouter, JkRouter

public interface Router


Method Summary
 String augment(String session)
          Add our routing info to this session id.
 void destroy()
           
 void init(RouterConfig config)
           
 boolean reroute(InvocationContext invocationContext)
          Is this Router sufficiently integrated with its corresponding load-balancer as to be able to 'stick' subsequent requests for the same session to this node?
 String strip(String session)
          Strip any routing info from this session id.
 

Method Detail

init

public void init(RouterConfig config)

destroy

public void destroy()

strip

public String strip(String session)
Strip any routing info from this session id.

Parameters:
session - a String value
Returns:
a String value

augment

public String augment(String session)
Add our routing info to this session id.

Parameters:
session - a String value
Returns:
a String value

reroute

public boolean reroute(InvocationContext invocationContext)
Is this Router sufficiently integrated with its corresponding load-balancer as to be able to 'stick' subsequent requests for the same session to this node?

Returns:
a boolean value


Copyright © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.