Java Doc for DefaultContext.java in  » Sevlet-Container » tomcat-catalina » org » apache » catalina » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Sevlet Container » tomcat catalina » org.apache.catalina 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.catalina.DefaultContext

All known Subclasses:   org.apache.catalina.core.StandardDefaultContext,
DefaultContext
public interface DefaultContext (Code)
Used to store the default configuration a Host will use when creating a Context. A Context configured in server.xml can override these defaults by setting the Context attribute override="true".
author:
   Glenn Nielsen
author:
   Remy Maucherat
version:
   $Revision: 1.6 $ $Date: 2004/05/26 15:26:06 $




Method Summary
public  voidaddApplicationListener(String listener)
     Add a new Listener class name to the set of Listeners configured for this application.
public  voidaddApplicationParameter(ApplicationParameter parameter)
     Add a new application parameter for this application.
public  voidaddEjb(ContextEjb ejb)
     Add an EJB resource reference for this web application.
public  voidaddEnvironment(ContextEnvironment environment)
     Add an environment entry for this web application.
public  voidaddInstanceListener(String listener)
     Add the classname of an InstanceListener to be added to each Wrapper appended to this Context.
public  voidaddParameter(String name, String value)
     Add a new context initialization parameter, replacing any existing value for the specified name.
public  voidaddPropertyChangeListener(PropertyChangeListener listener)
     Add a property change listener to this component.
public  voidaddResource(ContextResource resource)
     Add a resource reference for this web application.
public  voidaddResourceEnvRef(String name, String type)
     Add a resource environment reference for this web application.
public  voidaddResourceLink(ContextResourceLink resourceLink)
     Add a resource link for this web application.
public  voidaddResourceParams(ResourceParams resourceParameters)
     Add resource parameters for this web application.
public  voidaddWrapperLifecycle(String listener)
     Add the classname of a LifecycleListener to be added to each Wrapper appended to this Context.
public  voidaddWrapperListener(String listener)
     Add the classname of a ContainerListener to be added to each Wrapper appended to this Context.
public  String[]findApplicationListeners()
     Return the set of application listener class names configured for this application.
public  ApplicationParameter[]findApplicationParameters()
     Return the set of application parameters for this application.
public  ContextEjbfindEjb(String name)
     Return the EJB resource reference with the specified name, if any; otherwise, return null.
public  ContextEjb[]findEjbs()
     Return the defined EJB resource references for this application.
public  ContextEnvironmentfindEnvironment(String name)
     Return the environment entry with the specified name, if any; otherwise, return null.
public  ContextEnvironment[]findEnvironments()
     Return the set of defined environment entries for this web application.
public  String[]findInstanceListeners()
     Return the set of InstanceListener classes that will be added to newly created Wrappers automatically.
public  StringfindParameter(String name)
     Return the value for the specified context initialization parameter name, if any; otherwise return null.
public  String[]findParameters()
     Return the names of all defined context initialization parameters for this Context.
public  ContextResourcefindResource(String name)
     Return the resource reference with the specified name, if any; otherwise return null.
public  StringfindResourceEnvRef(String name)
     Return the resource environment reference type for the specified name, if any; otherwise return null.
public  String[]findResourceEnvRefs()
     Return the set of resource environment reference names for this web application.
public  ContextResourceLinkfindResourceLink(String name)
     Return the resource link with the specified name, if any; otherwise return null.
public  ContextResourceLink[]findResourceLinks()
     Return the defined resource links for this application.
public  ResourceParams[]findResourceParams()
     Return the set of defined resource parameters for this web application.
public  ContextResource[]findResources()
     Return the defined resource references for this application.
public  String[]findWrapperLifecycles()
     Return the set of LifecycleListener classes that will be added to newly created Wrappers automatically.
public  String[]findWrapperListeners()
     Return the set of ContainerListener classes that will be added to newly created Wrappers automatically.
public  booleangetCookies()
     Return the "use cookies for session ids" flag.
public  booleangetCrossContext()
     Return the "allow crossing servlet contexts" flag.
public  StringgetInfo()
     Return descriptive information about this Container implementation and the corresponding version number, in the format <description>/<version>.
public  LoadergetLoader()
     Return the Loader with which this Container is associated.
public  ManagergetManager()
     Return the Manager with which this Container is associated.
