org.codehaus.wadi.impl
Class DummyRouter
java.lang.Object
org.codehaus.wadi.impl.DummyRouter
- All Implemented Interfaces:
- Router
- public class DummyRouter
- extends Object
- implements Router
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_config
protected RouterConfig _config
DummyRouter
public DummyRouter()
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.