org.codehaus.wadi.impl
Class JkRouter

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

public class JkRouter
extends Object
implements Router


Field Summary
protected  RouterConfig _config
           
protected  String _info
           
protected  Log _log
           
protected  String _suffix
           
 
Constructor Summary
JkRouter(String info)
           
 
Method Summary
 String augment(String id)
          Add our routing info to this session id.
 String augment(String id, String target)
           
 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 target)
           
 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

_log

protected final Log _log

_info

protected final String _info

_suffix

protected final String _suffix

_config

protected RouterConfig _config
Constructor Detail

JkRouter

public JkRouter(String info)
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 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.