public  StringgetName()
    
public  NamingResourcesgetNamingResources()
     Return the naming resources associated with this web application.
public  ContainergetParent()
     Return the Container for which this Container is a child, if there is one.
public  booleangetReloadable()
     Return the reloadable flag for this web application.
public  DirContextgetResources()
     Get the resources DirContext object with which this Container is associated.
public  StringgetWrapperClass()
     Return the Java class name of the Wrapper implementation used for servlets registered in this Context.
public  voidimportDefaultContext(Context context)
     Import the configuration from the DefaultContext into current Context.
public  voidremoveApplicationListener(String listener)
     Remove the specified application listener class from the set of listeners for this application.
public  voidremoveApplicationParameter(String name)
     Remove the application parameter with the specified name from the set for this application.
public  voidremoveEjb(String name)
     Remove any EJB resource reference with the specified name.
public  voidremoveEnvironment(String name)
     Remove any environment entry with the specified name.
public  voidremoveInstanceListener(String listener)
     Remove a class name from the set of InstanceListener classes that will be added to newly created Wrappers.
public  voidremoveParameter(String name)
     Remove the context initialization parameter with the specified name, if it exists; otherwise, no action is taken.
public  voidremovePropertyChangeListener(PropertyChangeListener listener)
     Remove a property change listener from this component.
public  voidremoveResource(String name)
     Remove any resource reference with the specified name.
public  voidremoveResourceEnvRef(String name)
     Remove any resource environment reference with the specified name.
public  voidremoveResourceLink(String name)
     Remove any resource link with the specified name.
public  voidremoveWrapperLifecycle(String listener)
     Remove a class name from the set of LifecycleListener classes that will be added to newly created Wrappers.
public  voidremoveWrapperListener(String listener)
     Remove a class name from the set of ContainerListener classes that will be added to newly created Wrappers.
public  voidsetCookies(boolean cookies)
     Set the "use cookies for session ids" flag.
public  voidsetCrossContext(boolean crossContext)
     Set the "allow crossing servlet contexts" flag.
public  voidsetLoader(Loader loader)
     Set the Loader with which this Context is associated.
public  voidsetManager(Manager manager)
     Set the Manager with which this Container is associated.
public  voidsetName(String name)
     Set the name of the default context.
public  voidsetParent(Container container)
     Set the parent Container to which this Container is being added as a child.
public  voidsetReloadable(boolean reloadable)
     Set the reloadable flag for this web application.
public  voidsetResources(DirContext resources)
     Set the resources DirContext object with which this Container is associated.
public  voidsetWrapperClass(String wrapperClass)
     Set the Java class name of the Wrapper implementation used for servlets registered in this Context.



Method Detail
addApplicationListener
public void addApplicationListener(String listener)(Code)
Add a new Listener class name to the set of Listeners configured for this application.
Parameters:
  listener - Java class name of a listener class



addApplicationParameter
public void addApplicationParameter(ApplicationParameter parameter)(Code)
Add a new application parameter for this application.
Parameters:
  parameter - The new application parameter



addEjb
public void addEjb(ContextEjb ejb)(Code)
Add an EJB resource reference for this web application.
Parameters:
  ejb - New EJB resource reference



addEnvironment
public void addEnvironment(ContextEnvironment environment)(Code)
Add an environment entry for this web application.
Parameters:
  environment - New environment entry



addInstanceListener
public void addInstanceListener(String listener)(Code)
Add the classname of an InstanceListener to be added to each Wrapper appended to this Context.
Parameters:
  listener - Java class name of an InstanceListener class



addParameter
public void addParameter(String name, String value)(Code)
Add a new context initialization parameter, replacing any existing value for the specified name.
Parameters:
  name - Name of the new parameter
Parameters:
  value - Value of the new parameter
exception:
  IllegalArgumentException - if the name or value is missing,or if this context initialization parameter has already beenregistered



addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)
Add a property change listener to this component.
Parameters:
  listener - The listener to add



addResource
public void addResource(ContextResource resource)(Code)
Add a resource reference for this web application.
Parameters:
  resource - New resource reference



addResourceEnvRef
public void addResourceEnvRef(String name, String type)(Code)
Add a resource environment reference for this web application.
Parameters:
  name - The resource environment reference name
Parameters:
  type - The resource environment reference type



