Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Page 1   2   3  
org.apache.catalina.ant.* (29)org.apache.catalina.authenticator.* (10)
org.apache.catalina.cluster.* (81)org.apache.catalina.connector.* (16)
org.apache.catalina.core.* (28)org.apache.catalina.deploy.* (18)
org.apache.catalina.hostmanager.* (3)org.apache.catalina.launcher.* (1)
org.apache.catalina.loader.* (7)org.apache.catalina.manager.* (6)

org.apache.catalina: Javadoc index of package org.apache.catalina.


Package Samples:

org.apache.catalina.ant.jmx: This package contains a set of Task implementations for Ant (version 1.6.x or later) that can be used to interact with the Manager application to deploy, undeploy, list, reload, start and stop web applications from a running instance of Tomcat.  
org.apache.catalina.cluster.util: This package contains code for Clustering, the base class of a Cluster is org.apache.catalina.Cluster implementations of this class is done when implementing a new Cluster protocol  
org.apache.catalina.ant
org.apache.catalina.authenticator
org.apache.catalina.connector
org.apache.catalina.core
org.apache.catalina.deploy
org.apache.catalina.launcher
org.apache.catalina.loader
org.apache.catalina.cluster.deploy
org.apache.catalina.cluster.io
org.apache.catalina.cluster.mcast
org.apache.catalina.cluster.session
org.apache.catalina.cluster.tcp
org.apache.catalina.cluster
org.apache.catalina.manager
org.apache.catalina.hostmanager

Classes:

