org.ow2.jonas.web.tomcat6.ws.strategy
Class FixedContextNamingStrategy

java.lang.Object
  extended by org.ow2.jonas.web.tomcat6.ws.strategy.FixedContextNamingStrategy
All Implemented Interfaces:
IContextNamingStrategy

public class FixedContextNamingStrategy
extends Object
implements IContextNamingStrategy

The FixedContextNamingStrategy simply return the web context name that has been assigned to this strategy.

Author:
Guillaume Sauthier

Constructor Summary
FixedContextNamingStrategy()
           
FixedContextNamingStrategy(String contextName)
           
 
Method Summary
 String getContextName(IContextNamingInfo info)
          Creates a context name (web server root / context root).
 void setContextName(String contextName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedContextNamingStrategy

public FixedContextNamingStrategy()

FixedContextNamingStrategy

public FixedContextNamingStrategy(String contextName)
Method Detail

setContextName

public void setContextName(String contextName)

getContextName

public String getContextName(IContextNamingInfo info)
                      throws ContextNamingStrategyException
Creates a context name (web server root / context root).

Specified by:
getContextName in interface IContextNamingStrategy
Parameters:
info - used to determine the context name.
Returns:
a context name
Throws:
ContextNamingStrategyException


Copyright © 2010 OW2 Consortium. All Rights Reserved.