addResourceLink
public void addResourceLink(ContextResourceLink resourceLink)(Code)
Add a resource link for this web application.
Parameters:
  resourceLink - New resource link



addResourceParams
public void addResourceParams(ResourceParams resourceParameters)(Code)
Add resource parameters for this web application.
Parameters:
  resourceParameters - New resource parameters



addWrapperLifecycle
public void addWrapperLifecycle(String listener)(Code)
Add the classname of a LifecycleListener to be added to each Wrapper appended to this Context.
Parameters:
  listener - Java class name of a LifecycleListener class



addWrapperListener
public void addWrapperListener(String listener)(Code)
Add the classname of a ContainerListener to be added to each Wrapper appended to this Context.
Parameters:
  listener - Java class name of a ContainerListener class



findApplicationListeners
public String[] findApplicationListeners()(Code)
Return the set of application listener class names configured for this application.



findApplicationParameters
public ApplicationParameter[] findApplicationParameters()(Code)
Return the set of application parameters for this application.



findEjb
public ContextEjb findEjb(String name)(Code)
Return the EJB resource reference with the specified name, if any; otherwise, return null.
Parameters:
  name - Name of the desired EJB resource reference



findEjbs
public ContextEjb[] findEjbs()(Code)
Return the defined EJB resource references for this application. If there are none, a zero-length array is returned.



findEnvironment
public ContextEnvironment findEnvironment(String name)(Code)
Return the environment entry with the specified name, if any; otherwise, return null.
Parameters:
  name - Name of the desired environment entry



findEnvironments
public ContextEnvironment[] findEnvironments()(Code)
Return the set of defined environment entries for this web application. If none have been defined, a zero-length array is returned.



findInstanceListeners
public String[] findInstanceListeners()(Code)
Return the set of InstanceListener classes that will be added to newly created Wrappers automatically.



findParameter
public String findParameter(String name)(Code)
Return the value for the specified context initialization parameter name, if any; otherwise return null.
Parameters:
  name - Name of the parameter to return



findParameters
public String[] findParameters()(Code)
Return the names of all defined context initialization parameters for this Context. If no parameters are defined, a zero-length array is returned.



findResource
public ContextResource findResource(String name)(Code)
Return the resource reference with the specified name, if any; otherwise return null.
Parameters:
  name - Name of the desired resource reference



findResourceEnvRef
public String findResourceEnvRef(String name)(Code)
Return the resource environment reference type for the specified name, if any; otherwise return null.
Parameters:
  name - Name of the desired resource environment reference



findResourceEnvRefs
public String[] findResourceEnvRefs()(Code)
Return the set of resource environment reference names for this web application. If none have been specified, a zero-length array is returned.



findResourceLink
public ContextResourceLink findResourceLink(String name)(Code)
Return the resource link with the specified name, if any; otherwise return null.
Parameters:
  name - Name of the desired resource link



findResourceLinks
public ContextResourceLink[] findResourceLinks()(Code)
Return the defined resource links for this application. If none have been defined, a zero-length array is returned.



findResourceParams
public ResourceParams[] findResourceParams()(Code)
Return the set of defined resource parameters for this web application. If none have been defined, a zero-length array is returned.



findResources
public ContextResource[] findResources()(Code)
Return the defined resource references for this application. If none have been defined, a zero-length array is returned.



findWrapperLifecycles
public String[] findWrapperLifecycles()(Code)
Return the set of LifecycleListener classes that will be added to newly created Wrappers automatically.



findWrapperListeners
public String[] findWrapperListeners()(Code)
Return the set of ContainerListener classes that will be added to newly created Wrappers automatically.



getCookies
public boolean getCookies()(Code)
Return the "use cookies for session ids" flag.



getCrossContext
public boolean getCrossContext()(Code)
Return the "allow crossing servlet contexts" flag.



getInfo
public String getInfo()(Code)
Return descriptive information about this Container implementation and the corresponding version number, in the format <description>/<version>.



getLoader
public Loader getLoader()(Code)
Return the Loader with which this Container is associated. If there is no associated Loader return null.



getManager
public Manager getManager()(Code)
Return the Manager with which this Container is associated. If there is no associated Manager return null.



getName
public String getName()(Code)
Return the name of this DefaultContext



getNamingResources
public NamingResources getNamingResources()(Code)
Return the naming resources associated with this web application.



