org.codehaus.wadi.impl
Class DummyRouter

java.lang.Object
  extended byorg.codehaus.wadi.impl.DummyRouter
All Implemented Interfaces:
Router

public class DummyRouter
extends Object
implements Router


Field Summary
protected  RouterConfig _config
           
 
Constructor Summary
DummyRouter()
           
 
Method Summary
 String augment(String session)
          Add our routing info to this session id.
 boolean canReroute()
           
 void destroy()
           
 String getInfo()
           
 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?
 boolean rerouteCookie(HttpServletRequest req, HttpServletResponse res, String id)
           
 boolean rerouteCookie(HttpServletRequest req, HttpServletResponse res, String id, String route)
           
 boolean rerouteURL()
           
 boolean rerouteURL(String target)
           
 String strip(String session)
          Strip any routing info from this session id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_config

protected RouterConfig _config
Constructor Detail

DummyRouter

public DummyRouter()
Method Detail

init

public void init(RouterConfig config)
Specified by:
init in interface Router

destroy

public void destroy()
Specified by:
destroy in interface Router

strip

public String strip(String session)
Description copied from interface: Router
Strip any routing info from this session id.

Specified by:
strip in interface Router
Parameters:
session - a String value
Returns:
a String value

augment

public String augment(String session)
Description copied from interface: Router
Add our routing info to this session id.

Specified by:
augment in interface Router
Parameters:
session - a String value
Returns:
a String value

getInfo

public String getInfo()

canReroute

public boolean canReroute()

reroute

public boolean reroute(InvocationContext invocationContext)
Description copied from interface: Router
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?

Specified by:
reroute in interface Router
Returns:
a boolean value

rerouteCookie

public boolean rerouteCookie(HttpServletRequest req,
                             HttpServletResponse res,
                             String id)

rerouteCookie

public boolean rerouteCookie(HttpServletRequest req,
                             HttpServletResponse res,
                             String id,
                             String route)

rerouteURL

public boolean rerouteURL()

rerouteURL

public boolean rerouteURL(String target)


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