org.codehaus.wadi.impl
Class JkRouter
java.lang.Object
org.codehaus.wadi.impl.JkRouter
- All Implemented Interfaces:
- Router
- public class JkRouter
- extends Object
- implements Router
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_log
protected final Log _log
_info
protected final String _info
_suffix
protected final String _suffix
_config
protected RouterConfig _config
JkRouter
public JkRouter(String info)
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 id)
- Description copied from interface:
Router
- Add our routing info to this session id.
- Specified by:
augment
in interface Router
- Parameters:
id
- a String
value
- Returns:
- a
String
value
augment
public String augment(String id,
String target)
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 target)
rerouteURL
public boolean rerouteURL()
rerouteURL
public boolean rerouteURL(String target)
Copyright © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.