getParent
public Container getParent()(Code)
Return the Container for which this Container is a child, if there is one. If there is no defined parent, return null.



getReloadable
public boolean getReloadable()(Code)
Return the reloadable flag for this web application.



getResources
public DirContext getResources()(Code)
Get the resources DirContext object with which this Container is associated.



getWrapperClass
public String getWrapperClass()(Code)
Return the Java class name of the Wrapper implementation used for servlets registered in this Context.



importDefaultContext
public void importDefaultContext(Context context)(Code)
Import the configuration from the DefaultContext into current Context.
Parameters:
  context - current web application context



removeApplicationListener
public void removeApplicationListener(String listener)(Code)
Remove the specified application listener class from the set of listeners for this application.
Parameters:
  listener - Java class name of the listener to be removed



removeApplicationParameter
public void removeApplicationParameter(String name)(Code)
Remove the application parameter with the specified name from the set for this application.
Parameters:
  name - Name of the application parameter to remove



removeEjb
public void removeEjb(String name)(Code)
Remove any EJB resource reference with the specified name.
Parameters:
  name - Name of the EJB resource reference to remove



removeEnvironment
public void removeEnvironment(String name)(Code)
Remove any environment entry with the specified name.
Parameters:
  name - Name of the environment entry to remove



removeInstanceListener
public void removeInstanceListener(String listener)(Code)
Remove a class name from the set of InstanceListener classes that will be added to newly created Wrappers.
Parameters:
  listener - Class name of an InstanceListener class to be removed



removeParameter
public void removeParameter(String name)(Code)
Remove the context initialization parameter with the specified name, if it exists; otherwise, no action is taken.
Parameters:
  name - Name of the parameter to remove



removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)(Code)
Remove a property change listener from this component.
Parameters:
  listener - The listener to remove



removeResource
public void removeResource(String name)(Code)
Remove any resource reference with the specified name.
Parameters:
  name - Name of the resource reference to remove



removeResourceEnvRef
public void removeResourceEnvRef(String name)(Code)
Remove any resource environment reference with the specified name.
Parameters:
  name - Name of the resource environment reference to remove



removeResourceLink
public void removeResourceLink(String name)(Code)
Remove any resource link with the specified name.
Parameters:
  name - Name of the resource link to remove



removeWrapperLifecycle
public void removeWrapperLifecycle(String listener)(Code)
Remove a class name from the set of LifecycleListener classes that will be added to newly created Wrappers.
Parameters:
  listener - Class name of a LifecycleListener class to be removed



removeWrapperListener
public void removeWrapperListener(String listener)(Code)
Remove a class name from the set of ContainerListener classes that will be added to newly created Wrappers.
Parameters:
  listener - Class name of a ContainerListener class to be removed



setCookies
public void setCookies(boolean cookies)(Code)
Set the "use cookies for session ids" flag.
Parameters:
  cookies - The new flag



setCrossContext
public void setCrossContext(boolean crossContext)(Code)
Set the "allow crossing servlet contexts" flag.
Parameters:
  crossContext - The new cross contexts flag



setLoader
public void setLoader(Loader loader)(Code)
Set the Loader with which this Context is associated.
Parameters:
  loader - The newly associated loader



setManager
public void setManager(Manager manager)(Code)
Set the Manager with which this Container is associated.
Parameters:
  manager - The newly associated Manager



setName
public void setName(String name)(Code)
Set the name of the default context.
Parameters:
  name - The new name



setParent
public void setParent(Container container)(Code)
Set the parent Container to which this Container is being added as a child. This Container may refuse to become attached to the specified Container by throwing an exception.
Parameters:
  container - Container to which this Container is being addedas a child
exception:
  IllegalArgumentException - if this Container refuses to becomeattached to the specified Container



setReloadable
public void setReloadable(boolean reloadable)(Code)
Set the reloadable flag for this web application.
Parameters:
  reloadable - The new reloadable flag



setResources
public void setResources(DirContext resources)(Code)
Set the resources DirContext object with which this Container is associated.
Parameters:
  resources - The newly associated DirContext



setWrapperClass
public void setWrapperClass(String wrapperClass)(Code)
Set the Java class name of the Wrapper implementation used for servlets registered in this Context.
Parameters:
  wrapperClass - The new wrapper class



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.