MIME2Java: MIME2Java is a convenience class which handles conversions between MIME charset names and Java encoding names. The supported XML encodings are the intersection of XML-supported code sets and those supported in JDK 1.1. MIME charset names are used on xmlEncoding parameters to methods such as TXDocument#setEncoding and DTD#setEncoding . Java encoding names are used on encoding parameters to methods such as TXDocument#printWithFormat and DTD#printExternal . Common Name Use this name in XML files Name Type Xerces converts to this Java Encoder Name 8 bit Unicode UTF-8 IANA UTF8 ISO Latin 1 ISO-8859-1 ...
CGIServlet: CGI-invoking servlet for web applications, used to execute scripts which comply to the Common Gateway Interface (CGI) specification and are named in the path-info used to invoke this servlet. Note: This code compiles and even works for simple CGI cases. Exhaustive testing has not been done. Please consider it beta quality. Feedback is appreciated to the author (see below). Example : If an instance of this servlet was mapped (using <web-app>/WEB-INF/web.xml ) to: <web-app>/cgi-bin/* then the following request: http://localhost:8080/<web-app>/cgi-bin/dir1/script/pathinfo1 would ...
JNDIRealm: Implementation of Realm that works with a directory server accessed via the Java Naming and Directory Interface (JNDI) APIs. The following constraints are imposed on the data structure in the underlying directory server: Each user that can be authenticated is represented by an individual element in the top level DirContext that is accessed via the connectionURL property. If a socket connection can not be made to the connectURL an attempt will be made to use the alternateURL if it exists. Each user element has a distinguished name that can be formed by substituting the presented username into a ...
ManagerServlet: Servlet that enables remote management of the web applications installed within the same virtual host as this web application is. Normally, this functionality will be protected by a security constraint in the web application deployment descriptor. However, this requirement can be relaxed during testing. This servlet examines the value returned by getPathInfo() and related query parameters to determine what action is being requested. The following actions and parameters (starting after the servlet path) are supported: /deploy?config={config-url} - Install and start a new web application, based on ...
JAASRealm: Implmentation of Realm that authenticates users via the Java Authentication and Authorization Service (JAAS). JAAS support requires either JDK 1.4 (which includes it as part of the standard platform) or JDK 1.3 (with the plug-in jaas.jar file). The value configured for the appName property is passed to the javax.security.auth.login.LoginContext constructor, to specify the application name used to select the set of relevant LoginModules required. The JAAS Specification describes the result of a successful login as a javax.security.auth.Subject instance, which can contain zero or more java.security.Principal ...
ExtendedAccessLogValve: An implementation of the W3c Extended Log File Format. See http://www.w3.org/TR/WD-logfile.html for more information about the format. The following fields are supported: c-dns : Client hostname c-ip : Client ip address bytes : bytes served cs-method : request method cs-uri : The full uri requested cs-uri-query : The query string cs-uri-stem : The uri without query string date : The date in yyyy-mm-dd format for GMT s-dns : The server dns entry s-ip : The server ip address cs(XXX) : The value of header XXX from client to server sc(XXX) : The value of header XXX from server to client sc-status : ...
Container: A Container is an object that can execute requests received from a client, and return responses based on those requests. A Container may optionally support a pipeline of Valves that process the request in an order configured at runtime, by implementing the Pipeline interface as well. Containers will exist at several conceptual levels within Catalina. The following examples represent common cases: Engine - Representation of the entire Catalina servlet engine, most likely containing one or more subcontainers that are either Host or Context implementations, or other custom groups. Host - Representation ...
Embedded: Convenience class to embed a Catalina servlet container environment inside another application. You must call the methods of this class in the following order to ensure correct operation. Instantiate a new instance of this class. Set the relevant properties of this object itself. In particular, you will want to establish the default Logger to be used, as well as the default Realm if you are using container-managed security. Call createEngine() to create an Engine object, and then call its property setters as desired. Call createHost() to create at least one virtual Host associated with the newly ...
AccessLogValve: Implementation of the Valve interface that generates a web server access log with the detailed line contents matching a configurable pattern. The syntax of the available patterns is similar to that supported by the Apache mod_log_config module. As an additional feature, automatic rollover of log files when the date changes is also supported. Patterns for the logged message may include constant text or any of the following replacement strings, for which the corresponding information from the specified Response is substituted: %a - Remote IP address %A - Local IP address %b - Bytes sent, excluding ...
JMXAccessorCondition: Definition : <path id="catalina_ant"> <fileset dir="${catalina.home}/server/lib"> <include name="catalina-ant.jar"/> <include name="catalina-ant-jmx.jar"/> </fileset> </path> <typedef name="jmxCondition" classname="org.apache.catalina.ant.jmx.JMXAccessorCondition" classpathref="catalina_ant"/> <taskdef name="jmxOpen" classname="org.apache.catalina.ant.jmx.JMXAccessorTask" classpathref="catalina_ant"/> Usage : Wait for start backup node <target name="wait"> <jmxOpen host="${jmx.host}" port="${jmx.port}" username="${jmx.username}" password="${jmx.password}" /> ...
JDBCAccessLogValve: This Tomcat extension logs server access directly to a database, and can be used instead of the regular file-based access log implemented in AccessLogValve. To use, copy into the server/classes directory of the Tomcat installation and configure in server.xml as: <Valve className="AccessLogDBValve" driverName=" your_jdbc_driver " connectionURL=" your_jdbc_url " pattern="combined" resolveHosts="false" /> Many parameters can be configured, such as the database connection (with driverName and connectionURL ), the table name ( tableName ) and the field names (corresponding to the get/set method ...
ContainerBase: Abstract implementation of the Container interface, providing common functionality required by nearly every implementation. Classes extending this base class must implement getInfo() , and may implement a replacement for invoke() . All subclasses of this abstract base class will include support for a Pipeline object that defines the processing to be performed for each request received by the invoke() method of this class, utilizing the "Chain of Responsibility" design pattern. A subclass should encapsulate its own processing functionality as a Valve , and configure this Valve into the pipeline ...
HostManagerServlet: Servlet that enables remote management of the virtual hosts installed on the server. Normally, this functionality will be protected by a security constraint in the web application deployment descriptor. However, this requirement can be relaxed during testing. This servlet examines the value returned by getPathInfo() and related query parameters to determine what action is being requested. The following actions and parameters (starting after the servlet path) are supported: /add?name={host-name}&aliases={host-aliases}&manager={manager} - Create and add a new virtual host. The host-name attribute ...
Tool: General purpose wrapper for command line tools that should execute in an environment with the common class loader environment set up by Catalina. This should be executed from a command line script that conforms to the following requirements: Passes the catalina.home system property configured with the pathname of the Tomcat installation directory. Sets the system classpath to include bootstrap.jar and $JAVA_HOME/lib/tools.jar . The command line to execute the tool looks like: java -classpath $CLASSPATH org.apache.catalina.startup.Tool \ ${options} ${classname} ${arguments} with the following replacement ...
JvmRouteBinderValve: Valve to handle Tomcat jvmRoute takeover using mod_jk module after node failure. After a node crashed the next request going to other cluster node. Now the answering from apache is slower ( make some error handshaking. Very bad with apache at my windows.). We rewrite now the cookie jsessionid information to the backup cluster node. After the next response all client request goes direct to the backup node. The change sessionid send also to all other cluster nodes. Well, now the session stickyness work directly to the backup node and traffic don't go back too restarted cluster nodes! At all cluster ...
JMXAccessorInvokeTask: Access JMX JSR 160 MBeans Server. open more then one JSR 160 rmi connection Get/Set Mbeans attributes Call Mbean Operation with arguments Argument values can be converted from string to int,long,float,double,boolean,ObjectName or InetAddress Query Mbeans Show Get, Call, Query result at Ant console log Bind Get, Call, Query result at Ant properties Examples: Get a session attribute hello from session with ref ${sessionid.0} form app Catalina:type=Manager,path=/ClusterTest,host=localhost <jmx:invoke name="Catalina:type=Manager,path=/ClusterTest,host=localhost" operation="getSessionAttribute" resultproperty="hello"> ...
WebappClassLoader: Specialized web application class loader. This class loader is a full reimplementation of the URLClassLoader from the JDK. It is desinged to be fully compatible with a normal URLClassLoader , although its internal behavior may be completely different. IMPLEMENTATION NOTE - This class loader faithfully follows the delegation model recommended in the specification. The system class loader will be queried first, then the local repositories, and only then delegation to the parent class loader will occur. This allows the web application to override any shared class except the classes from J2SE. Special ...
RequestFilterValve: Implementation of a Valve that performs filtering based on comparing the appropriate request property (selected based on which subclass you choose to configure into your Container's pipeline) against a set of regular expressions configured for this Valve. This valve is configured by setting the allow and/or deny properties to a comma-delimited list of regular expressions (in the syntax supported by the jakarta-regexp library) to which the appropriate request property will be compared. Evaluation proceeds as follows: The subclass extracts the request property to be filtered, and calls the common ...
Loader: A Loader represents a Java ClassLoader implementation that can be used by a Container to load class files (within a repository associated with the Loader) that are designed to be reloaded upon request, as well as a mechanism to detect whether changes have occurred in the underlying repository. In order for a Loader implementation to successfully operate with a Context implementation that implements reloading, it must obey the following constraints: Must implement Lifecycle so that the Context can indicate that a new class loader is required. The start() method must unconditionally create a new ...
JAASMemoryLoginModule: Implementation of the JAAS LoginModule interface, primarily for use in testing JAASRealm . It utilizes an XML-format data file of username/password/role information identical to that supported by org.apache.catalina.realm.MemoryRealm (except that digested passwords are not supported). This class recognizes the following string-valued options, which are specified in the configuration file (and passed to our constructor in the options argument: debug - Set to "true" to get debugging messages generated to System.out. The default value is false . pathname - Relative (to the pathname specified by the ...
JMXAccessorEqualsCondition: Definition <path id="catalina_ant"> <fileset dir="${catalina.home}/server/lib"> <include name="catalina-ant.jar"/> <include name="catalina-ant-jmx.jar"/> </fileset> </path> <typedef name="jmxEquals" classname="org.apache.catalina.ant.jmx.JMXAccessorEqualsCondition" classpathref="catalina_ant"/> usage: Wait for start backup node <target name="wait"> <waitfor maxwait="${maxwait}" maxwaitunit="second" timeoutproperty="server.timeout" > <and> <socket server="${server.name}" port="${server.port}"/> <http url="${url}"/> <jmxEquals host="localhost" ...
JMXAccessorTask: Access JMX JSR 160 MBeans Server. open more then one JSR 160 rmi connection Get/Set Mbeans attributes Call Mbean Operation with arguments Argument values can be converted from string to int,long,float,double,boolean,ObjectName or InetAddress Query Mbeans Show Get, Call, Query result at Ant console log Bind Get, Call, Query result at Ant properties Examples: open server with reference and autorisation <jmxOpen host="127.0.0.1" port="9014" username="monitorRole" password="mysecret" ref="jmx.myserver" /> All calls after opening with same refid ...
Engine: An Engine is a Container that represents the entire Catalina servlet engine. It is useful in the following types of scenarios: You wish to use Interceptors that see every single request processed by the entire engine. You wish to run Catalina in with a standalone HTTP connector, but still want support for multiple virtual hosts. In general, you would not use an Engine when deploying Catalina connected to a web server (such as Apache), because the Connector will have utilized the web server's facilities to determine which Context (or perhaps even which Wrapper) should be utilized to process this ...
FastAsyncSocketSender: Send cluster messages from a Message queue with only one socket. Ack and keep Alive Handling is supported. Fast Queue can limit queue size and consume all messages at queue at one block. Limit the queue lock contention under high load! With autoConnect=false at ReplicationTransmitter, you can disconnect the sender and all messages are queued. Only use this for small maintaince isuses! waitForAck=true, means that receiver ack the transfer after one minute idle time, or number of request (100) the connection is reconnected with next request. Change this for production use! default ackTimeout is 15 ...
Server: A Server element represents the entire Catalina servlet container. Its attributes represent the characteristics of the servlet container as a whole. A Server may contain one or more Services , and the top level set of naming resources. Normally, an implementation of this interface will also implement Lifecycle , such that when the start() and stop() methods are called, all of the defined Services are also started or stopped. In between, the implementation must open a server socket on the port number specified by the port property. When a connection is accepted, the first line is read and compared ...

Home | Contact Us | Privacy Policy | Terms of Service