| java.lang.Object org.itsnat.core.ItsNat
All known Subclasses: org.itsnat.impl.core.http.ItsNatImpl,
ItsNat | abstract public class ItsNat implements ItsNatUserData(Code) | | Is the root class of the ItsNat infrastructure. It works as a root factory
because almost every ItsNat object is created directed or indirectly using this
class.
The feature registry, (
ItsNat.getFeature(String) and
ItsNat.setFeature(String,Object) )
may be used to setup ItsNat. Current implementation
does not define any default configurable feature.
author: Jose Maria Arranz Santamaria |
Constructor Summary | |
public | ItsNat() |
Method Summary | |
abstract public ItsNatServlet | createItsNatServlet(Servlet servlet) Creates a new ItsNat servlet wrapping the specified servlet object.
Current implementation only supports javax.servlet.http.HttpServlet servlets,
and returns
org.itsnat.core.http.ItsNatHttpServlet objects.
Parameters: servlet - the servlet to wrap. | public static ItsNat | get() Returns the default instance (a singleton) of the default implementation. | abstract public Object | getFeature(String name) Returns the feature value of given name.
Parameters: name - the feature name to search. | abstract public Object | setFeature(String name, Object value) Sets the feature value of given name.
Parameters: name - the feature name. Parameters: value - the feature value. |
ItsNat | public ItsNat()(Code) | | Creates a new instance of ItsNat
|
get | public static ItsNat get()(Code) | | Returns the default instance (a singleton) of the default implementation.
the singleton instance. |
getFeature | abstract public Object getFeature(String name)(Code) | | Returns the feature value of given name.
Parameters: name - the feature name to search. the feature value, null if not found. |
setFeature | abstract public Object setFeature(String name, Object value)(Code) | | Sets the feature value of given name.
Parameters: name - the feature name. Parameters: value - the feature value. the previous feature value if defined or null. |
|
|