net.sf.j2ep.servers
Class ServerContainerBase

java.lang.Object
  extended by net.sf.j2ep.servers.ServerContainerBase
All Implemented Interfaces:
ServerContainer
Direct Known Subclasses:
BaseServer, ClusterContainer

public abstract class ServerContainerBase
extends java.lang.Object
implements ServerContainer

A base container that will only handle the setting and getting of rules.

Author:
Anders Nyman

Constructor Summary
ServerContainerBase()
           
 
Method Summary
 Rule getRule()
          Returns the mapped rule.
 void setRule(Rule rule)
          Sets the rule that is mapped for this server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.j2ep.model.ServerContainer
getServer, getServerMapped
 

Constructor Detail

ServerContainerBase

public ServerContainerBase()
Method Detail

getRule

public Rule getRule()
Description copied from interface: ServerContainer
Returns the mapped rule. This method must return the same rule as a call to the underlying servers getRule().

Specified by:
getRule in interface ServerContainer
Returns:
The rule we are mapped to
See Also:
ServerContainer.getRule()

setRule

public void setRule(Rule rule)
Description copied from interface: ServerContainer
Sets the rule that is mapped for this server. Will be used when we rewrite links to know how a absolute path should be rewritten.

Specified by:
setRule in interface ServerContainer
Parameters:
rule - The rule
See Also:
ServerContainer.setRule(net.sf.j2ep.model.Rule)