Partial fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=48132
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 5 Nov 2009 00:58:58 +0000 (00:58 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 5 Nov 2009 00:58:58 +0000 (00:58 +0000)
Patch provided by sebb

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@832945 13f79535-47bb-0310-9956-ffa450edef68

215 files changed:
java/org/apache/catalina/ContainerEvent.java
java/org/apache/catalina/LifecycleException.java
java/org/apache/catalina/SessionEvent.java
java/org/apache/catalina/ant/AbstractCatalinaTask.java
java/org/apache/catalina/ant/BaseRedirectorHelperTask.java
java/org/apache/catalina/ant/DeployTask.java
java/org/apache/catalina/ant/JKStatusUpdateTask.java
java/org/apache/catalina/ant/JMXGetTask.java
java/org/apache/catalina/ant/JMXQueryTask.java
java/org/apache/catalina/ant/JMXSetTask.java
java/org/apache/catalina/ant/ListTask.java
java/org/apache/catalina/ant/ReloadTask.java
java/org/apache/catalina/ant/ResourcesTask.java
java/org/apache/catalina/ant/RolesTask.java
java/org/apache/catalina/ant/ServerinfoTask.java
java/org/apache/catalina/ant/SessionsTask.java
java/org/apache/catalina/ant/StartTask.java
java/org/apache/catalina/ant/StopTask.java
java/org/apache/catalina/ant/UndeployTask.java
java/org/apache/catalina/ant/ValidatorTask.java
java/org/apache/catalina/ant/jmx/JMXAccessorCreateTask.java
java/org/apache/catalina/ant/jmx/JMXAccessorGetTask.java
java/org/apache/catalina/ant/jmx/JMXAccessorInvokeTask.java
java/org/apache/catalina/ant/jmx/JMXAccessorQueryTask.java
java/org/apache/catalina/ant/jmx/JMXAccessorSetTask.java
java/org/apache/catalina/ant/jmx/JMXAccessorUnregisterTask.java
java/org/apache/catalina/authenticator/AuthenticatorBase.java
java/org/apache/catalina/authenticator/BasicAuthenticator.java
java/org/apache/catalina/authenticator/DigestAuthenticator.java
java/org/apache/catalina/authenticator/FormAuthenticator.java
java/org/apache/catalina/authenticator/NonLoginAuthenticator.java
java/org/apache/catalina/authenticator/SSLAuthenticator.java
java/org/apache/catalina/authenticator/SingleSignOn.java
java/org/apache/catalina/connector/ClientAbortException.java
java/org/apache/catalina/connector/CometEventImpl.java
java/org/apache/catalina/connector/CoyoteInputStream.java
java/org/apache/catalina/connector/CoyoteOutputStream.java
java/org/apache/catalina/connector/CoyotePrincipal.java
java/org/apache/catalina/connector/CoyoteReader.java
java/org/apache/catalina/connector/CoyoteWriter.java
java/org/apache/catalina/connector/InputBuffer.java
java/org/apache/catalina/connector/OutputBuffer.java
java/org/apache/catalina/connector/RequestFacade.java
java/org/apache/catalina/connector/ResponseFacade.java
java/org/apache/catalina/core/ApplicationFilterConfig.java
java/org/apache/catalina/core/ApplicationHttpRequest.java
java/org/apache/catalina/core/ApplicationHttpResponse.java
java/org/apache/catalina/core/ApplicationRequest.java
java/org/apache/catalina/core/ApplicationResponse.java
java/org/apache/catalina/core/StandardContext.java
java/org/apache/catalina/core/StandardContextValve.java
java/org/apache/catalina/core/StandardEngine.java
java/org/apache/catalina/core/StandardEngineValve.java
java/org/apache/catalina/core/StandardHost.java
java/org/apache/catalina/core/StandardHostValve.java
java/org/apache/catalina/core/StandardServer.java
java/org/apache/catalina/core/StandardService.java
java/org/apache/catalina/core/StandardWrapper.java
java/org/apache/catalina/core/StandardWrapperValve.java
java/org/apache/catalina/deploy/ApplicationParameter.java
java/org/apache/catalina/deploy/ContextEjb.java
java/org/apache/catalina/deploy/ContextEnvironment.java
java/org/apache/catalina/deploy/ContextHandler.java
java/org/apache/catalina/deploy/ContextLocalEjb.java
java/org/apache/catalina/deploy/ContextResource.java
java/org/apache/catalina/deploy/ContextResourceEnvRef.java
java/org/apache/catalina/deploy/ContextResourceLink.java
java/org/apache/catalina/deploy/ContextService.java
java/org/apache/catalina/deploy/ContextTransaction.java
java/org/apache/catalina/deploy/ErrorPage.java
java/org/apache/catalina/deploy/FilterDef.java
java/org/apache/catalina/deploy/FilterMap.java
java/org/apache/catalina/deploy/LoginConfig.java
java/org/apache/catalina/deploy/MessageDestination.java
java/org/apache/catalina/deploy/MessageDestinationRef.java
java/org/apache/catalina/deploy/SecurityCollection.java
java/org/apache/catalina/deploy/SecurityConstraint.java
java/org/apache/catalina/deploy/SecurityRoleRef.java
java/org/apache/catalina/filters/RemoteAddrFilter.java
java/org/apache/catalina/filters/RemoteHostFilter.java
java/org/apache/catalina/filters/RequestDumperFilter.java
java/org/apache/catalina/ha/ClusterListener.java
java/org/apache/catalina/ha/ClusterRuleSet.java
java/org/apache/catalina/ha/authenticator/ClusterSingleSignOn.java
java/org/apache/catalina/ha/authenticator/ClusterSingleSignOnListener.java
java/org/apache/catalina/ha/authenticator/SingleSignOnMessage.java
java/org/apache/catalina/ha/context/ReplicatedContext.java
java/org/apache/catalina/ha/deploy/FarmWarDeployer.java
java/org/apache/catalina/ha/deploy/FileMessage.java
java/org/apache/catalina/ha/deploy/WarWatcher.java
java/org/apache/catalina/ha/session/BackupManager.java
java/org/apache/catalina/ha/session/ClusterSessionListener.java
java/org/apache/catalina/ha/session/DeltaManager.java
java/org/apache/catalina/ha/session/DeltaRequest.java
java/org/apache/catalina/ha/session/DeltaSession.java
java/org/apache/catalina/ha/session/JvmRouteBinderValve.java
java/org/apache/catalina/ha/session/JvmRouteSessionIDBinderListener.java
java/org/apache/catalina/ha/session/ReplicatedSession.java
java/org/apache/catalina/ha/session/SerializablePrincipal.java
java/org/apache/catalina/ha/session/SessionIDMessage.java
java/org/apache/catalina/ha/session/SessionMessageImpl.java
java/org/apache/catalina/ha/session/SimpleTcpReplicationManager.java
java/org/apache/catalina/ha/tcp/ReplicationValve.java
java/org/apache/catalina/loader/WebappLoader.java
java/org/apache/catalina/manager/HTMLManagerServlet.java
java/org/apache/catalina/manager/JMXProxyServlet.java
java/org/apache/catalina/manager/ManagerServlet.java
java/org/apache/catalina/manager/StatusManagerServlet.java
java/org/apache/catalina/manager/host/HTMLHostManagerServlet.java
java/org/apache/catalina/manager/host/HostManagerServlet.java
java/org/apache/catalina/mbeans/ClassNameMBean.java
java/org/apache/catalina/mbeans/ConnectorMBean.java
java/org/apache/catalina/mbeans/ContextEnvironmentMBean.java
java/org/apache/catalina/mbeans/ContextResourceLinkMBean.java
java/org/apache/catalina/mbeans/ContextResourceMBean.java
java/org/apache/catalina/realm/CombinedRealm.java
java/org/apache/catalina/realm/DataSourceRealm.java
java/org/apache/catalina/realm/GenericPrincipal.java
java/org/apache/catalina/realm/JAASMemoryLoginModule.java
java/org/apache/catalina/realm/JAASRealm.java
java/org/apache/catalina/realm/JDBCRealm.java
java/org/apache/catalina/realm/JNDIRealm.java
java/org/apache/catalina/realm/LockOutRealm.java
java/org/apache/catalina/realm/MemoryRealm.java
java/org/apache/catalina/realm/MemoryRuleSet.java
java/org/apache/catalina/realm/RealmBase.java
java/org/apache/catalina/realm/UserDatabaseRealm.java
java/org/apache/catalina/servlets/CGIServlet.java
java/org/apache/catalina/servlets/DefaultServlet.java
java/org/apache/catalina/servlets/WebdavServlet.java
java/org/apache/catalina/session/FileStore.java
java/org/apache/catalina/session/JDBCStore.java
java/org/apache/catalina/session/PersistentManager.java
java/org/apache/catalina/session/PersistentManagerBase.java
java/org/apache/catalina/session/StandardManager.java
java/org/apache/catalina/session/StandardSession.java
java/org/apache/catalina/ssi/ByteArrayServletOutputStream.java
java/org/apache/catalina/ssi/ExpressionParseTree.java
java/org/apache/catalina/ssi/ResponseIncludeWrapper.java
java/org/apache/catalina/ssi/SSIServlet.java
java/org/apache/catalina/startup/Catalina.java
java/org/apache/catalina/startup/ClusterRuleSetFactory.java
java/org/apache/catalina/startup/ConnectorCreateRule.java
java/org/apache/catalina/startup/ContextRuleSet.java
java/org/apache/catalina/startup/CopyParentClassLoaderRule.java
java/org/apache/catalina/startup/Embedded.java
java/org/apache/catalina/startup/EngineRuleSet.java
java/org/apache/catalina/startup/HostRuleSet.java
java/org/apache/catalina/startup/LifecycleListenerRule.java
java/org/apache/catalina/startup/NamingRuleSet.java
java/org/apache/catalina/startup/RealmRuleSet.java
java/org/apache/catalina/startup/SetAllPropertiesRule.java
java/org/apache/catalina/startup/SetContextPropertiesRule.java
java/org/apache/catalina/startup/SetNextNamingRule.java
java/org/apache/catalina/startup/TldRuleSet.java
java/org/apache/catalina/startup/Tomcat.java
java/org/apache/catalina/startup/WebRuleSet.java
java/org/apache/catalina/tribes/ChannelException.java
java/org/apache/catalina/tribes/UniqueId.java
java/org/apache/catalina/tribes/group/ChannelCoordinator.java
java/org/apache/catalina/tribes/group/GroupChannel.java
java/org/apache/catalina/tribes/group/RpcChannel.java
java/org/apache/catalina/tribes/group/RpcMessage.java
java/org/apache/catalina/tribes/group/interceptors/DomainFilterInterceptor.java
java/org/apache/catalina/tribes/group/interceptors/FragmentationInterceptor.java
java/org/apache/catalina/tribes/group/interceptors/GzipInterceptor.java
java/org/apache/catalina/tribes/group/interceptors/MessageDispatch15Interceptor.java
java/org/apache/catalina/tribes/group/interceptors/MessageDispatchInterceptor.java
java/org/apache/catalina/tribes/group/interceptors/NonBlockingCoordinator.java
java/org/apache/catalina/tribes/group/interceptors/OrderInterceptor.java
java/org/apache/catalina/tribes/group/interceptors/StaticMembershipInterceptor.java
java/org/apache/catalina/tribes/group/interceptors/TcpFailureDetector.java
java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptor.java
java/org/apache/catalina/tribes/group/interceptors/ThroughputInterceptor.java
java/org/apache/catalina/tribes/group/interceptors/TwoPhaseCommitInterceptor.java
java/org/apache/catalina/tribes/io/ChannelData.java
java/org/apache/catalina/tribes/io/DirectByteArrayOutputStream.java
java/org/apache/catalina/tribes/io/ReplicationStream.java
java/org/apache/catalina/tribes/membership/McastServiceImpl.java
java/org/apache/catalina/tribes/membership/MemberImpl.java
java/org/apache/catalina/tribes/membership/Membership.java
java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
java/org/apache/catalina/tribes/tipis/LazyReplicatedMap.java
java/org/apache/catalina/tribes/tipis/ReplicatedMap.java
java/org/apache/catalina/tribes/transport/PooledSender.java
java/org/apache/catalina/tribes/transport/bio/BioReplicationTask.java
java/org/apache/catalina/tribes/transport/bio/BioSender.java
java/org/apache/catalina/tribes/transport/bio/MultipointBioSender.java
java/org/apache/catalina/tribes/transport/bio/PooledMultiSender.java
java/org/apache/catalina/tribes/transport/nio/NioReceiver.java
java/org/apache/catalina/tribes/transport/nio/NioSender.java
java/org/apache/catalina/tribes/transport/nio/ParallelNioSender.java
java/org/apache/catalina/tribes/transport/nio/PooledParallelSender.java
java/org/apache/catalina/tribes/util/ExecutorFactory.java
java/org/apache/catalina/users/MemoryGroup.java
java/org/apache/catalina/users/MemoryRole.java
java/org/apache/catalina/users/MemoryUser.java
java/org/apache/catalina/users/MemoryUserDatabase.java
java/org/apache/catalina/util/CustomObjectInputStream.java
java/org/apache/catalina/util/Extension.java
java/org/apache/catalina/util/ManifestResource.java
java/org/apache/catalina/util/ParameterMap.java
java/org/apache/catalina/util/ResourceSet.java
java/org/apache/catalina/util/XMLWriter.java
java/org/apache/catalina/valves/AccessLogValve.java
java/org/apache/catalina/valves/CometConnectionManagerValve.java
java/org/apache/catalina/valves/ErrorReportValve.java
java/org/apache/catalina/valves/ExtendedAccessLogValve.java
java/org/apache/catalina/valves/PersistentValve.java
java/org/apache/catalina/valves/RemoteAddrValve.java
java/org/apache/catalina/valves/RemoteHostValve.java
java/org/apache/catalina/valves/RequestFilterValve.java
java/org/apache/catalina/valves/SSLValve.java
java/org/apache/catalina/valves/SemaphoreValve.java
java/org/apache/catalina/valves/ValveBase.java

index 998021c..01261f6 100644 (file)
@@ -101,6 +101,7 @@ public final class ContainerEvent
     /**
      * Return a string representation of this event.
      */
+    @Override
     public String toString() {
 
         return ("ContainerEvent['" + getContainer() + "','" +
index 0e5a7b8..20d4427 100644 (file)
@@ -105,6 +105,7 @@ public final class LifecycleException extends Exception {
     /**
      * Returns the message associated with this exception, if any.
      */
+    @Override
     public String getMessage() {
 
         return (message);
@@ -125,6 +126,7 @@ public final class LifecycleException extends Exception {
     /**
      * Return a formatted string that describes this exception.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("LifecycleException:  ");
index 69eea43..0e2ab73 100644 (file)
@@ -101,6 +101,7 @@ public final class SessionEvent
     /**
      * Return a string representation of this event.
      */
+    @Override
     public String toString() {
 
         return ("SessionEvent['" + getSession() + "','" +
index a9bd863..1954187 100644 (file)
@@ -121,6 +121,7 @@ public abstract class AbstractCatalinaTask extends BaseRedirectorHelperTask {
      *
      * @exception BuildException if a validation error occurs
      */
+    @Override
     public void execute() throws BuildException {
 
         if ((username == null) || (password == null) || (url == null)) {
index ddab137..e14ac37 100644 (file)
@@ -285,6 +285,7 @@ public abstract class BaseRedirectorHelperTask extends Task {
      *
      * @param output The output to log. Should not be <code>null</code>.
      */
+    @Override
     protected void handleOutput(String output) {
         if (redirectOutput) {
             if (redirectOutPrintStream == null) {
@@ -305,6 +306,7 @@ public abstract class BaseRedirectorHelperTask extends Task {
      * @param output The output to log. Should not be <code>null</code>.
      *
      */
+    @Override
     protected void handleFlush(String output) {
         handleOutput(output);
         redirectOutPrintStream.flush();
@@ -315,6 +317,7 @@ public abstract class BaseRedirectorHelperTask extends Task {
      *
      * @param output The error output to log. Should not be <code>null</code>.
      */
+    @Override
     protected void handleErrorOutput(String output) {
         if (redirectOutput) {
             if (redirectErrPrintStream == null) {
@@ -335,6 +338,7 @@ public abstract class BaseRedirectorHelperTask extends Task {
      * @param output The error output to log. Should not be <code>null</code>.
      *
      */
+    @Override
     protected void handleErrorFlush(String output) {
         handleErrorOutput(output);
         redirectErrPrintStream.flush();
index 1273a39..ec1e99b 100644 (file)
@@ -137,6 +137,7 @@ public class DeployTask extends AbstractCatalinaTask {
      *
      * @exception BuildException if an error occurs
      */
+    @Override
     public void execute() throws BuildException {
 
         super.execute();
index 0207fbe..d59e966 100644 (file)
@@ -268,6 +268,7 @@ public class JKStatusUpdateTask extends AbstractCatalinaTask {
      * @exception BuildException
      *                if an error occurs
      */
+    @Override
     public void execute() throws BuildException {
 
         super.execute();
index 064a7c0..2f205e3 100644 (file)
@@ -82,6 +82,7 @@ public class JMXGetTask extends AbstractCatalinaTask {
      *
      * @exception BuildException if an error occurs
      */
+    @Override
     public void execute() throws BuildException {
         super.execute();
         if (bean == null || attribute == null) {
index ceb89bf..8cd960a 100644 (file)
@@ -70,6 +70,7 @@ public class JMXQueryTask extends AbstractCatalinaTask {
      *
      * @exception BuildException if an error occurs
      */
+    @Override
     public void execute() throws BuildException {
         super.execute();
         String queryString = (query == null) ? "":("?qry="+query);
index 5bab49b..12c562e 100644 (file)
@@ -103,6 +103,7 @@ public class JMXSetTask extends AbstractCatalinaTask {
      *
      * @exception BuildException if an error occurs
      */
+    @Override
     public void execute() throws BuildException {
         super.execute();
         if (bean == null || attribute == null || value == null) {
index bc3dfdf..523f7ec 100644 (file)
@@ -44,6 +44,7 @@ public class ListTask extends AbstractCatalinaTask {
      *
      * @exception BuildException if an error occurs
      */
+    @Override
     public void execute() throws BuildException {
 
         super.execute();
index 75e21a6..d450275 100644 (file)
@@ -61,6 +61,7 @@ public class ReloadTask extends AbstractCatalinaTask {
      *
      * @exception BuildException if an error occurs
      */
+    @Override
     public void execute() throws BuildException {
 
         super.execute();
index 76cbb54..4d5c1c1 100644 (file)
@@ -59,6 +59,7 @@ public class ResourcesTask extends AbstractCatalinaTask {
      *
      * @exception BuildException if an error occurs
      */
+    @Override
     public void execute() throws BuildException {
 
         super.execute();
index 4041e10..54b7ec3 100644 (file)
@@ -44,6 +44,7 @@ public class RolesTask extends AbstractCatalinaTask {
      *
      * @exception BuildException if an error occurs
      */
+    @Override
     public void execute() throws BuildException {
 
         super.execute();
index 352fdf8..e05038f 100644 (file)
@@ -38,6 +38,7 @@ public class ServerinfoTask extends AbstractCatalinaTask {
      *
      * @exception BuildException if an error occurs
      */
+    @Override
     public void execute() throws BuildException {
 
         super.execute();
index 3e615d3..b0d88d1 100644 (file)
@@ -56,6 +56,7 @@ public class SessionsTask extends AbstractCatalinaTask {
      *
      * @exception BuildException if an error occurs
      */
+    @Override
     public void execute() throws BuildException {
 
         super.execute();
index 260ea16..95fa0c5 100644 (file)
@@ -61,6 +61,7 @@ public class StartTask extends AbstractCatalinaTask {
      *
      * @exception BuildException if an error occurs
      */
+    @Override
     public void execute() throws BuildException {
 
         super.execute();
index 959331c..1224c30 100644 (file)
@@ -61,6 +61,7 @@ public class StopTask extends AbstractCatalinaTask {
      *
      * @exception BuildException if an error occurs
      */
+    @Override
     public void execute() throws BuildException {
 
         super.execute();
index 2c0b81a..dfab340 100644 (file)
@@ -57,6 +57,7 @@ public class UndeployTask extends AbstractCatalinaTask {
      *
      * @exception BuildException if an error occurs
      */
+    @Override
     public void execute() throws BuildException {
 
         super.execute();
index c8e6563..d3fde1d 100644 (file)
@@ -73,6 +73,7 @@ public class ValidatorTask extends BaseRedirectorHelperTask {
      *
      * @exception BuildException if a validation error occurs
      */
+    @Override
     public void execute() throws BuildException {
 
         if (path == null) {
index c773980..56e9559 100644 (file)
@@ -78,6 +78,7 @@ public class JMXAccessorCreateTask extends JMXAccessorTask {
      * <code>&lt;description&gt;/&lt;version&gt;</code>.
      * @return Returns the class info.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -141,6 +142,7 @@ public class JMXAccessorCreateTask extends JMXAccessorTask {
      * @exception Exception
      *                if an error occurs
      */
+    @Override
     public String jmxExecute(MBeanServerConnection jmxServerConnection)
         throws Exception {
 
index 9fd0d60..c9e1b81 100644 (file)
@@ -75,6 +75,7 @@ public class JMXAccessorGetTask extends JMXAccessorTask {
      * corresponding version number, in the format
      * <code>&lt;description&gt;/&lt;version&gt;</code>.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -108,6 +109,7 @@ public class JMXAccessorGetTask extends JMXAccessorTask {
      * @exception BuildException
      *                if an error occurs
      */
+    @Override
     public String jmxExecute(MBeanServerConnection jmxServerConnection)
         throws Exception {
 
index f5fa9a0..01b0692 100644 (file)
@@ -111,6 +111,7 @@ public class JMXAccessorInvokeTask extends JMXAccessorTask {
      * corresponding version number, in the format
      * <code>&lt;description&gt;/&lt;version&gt;</code>.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -159,6 +160,7 @@ public class JMXAccessorInvokeTask extends JMXAccessorTask {
      * @exception BuildException
      *                if an error occurs
      */
+    @Override
     public String jmxExecute(MBeanServerConnection jmxServerConnection)
         throws Exception {
 
index b6666d5..4213888 100644 (file)
@@ -78,6 +78,7 @@ public class JMXAccessorQueryTask extends JMXAccessorTask {
      * corresponding version number, in the format
      * <code>&lt;description&gt;/&lt;version&gt;</code>.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -110,6 +111,7 @@ public class JMXAccessorQueryTask extends JMXAccessorTask {
      * @exception Exception
      *                if an error occurs
      */
+    @Override
     public String jmxExecute(MBeanServerConnection jmxServerConnection)
         throws Exception {
 
index 0e40d26..581e448 100644 (file)
@@ -83,6 +83,7 @@ public class JMXAccessorSetTask extends JMXAccessorTask {
      * corresponding version number, in the format
      * <code>&lt;description&gt;/&lt;version&gt;</code>.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -156,6 +157,7 @@ public class JMXAccessorSetTask extends JMXAccessorTask {
      * @exception Exception
      *                if an error occurs
      */
+    @Override
     public String jmxExecute(MBeanServerConnection jmxServerConnection)
         throws Exception {
 
index eb37de4..f6a1d09 100644 (file)
@@ -65,6 +65,7 @@ public class JMXAccessorUnregisterTask extends JMXAccessorTask {
      * <code>&lt;description&gt;/&lt;version&gt;</code>.
      * @return Returns the class info.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -80,6 +81,7 @@ public class JMXAccessorUnregisterTask extends JMXAccessorTask {
      * @exception Exception
      *                if an error occurs
      */
+    @Override
     public String jmxExecute(MBeanServerConnection jmxServerConnection)
         throws Exception {
 
index fb8f2c6..725d0ab 100644 (file)
@@ -252,6 +252,7 @@ public abstract class AuthenticatorBase
     /**
      * Return the Container to which this Valve is attached.
      */
+    @Override
     public Container getContainer() {
 
         return (this.context);
@@ -264,6 +265,7 @@ public abstract class AuthenticatorBase
      *
      * @param container The container to which we are attached
      */
+    @Override
     public void setContainer(Container container) {
 
         if (!(container instanceof Context))
@@ -306,6 +308,7 @@ public abstract class AuthenticatorBase
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -384,6 +387,7 @@ public abstract class AuthenticatorBase
      * @exception IOException if an input/output error occurs
      * @exception ServletException if thrown by a processing element
      */
+    @Override
     public void invoke(Request request, Response response)
         throws IOException, ServletException {
 
index 643cfd3..43381b6 100644 (file)
@@ -90,6 +90,7 @@ public class BasicAuthenticator
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -113,6 +114,7 @@ public class BasicAuthenticator
      *
      * @exception IOException if an input/output error occurs
      */
+    @Override
     public boolean authenticate(Request request,
                                 Response response,
                                 LoginConfig config)
index b629845..10e4398 100644 (file)
@@ -103,6 +103,7 @@ public class DigestAuthenticator
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -126,6 +127,7 @@ public class DigestAuthenticator
      *
      * @exception IOException if an input/output error occurs
      */
+    @Override
     public boolean authenticate(Request request,
                                 Response response,
                                 LoginConfig config)
index cecffd8..5155055 100644 (file)
@@ -81,6 +81,7 @@ public class FormAuthenticator
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -120,6 +121,7 @@ public class FormAuthenticator
      *
      * @exception IOException if an input/output error occurs
      */
+    @Override
     public boolean authenticate(Request request,
                                 Response response,
                                 LoginConfig config)
index 263838c..d89f144 100644 (file)
@@ -55,6 +55,7 @@ public final class NonLoginAuthenticator
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -78,6 +79,7 @@ public final class NonLoginAuthenticator
      *
      * @exception IOException if an input/output error occurs
      */
+    @Override
     public boolean authenticate(Request request,
                                 Response response,
                                 LoginConfig config)
index 1c4220a..1a3c7e9 100644 (file)
@@ -59,6 +59,7 @@ public class SSLAuthenticator
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -81,6 +82,7 @@ public class SSLAuthenticator
      *
      * @exception IOException if an input/output error occurs
      */
+    @Override
     public boolean authenticate(Request request,
                                 Response response,
                                 LoginConfig config)
@@ -173,6 +175,7 @@ public class SSLAuthenticator
      * @exception LifecycleException if this component detects a fatal error
      *  that prevents this component from being used
      */
+    @Override
     public void start() throws LifecycleException {
 
         super.start();
@@ -187,6 +190,7 @@ public class SSLAuthenticator
      * @exception LifecycleException if this component detects a fatal error
      *  that prevents this component from being used
      */
+    @Override
     public void stop() throws LifecycleException {
 
         super.stop();
index fc0b6b7..239810f 100644 (file)
@@ -347,6 +347,7 @@ public class SingleSignOn
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -363,6 +364,7 @@ public class SingleSignOn
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet error occurs
      */
+    @Override
     public void invoke(Request request, Response response)
         throws IOException, ServletException {
 
@@ -433,6 +435,7 @@ public class SingleSignOn
     /**
      * Return a String rendering of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("SingleSignOn[");
index 8a6d656..53c52a7 100644 (file)
@@ -105,6 +105,7 @@ public final class ClientAbortException extends IOException {
     /**
      * Returns the message associated with this exception, if any.
      */
+    @Override
     public String getMessage() {
 
         return (message);
@@ -115,6 +116,7 @@ public final class ClientAbortException extends IOException {
     /**
      * Returns the cause that caused this exception, if any.
      */
+    @Override
     public Throwable getCause() {
         
         return (throwable);
@@ -125,6 +127,7 @@ public final class ClientAbortException extends IOException {
     /**
      * Return a formatted string that describes this exception.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("ClientAbortException:  ");
index a50a726..0da2f56 100644 (file)
@@ -124,6 +124,7 @@ public class CometEventImpl implements CometEvent {
         }
     }
     
+    @Override
     public String toString() {
         StringBuilder buf = new StringBuilder();
         buf.append(super.toString());
index dd41b89..088ad93 100644 (file)
@@ -68,6 +68,7 @@ public class CoyoteInputStream
     /**
      * Prevent cloning the facade.
      */
+    @Override
     protected Object clone()
         throws CloneNotSupportedException {
         throw new CloneNotSupportedException();
@@ -77,6 +78,7 @@ public class CoyoteInputStream
     // --------------------------------------------- ServletInputStream Methods
 
 
+    @Override
     public int read()
         throws IOException {    
         if (SecurityUtil.isPackageProtectionEnabled()){
@@ -106,6 +108,7 @@ public class CoyoteInputStream
         }
     }
 
+    @Override
     public int available() throws IOException {
         
         if (SecurityUtil.isPackageProtectionEnabled()){
@@ -134,6 +137,7 @@ public class CoyoteInputStream
         }    
     }
 
+    @Override
     public int read(final byte[] b) throws IOException {
         
         if (SecurityUtil.isPackageProtectionEnabled()){
@@ -164,6 +168,7 @@ public class CoyoteInputStream
     }
 
 
+    @Override
     public int read(final byte[] b, final int off, final int len)
         throws IOException {
             
@@ -195,6 +200,7 @@ public class CoyoteInputStream
     }
 
 
+    @Override
     public int readLine(byte[] b, int off, int len) throws IOException {
         return super.readLine(b, off, len);
     }
@@ -205,6 +211,7 @@ public class CoyoteInputStream
      * Since we re-cycle, we can't allow the call to super.close()
      * which would permantely disable us.
      */
+    @Override
     public void close() throws IOException {
         
         if (SecurityUtil.isPackageProtectionEnabled()){
index cc5dd89..b264634 100644 (file)
@@ -52,6 +52,7 @@ public class CoyoteOutputStream
     /**
      * Prevent cloning the facade.
      */
+    @Override
     protected Object clone()
         throws CloneNotSupportedException {
         throw new CloneNotSupportedException();
@@ -72,18 +73,21 @@ public class CoyoteOutputStream
     // --------------------------------------------------- OutputStream Methods
 
 
+    @Override
     public void write(int i)
         throws IOException {
         ob.writeByte(i);
     }
 
 
+    @Override
     public void write(byte[] b)
         throws IOException {
         write(b, 0, b.length);
     }
 
 
+    @Override
     public void write(byte[] b, int off, int len)
         throws IOException {
         ob.write(b, off, len);
@@ -93,12 +97,14 @@ public class CoyoteOutputStream
     /**
      * Will send the buffer to the client.
      */
+    @Override
     public void flush()
         throws IOException {
         ob.flush();
     }
 
 
+    @Override
     public void close()
         throws IOException {
         ob.close();
index fadcb9b..1341c69 100644 (file)
@@ -62,6 +62,7 @@ public class CoyotePrincipal
      * Return a String representation of this object, which exposes only
      * information that should be public.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("CoyotePrincipal[");
index 9658bd3..6ef1fa7 100644 (file)
@@ -62,6 +62,7 @@ public class CoyoteReader
     /**
      * Prevent cloning the facade.
      */
+    @Override
     protected Object clone()
         throws CloneNotSupportedException {
         throw new CloneNotSupportedException();
@@ -82,59 +83,69 @@ public class CoyoteReader
     // --------------------------------------------------------- Reader Methods
 
 
+    @Override
     public void close()
         throws IOException {
         ib.close();
     }
 
 
+    @Override
     public int read()
         throws IOException {
         return ib.read();
     }
 
 
+    @Override
     public int read(char[] cbuf)
         throws IOException {
         return ib.read(cbuf, 0, cbuf.length);
     }
 
 
+    @Override
     public int read(char[] cbuf, int off, int len)
         throws IOException {
         return ib.read(cbuf, off, len);
     }
 
 
+    @Override
     public long skip(long n)
         throws IOException {
         return ib.skip(n);
     }
 
 
+    @Override
     public boolean ready()
         throws IOException {
         return ib.ready();
     }
 
 
+    @Override
     public boolean markSupported() {
         return true;
     }
 
 
+    @Override
     public void mark(int readAheadLimit)
         throws IOException {
         ib.mark(readAheadLimit);
     }
 
 
+    @Override
     public void reset()
         throws IOException {
         ib.reset();
     }
 
 
+    @Override
     public String readLine()
         throws IOException {
 
index d22692b..241467b 100644 (file)
@@ -60,6 +60,7 @@ public class CoyoteWriter
     /**
      * Prevent cloning the facade.
      */
+    @Override
     protected Object clone()
         throws CloneNotSupportedException {
         throw new CloneNotSupportedException();
@@ -88,6 +89,7 @@ public class CoyoteWriter
     // --------------------------------------------------------- Writer Methods
 
 
+    @Override
     public void flush() {
 
         if (error)
@@ -102,6 +104,7 @@ public class CoyoteWriter
     }
 
 
+    @Override
     public void close() {
 
         // We don't close the PrintWriter - super() is not called,
@@ -116,12 +119,14 @@ public class CoyoteWriter
     }
 
 
+    @Override
     public boolean checkError() {
         flush();
         return error;
     }
 
 
+    @Override
     public void write(int c) {
 
         if (error)
@@ -136,6 +141,7 @@ public class CoyoteWriter
     }
 
 
+    @Override
     public void write(char buf[], int off, int len) {
 
         if (error)
@@ -150,11 +156,13 @@ public class CoyoteWriter
     }
 
 
+    @Override
     public void write(char buf[]) {
        write(buf, 0, buf.length);
     }
 
 
+    @Override
     public void write(String s, int off, int len) {
 
         if (error)
@@ -169,6 +177,7 @@ public class CoyoteWriter
     }
 
 
+    @Override
     public void write(String s) {
         write(s, 0, s.length());
     }
@@ -177,6 +186,7 @@ public class CoyoteWriter
     // ---------------------------------------------------- PrintWriter Methods
 
 
+    @Override
     public void print(boolean b) {
         if (b) {
             write("true");
@@ -186,36 +196,43 @@ public class CoyoteWriter
     }
 
 
+    @Override
     public void print(char c) {
         write(c);
     }
 
 
+    @Override
     public void print(int i) {
         write(String.valueOf(i));
     }
 
 
+    @Override
     public void print(long l) {
         write(String.valueOf(l));
     }
 
 
+    @Override
     public void print(float f) {
         write(String.valueOf(f));
     }
 
 
+    @Override
     public void print(double d) {
         write(String.valueOf(d));
     }
 
 
+    @Override
     public void print(char s[]) {
         write(s);
     }
 
 
+    @Override
     public void print(String s) {
         if (s == null) {
             s = "null";
@@ -224,64 +241,75 @@ public class CoyoteWriter
     }
 
 
+    @Override
     public void print(Object obj) {
         write(String.valueOf(obj));
     }
 
 
+    @Override
     public void println() {
         write(LINE_SEP);
     }
 
 
+    @Override
     public void println(boolean b) {
         print(b);
         println();
     }
 
 
+    @Override
     public void println(char c) {
         print(c);
         println();
     }
 
 
+    @Override
     public void println(int i) {
         print(i);
         println();
     }
 
 
+    @Override
     public void println(long l) {
         print(l);
         println();
     }
 
 
+    @Override
     public void println(float f) {
         print(f);
         println();
     }
 
 
+    @Override
     public void println(double d) {
         print(d);
         println();
     }
 
 
+    @Override
     public void println(char c[]) {
         print(c);
         println();
     }
 
 
+    @Override
     public void println(String s) {
         print(s);
         println();
     }
 
 
+    @Override
     public void println(Object o) {
         print(o);
         println();
index d9425cd..62ae695 100644 (file)
@@ -238,6 +238,7 @@ public class InputBuffer extends Reader
      * 
      * @throws IOException An underlying IOException occurred
      */
+    @Override
     public void close()
         throws IOException {
         closed = true;
@@ -360,6 +361,7 @@ public class InputBuffer extends Reader
     }
 
 
+    @Override
     public int read()
         throws IOException {
 
@@ -370,6 +372,7 @@ public class InputBuffer extends Reader
     }
 
 
+    @Override
     public int read(char[] cbuf)
         throws IOException {
 
@@ -380,6 +383,7 @@ public class InputBuffer extends Reader
     }
 
 
+    @Override
     public int read(char[] cbuf, int off, int len)
         throws IOException {
 
@@ -390,6 +394,7 @@ public class InputBuffer extends Reader
     }
 
 
+    @Override
     public long skip(long n)
         throws IOException {
 
@@ -426,6 +431,7 @@ public class InputBuffer extends Reader
     }
 
 
+    @Override
     public boolean ready()
         throws IOException {
 
@@ -436,11 +442,13 @@ public class InputBuffer extends Reader
     }
 
 
+    @Override
     public boolean markSupported() {
         return true;
     }
 
 
+    @Override
     public void mark(int readAheadLimit)
         throws IOException {
 
@@ -464,6 +472,7 @@ public class InputBuffer extends Reader
     }
 
 
+    @Override
     public void reset()
         throws IOException {
 
index 29b4804..226f1ca 100644 (file)
@@ -254,6 +254,7 @@ public class OutputBuffer extends Writer
      * 
      * @throws IOException An underlying IOException occurred
      */
+    @Override
     public void close()
         throws IOException {
 
@@ -284,6 +285,7 @@ public class OutputBuffer extends Writer
      * 
      * @throws IOException An underlying IOException occurred
      */
+    @Override
     public void flush()
         throws IOException {
         doFlush(true);
@@ -406,6 +408,7 @@ public class OutputBuffer extends Writer
     // ------------------------------------------------- Chars Handling Methods
 
 
+    @Override
     public void write(int c)
         throws IOException {
 
@@ -419,6 +422,7 @@ public class OutputBuffer extends Writer
     }
 
 
+    @Override
     public void write(char c[])
         throws IOException {
 
@@ -430,6 +434,7 @@ public class OutputBuffer extends Writer
     }
 
 
+    @Override
     public void write(char c[], int off, int len)
         throws IOException {
 
@@ -446,6 +451,7 @@ public class OutputBuffer extends Writer
     /**
      * Append a string to the buffer
      */
+    @Override
     public void write(String s, int off, int len)
         throws IOException {
 
@@ -461,6 +467,7 @@ public class OutputBuffer extends Writer
     }
 
 
+    @Override
     public void write(String s)
         throws IOException {
 
index a79b7e3..2b93dce 100644 (file)
@@ -253,6 +253,7 @@ public class RequestFacade implements HttpServletRequest {
     /**
      * Prevent cloning the facade.
      */
+    @Override
     protected Object clone()
         throws CloneNotSupportedException {
         throw new CloneNotSupportedException();
index 9c26b15..159ea24 100644 (file)
@@ -132,6 +132,7 @@ public class ResponseFacade
     /**
      * Prevent cloning the facade.
      */
+    @Override
     protected Object clone()
         throws CloneNotSupportedException {
         throw new CloneNotSupportedException();
index ab0976e..a61d52f 100644 (file)
@@ -192,6 +192,7 @@ public final class ApplicationFilterConfig implements FilterConfig, Serializable
     /**
      * Return a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("ApplicationFilterConfig[");
index 60ddd63..4828ff2 100644 (file)
@@ -206,6 +206,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper {
      *
      * @param name Name of the attribute to retrieve
      */
+    @Override
     public Object getAttribute(String name) {
 
         if (name.equals(Globals.DISPATCHER_TYPE_ATTR)) {
@@ -240,6 +241,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper {
      * Override the <code>getAttributeNames()</code> method of the wrapped
      * request.
      */
+    @Override
     public Enumeration<String> getAttributeNames() {
         return (new AttributeNamesEnumerator());
     }
@@ -251,6 +253,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper {
      *
      * @param name Name of the attribute to remove
      */
+    @Override
     public void removeAttribute(String name) {
 
         if (!removeSpecial(name))
@@ -266,6 +269,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper {
      * @param name Name of the attribute to set
      * @param value Value of the attribute to set
      */
+    @Override
     public void setAttribute(String name, Object value) {
 
         if (name.equals(Globals.DISPATCHER_TYPE_ATTR)) {
@@ -289,6 +293,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper {
      *
      * @param path Path of the resource to be wrapped
      */
+    @Override
     public RequestDispatcher getRequestDispatcher(String path) {
 
         if (context == null)
@@ -336,6 +341,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper {
      * Override the <code>getContextPath()</code> method of the wrapped
      * request.
      */
+    @Override
     public String getContextPath() {
 
         return (this.contextPath);
@@ -348,6 +354,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper {
      *
      * @param name Name of the requested parameter
      */
+    @Override
     public String getParameter(String name) {
 
        parseParameters();
@@ -369,6 +376,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper {
      * Override the <code>getParameterMap()</code> method of the
      * wrapped request.
      */
+    @Override
     public Map<String, String[]> getParameterMap() {
 
        parseParameters();
@@ -381,6 +389,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper {
      * Override the <code>getParameterNames()</code> method of the
      * wrapped request.
      */
+    @Override
     public Enumeration<String> getParameterNames() {
 
        parseParameters();
@@ -395,6 +404,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper {
      *
      * @param name Name of the requested parameter
      */
+    @Override
     public String[] getParameterValues(String name) {
 
        parseParameters();
@@ -419,6 +429,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper {
     /**
      * Override the <code>getPathInfo()</code> method of the wrapped request.
      */
+    @Override
     public String getPathInfo() {
 
         return (this.pathInfo);
@@ -430,6 +441,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper {
      * Override the <code>getQueryString()</code> method of the wrapped
      * request.
      */
+    @Override
     public String getQueryString() {
 
         return (this.queryString);
@@ -441,6 +453,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper {
      * Override the <code>getRequestURI()</code> method of the wrapped
      * request.
      */
+    @Override
     public String getRequestURI() {
 
         return (this.requestURI);
@@ -452,6 +465,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper {
      * Override the <code>getRequestURL()</code> method of the wrapped
      * request.
      */
+    @Override
     public StringBuffer getRequestURL() {
 
         StringBuffer url = new StringBuffer();
@@ -479,6 +493,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper {
      * Override the <code>getServletPath()</code> method of the wrapped
      * request.
      */
+    @Override
     public String getServletPath() {
 
         return (this.servletPath);
@@ -490,6 +505,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper {
      * Return the session associated with this Request, creating one
      * if necessary.
      */
+    @Override
     public HttpSession getSession() {
         return (getSession(true));
     }
@@ -501,6 +517,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper {
      *
      * @param create Create a new session if one does not exist
      */
+    @Override
     public HttpSession getSession(boolean create) {
 
         if (crossContext) {
@@ -555,6 +572,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper {
      * @return true if the request specifies a JSESSIONID that is valid within
      * the context of this ApplicationHttpRequest, false otherwise.
      */
+    @Override
     public boolean isRequestedSessionIdValid() {
 
         if (crossContext) {
index 3a8c485..9bf0c2c 100644 (file)
@@ -112,6 +112,7 @@ class ApplicationHttpResponse extends HttpServletResponseWrapper {
      * @exception IllegalStateException if the response has already
      *  been committed
      */
+    @Override
     public void reset() {
 
         // If already committed, the wrapped response will throw ISE
@@ -126,6 +127,7 @@ class ApplicationHttpResponse extends HttpServletResponseWrapper {
      *
      * @param len The new content length
      */
+    @Override
     public void setContentLength(int len) {
 
         if (!included)
@@ -139,6 +141,7 @@ class ApplicationHttpResponse extends HttpServletResponseWrapper {
      *
      * @param type The new content type
      */
+    @Override
     public void setContentType(String type) {
 
         if (!included)
@@ -152,6 +155,7 @@ class ApplicationHttpResponse extends HttpServletResponseWrapper {
      *
      * @param loc The new locale
      */
+    @Override
     public void setLocale(Locale loc) {
 
         if (!included)
@@ -165,6 +169,7 @@ class ApplicationHttpResponse extends HttpServletResponseWrapper {
      *
      * @param size The buffer size
      */
+    @Override
     public void setBufferSize(int size) {
         if (!included)
             getResponse().setBufferSize(size);
@@ -179,6 +184,7 @@ class ApplicationHttpResponse extends HttpServletResponseWrapper {
      *
      * @param cookie The new cookie
      */
+    @Override
     public void addCookie(Cookie cookie) {
 
         if (!included)
@@ -193,6 +199,7 @@ class ApplicationHttpResponse extends HttpServletResponseWrapper {
      * @param name The new header name
      * @param value The new header value
      */
+    @Override
     public void addDateHeader(String name, long value) {
 
         if (!included)
@@ -207,6 +214,7 @@ class ApplicationHttpResponse extends HttpServletResponseWrapper {
      * @param name The new header name
      * @param value The new header value
      */
+    @Override
     public void addHeader(String name, String value) {
 
         if (!included)
@@ -221,6 +229,7 @@ class ApplicationHttpResponse extends HttpServletResponseWrapper {
      * @param name The new header name
      * @param value The new header value
      */
+    @Override
     public void addIntHeader(String name, int value) {
 
         if (!included)
@@ -236,6 +245,7 @@ class ApplicationHttpResponse extends HttpServletResponseWrapper {
      *
      * @exception IOException if an input/output error occurs
      */
+    @Override
     public void sendError(int sc) throws IOException {
 
         if (!included)
@@ -252,6 +262,7 @@ class ApplicationHttpResponse extends HttpServletResponseWrapper {
      *
      * @exception IOException if an input/output error occurs
      */
+    @Override
     public void sendError(int sc, String msg) throws IOException {
 
         if (!included)
@@ -267,6 +278,7 @@ class ApplicationHttpResponse extends HttpServletResponseWrapper {
      *
      * @exception IOException if an input/output error occurs
      */
+    @Override
     public void sendRedirect(String location) throws IOException {
 
         if (!included)
@@ -281,6 +293,7 @@ class ApplicationHttpResponse extends HttpServletResponseWrapper {
      * @param name The new header name
      * @param value The new header value
      */
+    @Override
     public void setDateHeader(String name, long value) {
 
         if (!included)
@@ -295,6 +308,7 @@ class ApplicationHttpResponse extends HttpServletResponseWrapper {
      * @param name The new header name
      * @param value The new header value
      */
+    @Override
     public void setHeader(String name, String value) {
 
         if (!included)
@@ -309,6 +323,7 @@ class ApplicationHttpResponse extends HttpServletResponseWrapper {
      * @param name The new header name
      * @param value The new header value
      */
+    @Override
     public void setIntHeader(String name, int value) {
 
         if (!included)
@@ -322,6 +337,7 @@ class ApplicationHttpResponse extends HttpServletResponseWrapper {
      *
      * @param sc The new status code
      */
+    @Override
     public void setStatus(int sc) {
 
         if (!included)
index 13c708d..c46ab2e 100644 (file)
@@ -105,6 +105,7 @@ class ApplicationRequest extends ServletRequestWrapper {
      *
      * @param name Name of the attribute to retrieve
      */
+    @Override
     public Object getAttribute(String name) {
 
         synchronized (attributes) {
@@ -118,6 +119,7 @@ class ApplicationRequest extends ServletRequestWrapper {
      * Override the <code>getAttributeNames()</code> method of the wrapped
      * request.
      */
+    @Override
     public Enumeration<String> getAttributeNames() {
 
         synchronized (attributes) {
@@ -133,6 +135,7 @@ class ApplicationRequest extends ServletRequestWrapper {
      *
      * @param name Name of the attribute to remove
      */
+    @Override
     public void removeAttribute(String name) {
 
         synchronized (attributes) {
@@ -151,6 +154,7 @@ class ApplicationRequest extends ServletRequestWrapper {
      * @param name Name of the attribute to set
      * @param value Value of the attribute to set
      */
+    @Override
     public void setAttribute(String name, Object value) {
 
         synchronized (attributes) {
@@ -170,6 +174,7 @@ class ApplicationRequest extends ServletRequestWrapper {
      *
      * @param request The new wrapped request
      */
+    @Override
     public void setRequest(ServletRequest request) {
 
         super.setRequest(request);
index 8406d7d..2267d85 100644 (file)
@@ -102,6 +102,7 @@ class ApplicationResponse extends ServletResponseWrapper {
      * @exception IllegalStateException if the response has already
      *  been committed
      */
+    @Override
     public void reset() {
 
         // If already committed, the wrapped response will throw ISE
@@ -116,6 +117,7 @@ class ApplicationResponse extends ServletResponseWrapper {
      *
      * @param len The new content length
      */
+    @Override
     public void setContentLength(int len) {
 
         if (!included)
@@ -129,6 +131,7 @@ class ApplicationResponse extends ServletResponseWrapper {
      *
      * @param type The new content type
      */
+    @Override
     public void setContentType(String type) {
 
         if (!included)
@@ -142,6 +145,7 @@ class ApplicationResponse extends ServletResponseWrapper {
      *
      * @param loc The new locale
      */
+    @Override
     public void setLocale(Locale loc) {
         if (!included)
             getResponse().setLocale(loc);
@@ -153,6 +157,7 @@ class ApplicationResponse extends ServletResponseWrapper {
      *
      * @param size The buffer size
      */
+    @Override
     public void setBufferSize(int size) {
         if (!included)
             getResponse().setBufferSize(size);
@@ -167,6 +172,7 @@ class ApplicationResponse extends ServletResponseWrapper {
      *
      * @param response The new wrapped response
      */
+    @Override
     public void setResponse(ServletResponse response) {
 
         super.setResponse(response);
index 49f724d..5566101 100644 (file)
@@ -766,6 +766,7 @@ public class StandardContext
     }
 
 
+    @Override
     public void setName( String name ) {
         super.setName( name );
         encodedPath = urlEncoder.encode(name);
@@ -1388,6 +1389,7 @@ public class StandardContext
      * the corresponding version number, in the format
      * <code>&lt;description&gt;/&lt;version&gt;</code>.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -1425,6 +1427,7 @@ public class StandardContext
      *
      * @param loader The newly associated loader
      */
+    @Override
     public synchronized void setLoader(Loader loader) {
 
         super.setLoader(loader);
@@ -1652,6 +1655,7 @@ public class StandardContext
      * This call is meaningful only <strong>after</strong> a Loader has
      * been configured.
      */
+    @Override
     public ClassLoader getParentClassLoader() {
         if (parentClassLoader != null)
             return (parentClassLoader);
@@ -1915,6 +1919,7 @@ public class StandardContext
      *
      * @param resources The newly associated DirContext
      */
+    @Override
     public synchronized void setResources(DirContext resources) {
 
         if (started) {
@@ -2109,6 +2114,7 @@ public class StandardContext
      * @exception IllegalArgumentException if the proposed container is
      *  not an implementation of Wrapper
      */
+    @Override
     public void addChild(Container child) {
 
         // Global JspServlet
@@ -3347,6 +3353,7 @@ public class StandardContext
      * @exception IllegalArgumentException if the proposed container is
      *  not an implementation of Wrapper
      */
+    @Override
     public void removeChild(Container child) {
 
         if (!(child instanceof Wrapper)) {
@@ -4231,6 +4238,7 @@ public class StandardContext
      *
      * @exception LifecycleException if a startup error occurs
      */
+    @Override
     public synchronized void start() throws LifecycleException {
         //if (lazy ) return;
         if (started) {
@@ -4620,6 +4628,7 @@ public class StandardContext
      *
      * @exception LifecycleException if a shutdown error occurs
      */
+    @Override
     public synchronized void stop() throws LifecycleException {
 
         // Validate and update our current component state
@@ -4751,6 +4760,7 @@ public class StandardContext
      * XXX Should this be done in stop() ?
      * 
      */ 
+    @Override
     public void destroy() throws Exception {
         if( oname != null ) { 
             // Send j2ee.object.deleted notification 
@@ -4792,6 +4802,7 @@ public class StandardContext
     /**
      * Return a String representation of this component.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder();
@@ -5272,6 +5283,7 @@ public class StandardContext
     }
     
 
+    @Override
     public ObjectName createObjectName(String hostDomain, ObjectName parentName)
             throws MalformedObjectNameException
     {
@@ -5353,6 +5365,7 @@ public class StandardContext
      * @return ObjectName The name of the object
      * @throws Exception If an error occurs
      */
+    @Override
     public ObjectName preRegister(MBeanServer server,
                                   ObjectName name)
             throws Exception
@@ -5365,6 +5378,7 @@ public class StandardContext
         return super.preRegister(server,name);
     }
 
+    @Override
     public void preDeregister() throws Exception {
         if( started ) {
             try {
@@ -5375,6 +5389,7 @@ public class StandardContext
         }
     }
 
+    @Override
     public void init() throws Exception {
 
         if( this.getParent() == null ) {
@@ -5449,6 +5464,7 @@ public class StandardContext
         
     }
 
+    @Override
     public ObjectName getParentName() throws MalformedObjectNameException {
         // "Life" update
         String path=oname.getKeyProperty("name");
index d8b6ce6..9e8a008 100644 (file)
@@ -82,6 +82,7 @@ final class StandardContextValve
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -97,6 +98,7 @@ final class StandardContextValve
      * 
      * @see org.apache.catalina.Contained#setContainer(org.apache.catalina.Container)
      */
+    @Override
     public void setContainer(Container container) {
         super.setContainer(container);
         context = (StandardContext) container;
@@ -115,6 +117,7 @@ final class StandardContextValve
      * @exception IOException if an input/output error occurred
      * @exception ServletException if a servlet error occurred
      */
+    @Override
     public final void invoke(Request request, Response response)
         throws IOException, ServletException {
 
@@ -232,6 +235,7 @@ final class StandardContextValve
      * @exception IOException if an input/output error occurred
      * @exception ServletException if a servlet error occurred
      */
+    @Override
     public final void event(Request request, Response response, CometEvent event)
         throws IOException, ServletException {
 
index b9a377b..1c3d78e 100644 (file)
@@ -131,6 +131,7 @@ public class StandardEngine
      *
      * @return configured realm, or a JAAS realm by default
      */
+    @Override
     public Realm getRealm() {
         Realm configured=super.getRealm();
         // If no set realm has been called - default to JAAS
@@ -171,6 +172,7 @@ public class StandardEngine
 
     }
     
+    @Override
     public void setName(String name ) {
         if( domain != null ) {
             // keep name==domain, ignore override
@@ -254,6 +256,7 @@ public class StandardEngine
      *
      * @param child Child container to be added
      */
+    @Override
     public void addChild(Container child) {
 
         if (!(child instanceof Host))
@@ -269,6 +272,7 @@ public class StandardEngine
      * the corresponding version number, in the format
      * <code>&lt;description&gt;/&lt;version&gt;</code>.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -281,6 +285,7 @@ public class StandardEngine
      *
      * @param container Proposed parent Container
      */
+    @Override
     public void setParent(Container container) {
 
         throw new IllegalArgumentException
@@ -291,6 +296,7 @@ public class StandardEngine
 
     private boolean initialized=false;
     
+    @Override
     public void init() {
         if( initialized ) return;
         initialized=true;
@@ -361,6 +367,7 @@ public class StandardEngine
         
     }
     
+    @Override
     public void destroy() throws LifecycleException {
         if( ! initialized ) return;
         initialized=false;
@@ -401,6 +408,7 @@ public class StandardEngine
      *
      * @exception LifecycleException if a startup error occurs
      */
+    @Override
     public void start() throws LifecycleException {
         if( started ) {
             return;
@@ -444,6 +452,7 @@ public class StandardEngine
 
     }
     
+    @Override
     public void stop() throws LifecycleException {
         super.stop();
         if( mbeans != null ) {
@@ -459,6 +468,7 @@ public class StandardEngine
     /**
      * Return a String representation of this component.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("StandardEngine[");
@@ -474,6 +484,7 @@ public class StandardEngine
 
     // -------------------- JMX registration  --------------------
 
+    @Override
     public ObjectName preRegister(MBeanServer server,
                                   ObjectName name) throws Exception
     {
@@ -485,6 +496,7 @@ public class StandardEngine
     }
 
     // FIXME Remove -- not used 
+    @Override
     public ObjectName getParentName() throws MalformedObjectNameException {
         if (getService()==null) {
             return null;
@@ -495,6 +507,7 @@ public class StandardEngine
         return serviceName;                
     }
     
+    @Override
     public ObjectName createObjectName(String domain, ObjectName parent)
         throws Exception
     {
@@ -523,6 +536,7 @@ public class StandardEngine
         
     }
     
+    @Override
     public String getDomain() {
         if (domain!=null) {
             return domain;
@@ -531,6 +545,7 @@ public class StandardEngine
         }
     }
     
+    @Override
     public void setDomain(String domain) {
         this.domain = domain;
     }
index 3289916..b2df268 100644 (file)
@@ -75,6 +75,7 @@ final class StandardEngineValve
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -97,6 +98,7 @@ final class StandardEngineValve
      * @exception IOException if an input/output error occurred
      * @exception ServletException if a servlet error occurred
      */
+    @Override
     public final void invoke(Request request, Response response)
         throws IOException, ServletException {
 
@@ -129,6 +131,7 @@ final class StandardEngineValve
      * @exception IOException if an input/output error occurred
      * @exception ServletException if a servlet error occurred
      */
+    @Override
     public final void event(Request request, Response response, CometEvent event)
         throws IOException, ServletException {
 
index 039c2c0..d9bd8b7 100644 (file)
@@ -418,6 +418,7 @@ public class StandardHost
      * Return the canonical, fully qualified, name of the virtual host
      * this Container represents.
      */
+    @Override
     public String getName() {
 
         return (name);
@@ -433,6 +434,7 @@ public class StandardHost
      *
      * @exception IllegalArgumentException if name is null
      */
+    @Override
     public void setName(String name) {
 
         if (name == null)
@@ -561,6 +563,7 @@ public class StandardHost
      *
      * @param child Child container to be added
      */
+    @Override
     public void addChild(Container child) {
 
         if (!(child instanceof Context))
@@ -589,6 +592,7 @@ public class StandardHost
      * the corresponding version number, in the format
      * <code>&lt;description&gt;/&lt;version&gt;</code>.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -687,6 +691,7 @@ public class StandardHost
     /**
      * Return a String representation of this component.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder();
@@ -707,6 +712,7 @@ public class StandardHost
      * @exception LifecycleException if this component detects a fatal error
      *  that prevents it from being started
      */
+    @Override
     public synchronized void start() throws LifecycleException {
         if( started ) {
             return;
@@ -795,6 +801,7 @@ public class StandardHost
 
     private boolean initialized=false;
     
+    @Override
     public void init() {
         if( initialized ) return;
         initialized=true;
@@ -838,6 +845,7 @@ public class StandardHost
         }
     }
 
+    @Override
     public void destroy() throws Exception {
         // destroy our child containers, if any
         Container children[] = findChildren();
@@ -849,6 +857,7 @@ public class StandardHost
       
     }
     
+    @Override
     public ObjectName preRegister(MBeanServer server, ObjectName oname ) 
         throws Exception
     {
@@ -859,6 +868,7 @@ public class StandardHost
         return res;        
     }
     
+    @Override
     public ObjectName createObjectName(String domain, ObjectName parent)
         throws Exception
     {
index 860caf8..9dd2433 100644 (file)
@@ -87,6 +87,7 @@ final class StandardHostValve
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -109,6 +110,7 @@ final class StandardHostValve
      * @exception IOException if an input/output error occurred
      * @exception ServletException if a servlet error occurred
      */
+    @Override
     public final void invoke(Request request, Response response)
         throws IOException, ServletException {
 
@@ -170,6 +172,7 @@ final class StandardHostValve
      * @exception IOException if an input/output error occurred
      * @exception ServletException if a servlet error occurred
      */
+    @Override
     public final void event(Request request, Response response, CometEvent event)
         throws IOException, ServletException {
 
index eb26fa9..eac6cfa 100644 (file)
@@ -576,6 +576,7 @@ public final class StandardServer
     /**
      * Return a String representation of this component.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("StandardServer[");
index a589119..268f883 100644 (file)
@@ -372,6 +372,7 @@ public class StandardService
     /**
      * Return a String representation of this component.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("StandardService[");
index 201252c..91f1b8f 100644 (file)
@@ -330,6 +330,7 @@ public class StandardWrapper
      * the corresponding version number, in the format
      * <code>&lt;description&gt;/&lt;version&gt;</code>.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -467,6 +468,7 @@ public class StandardWrapper
      *
      * @param container Proposed parent Container
      */
+    @Override
     public void setParent(Container container) {
 
         if ((container != null) &&
@@ -633,6 +635,7 @@ public class StandardWrapper
      * invoked inside the classloading context of this container. Unexpected
      * throwables will be caught and logged.
      */
+    @Override
     public void backgroundProcess() {
         super.backgroundProcess();
         
@@ -671,6 +674,7 @@ public class StandardWrapper
      *
      * @param child Child container to be added
      */
+    @Override
     public void addChild(Container child) {
 
         throw new IllegalStateException
@@ -1193,6 +1197,7 @@ public class StandardWrapper
     /**
      * Return a String representation of this component.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder();
@@ -1550,6 +1555,7 @@ public class StandardWrapper
      *
      * @exception LifecycleException if a fatal error occurs during startup
      */
+    @Override
     public void start() throws LifecycleException {
     
         // Send j2ee.state.starting notification 
@@ -1588,6 +1594,7 @@ public class StandardWrapper
      *
      * @exception LifecycleException if a fatal error occurs during shutdown
      */
+    @Override
     public void stop() throws LifecycleException {
 
         setAvailable(Long.MAX_VALUE);
index 43a949d..04d6316 100644 (file)
@@ -91,6 +91,7 @@ final class StandardWrapperValve
      * @exception IOException if an input/output error occurred
      * @exception ServletException if a servlet error occurred
      */
+    @Override
     public final void invoke(Request request, Response response)
         throws IOException, ServletException {
 
@@ -362,6 +363,7 @@ final class StandardWrapperValve
      * @exception ServletException if a servlet error occurs, or is thrown
      *  by a subsequently invoked Valve, Filter, or Servlet
      */
+    @Override
     public void event(Request request, Response response, CometEvent event)
         throws IOException, ServletException {
         
@@ -576,6 +578,7 @@ final class StandardWrapperValve
 
     // Don't register in JMX
 
+    @Override
     public ObjectName createObjectName(String domain, ObjectName parent)
             throws MalformedObjectNameException
     {
index e463461..b4fd15e 100644 (file)
@@ -100,6 +100,7 @@ public class ApplicationParameter implements Serializable {
     /**
      * Return a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("ApplicationParameter[");
index e6c5a19..0d15088 100644 (file)
@@ -85,6 +85,7 @@ public class ContextEjb extends ResourceBase implements Serializable {
     /**
      * Return a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("ContextEjb[");
index 4974498..1cad127 100644 (file)
@@ -125,6 +125,7 @@ public class ContextEnvironment implements Serializable, Injectable {
     /**
      * Return a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("ContextEnvironment[");
index 89343e1..8c1472e 100644 (file)
@@ -120,6 +120,7 @@ public class ContextHandler extends ResourceBase implements Serializable {
     /**
      * Return a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("ContextHandler[");
index c6ad8e5..8673952 100644 (file)
@@ -84,6 +84,7 @@ public class ContextLocalEjb extends ResourceBase implements Serializable {
     /**
      * Return a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("ContextLocalEjb[");
index 1cf7854..e7d913b 100644 (file)
@@ -71,6 +71,7 @@ public class ContextResource extends ResourceBase implements Serializable {
     /**
      * Return a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("ContextResource[");
index 1d070e6..da0d5ad 100644 (file)
@@ -55,6 +55,7 @@ public class ContextResourceEnvRef extends ResourceBase implements Serializable
     /**
      * Return a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("ContextResourceEnvRef[");
index 7dabfbd..8829d8f 100644 (file)
@@ -66,6 +66,7 @@ public class ContextResourceLink extends ResourceBase implements Serializable {
     /**
      * Return a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("ContextResourceLink[");
index 4ec0b5d..81ec42b 100644 (file)
@@ -196,6 +196,7 @@ public class ContextService extends ResourceBase implements Serializable {
     /**
      * Return a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("ContextService[");
index e95dba5..889366e 100644 (file)
@@ -77,6 +77,7 @@ public class ContextTransaction implements Serializable {
     /**
      * Return a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("Transaction[");
index c0278fd..21b88c6 100644 (file)
@@ -150,6 +150,7 @@ public class ErrorPage implements Serializable {
     /**
      * Render a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("ErrorPage[");
index 4385eb5..35c71bf 100644 (file)
@@ -166,6 +166,7 @@ public class FilterDef implements Serializable {
     /**
      * Render a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("FilterDef[");
index 7ec4cbf..4f7ec74 100644 (file)
@@ -231,6 +231,7 @@ public class FilterMap implements Serializable {
     /**
      * Render a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("FilterMap[");
index 5dfce20..44b9390 100644 (file)
@@ -141,6 +141,7 @@ public class LoginConfig implements Serializable {
     /**
      * Return a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("LoginConfig[");
index 2307406..46445b6 100644 (file)
@@ -111,6 +111,7 @@ public class MessageDestination {
     /**
      * Return a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("MessageDestination[");
index 6d5a269..9b17db8 100644 (file)
@@ -125,6 +125,7 @@ public class MessageDestinationRef implements Serializable, Injectable {
     /**
      * Return a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("MessageDestination[");
index 7dec74f..8080f55 100644 (file)
@@ -315,6 +315,7 @@ public class SecurityCollection implements Serializable {
     /**
      * Return a String representation of this security collection.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("SecurityCollection[");
index 0fe283c..ade3d08 100644 (file)
@@ -381,6 +381,7 @@ public class SecurityConstraint implements Serializable {
     /**
      * Return a String representation of this security constraint.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("SecurityConstraint[");
index 33bd2ca..01f0720 100644 (file)
@@ -70,6 +70,7 @@ public class SecurityRoleRef {
     /**
      * Return a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("SecurityRoleRef[");
index 3b8edc7..cc3febc 100644 (file)
@@ -93,6 +93,7 @@ public final class RemoteAddrFilter
                 event, chain);        
     }
 
+    @Override
     protected Log getLogger() {
         return log;
     }
index 9b5deb4..6778b58 100644 (file)
@@ -94,6 +94,7 @@ public final class RemoteHostFilter
                 event, chain);        
     }
 
+    @Override
     protected Log getLogger() {
         return log;
     }
index c28fa90..3a4db03 100644 (file)
@@ -59,6 +59,7 @@ public class RequestDumperFilter implements Filter {
 
     private static final ThreadLocal<Timestamp> timestamp =
             new ThreadLocal<Timestamp>() {
+        @Override
         protected Timestamp initialValue() {
             return new Timestamp();
         }
index e4e96e4..3d3b9c0 100644 (file)
@@ -70,10 +70,12 @@ public abstract class ClusterListener implements ChannelListener {
         this.cluster = cluster;
     }
 
+    @Override
     public boolean equals(Object listener) {
         return super.equals(listener);
     }
 
+    @Override
     public int hashCode() {
         return super.hashCode();
     }
index 1a41637..8592a48 100644 (file)
@@ -84,6 +84,7 @@ public class ClusterRuleSet extends RuleSetBase {
      * @param digester Digester instance to which the new Rule instances
      *  should be added.
      */
+    @Override
     public void addRuleInstances(Digester digester) {
         //Cluster configuration start
         digester.addObjectCreate(prefix + "Manager",
index a2bb4d6..5b6f659 100644 (file)
@@ -81,6 +81,7 @@ public class ClusterSingleSignOn
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -111,6 +112,7 @@ public class ClusterSingleSignOn
      * @exception LifecycleException if this component detects a fatal error
      *  that prevents this component from being used
      */
+    @Override
     public void start() throws LifecycleException {
 
        super.start();
@@ -165,6 +167,7 @@ public class ClusterSingleSignOn
      * @exception LifecycleException if this component detects a fatal error
      *  that needs to be reported
      */
+    @Override
     public void stop() throws LifecycleException {
 
        super.stop();
@@ -182,6 +185,7 @@ public class ClusterSingleSignOn
     /**
      * Return a String rendering of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("ClusterSingleSignOn[");
@@ -207,6 +211,7 @@ public class ClusterSingleSignOn
      * @param ssoId Single sign on identifier
      * @param session Session to be associated
      */
+    @Override
     protected void associate(String ssoId, Session session) {
 
        if (cluster != null) {
@@ -246,6 +251,7 @@ public class ClusterSingleSignOn
      * @param ssoId Single sign on identifier
      * @param session Session to be deregistered
      */
+    @Override
     protected void deregister(String ssoId, Session session) {
 
        if (cluster != null) {
@@ -283,6 +289,7 @@ public class ClusterSingleSignOn
      *
      * @param ssoId Single sign on identifier to deregister
      */
+    @Override
     protected void deregister(String ssoId) {
 
        if (cluster != null) {
@@ -320,6 +327,7 @@ public class ClusterSingleSignOn
      * @param username Username used to authenticate this user
      * @param password Password used to authenticate this user
      */
+    @Override
     protected void register(String ssoId, Principal principal, String authType,
                   String username, String password) {
 
@@ -377,6 +385,7 @@ public class ClusterSingleSignOn
      * @param username  the username (if any) used for the authentication
      * @param password  the password (if any) used for the authentication
      */
+    @Override
     protected void update(String ssoId, Principal principal, String authType,
                           String username, String password) {
 
@@ -415,6 +424,7 @@ public class ClusterSingleSignOn
      * @param ssoId Single sign on identifier from which to remove the session.
      * @param session the session to be removed.
      */
+    @Override
     protected void removeSession(String ssoId, Session session) {
 
        if (cluster != null) {
index 9104497..0189183 100644 (file)
@@ -78,6 +78,7 @@ public class ClusterSingleSignOnListener extends ClusterListener {
      * @param myobj
      *            ClusterMessage - the message received from the cluster
      */
+    @Override
     public void messageReceived(ClusterMessage myobj) {
         if (myobj != null && myobj instanceof SingleSignOnMessage) {
             SingleSignOnMessage msg = (SingleSignOnMessage) myobj;
@@ -131,6 +132,7 @@ public class ClusterSingleSignOnListener extends ClusterListener {
      *         invoked. If false is returned, the messageReceived method will
      *         not be invoked.
      */
+    @Override
     public boolean accept(ClusterMessage msg) {
         return (msg instanceof SingleSignOnMessage);
     }
index db0edf3..2a9bbcc 100644 (file)
@@ -175,6 +175,7 @@ public class SingleSignOnMessage implements ClusterMessage, Serializable {
     /**
      * Return a String rendering of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("SingleSignOnMessage[action=");
index d993827..424afef 100644 (file)
@@ -113,6 +113,7 @@ public class ReplicatedContext extends StandardContext implements LifecycleListe
         }
     }
     
+    @Override
     public ServletContext getServletContext() {
         if (context == null) {
             context = new ReplApplContext(getBasePath(), this);
@@ -137,6 +138,7 @@ public class ReplicatedContext extends StandardContext implements LifecycleListe
             return (ReplicatedContext)getContext();
         }
         
+        @Override
         protected ServletContext getFacade() {
              return super.getFacade();
         }
@@ -148,12 +150,14 @@ public class ReplicatedContext extends StandardContext implements LifecycleListe
             this.attributes = map;
         }
         
+        @Override
         public void removeAttribute(String name) {
             tomcatAttributes.remove(name);
             //do nothing
             super.removeAttribute(name);
         }
         
+        @Override
         public void setAttribute(String name, Object value) {
             if ( (!getParent().startComplete) || "org.apache.jasper.runtime.JspApplicationContextImpl".equals(name) ){
                 tomcatAttributes.put(name,value);
@@ -161,6 +165,7 @@ public class ReplicatedContext extends StandardContext implements LifecycleListe
                 super.setAttribute(name,value);
         }
         
+        @Override
         public Object getAttribute(String name) {
             if (tomcatAttributes.containsKey(name) )
                 return tomcatAttributes.get(name);
@@ -168,6 +173,7 @@ public class ReplicatedContext extends StandardContext implements LifecycleListe
                 return super.getAttribute(name);
         }
         
+        @Override
         public Enumeration<String> getAttributeNames() {
             return new MultiEnumeration<String>(new Enumeration[] {super.getAttributeNames(),new Enumerator<String>(tomcatAttributes.keySet(), true)});
         }
index 26bbd17..2b5f37c 100644 (file)
@@ -221,6 +221,7 @@ public class FarmWarDeployer extends ClusterListener implements ClusterDeployer,
      * @param msg
      *            ClusterMessage - the message received from the cluster
      */
+    @Override
     public void messageReceived(ClusterMessage msg) {
         try {
             if (msg instanceof FileMessage) {
@@ -330,6 +331,7 @@ public class FarmWarDeployer extends ClusterListener implements ClusterDeployer,
      *         invoked. If false is returned, the messageReceived method will
      *         not be invoked.
      */
+    @Override
     public boolean accept(ClusterMessage msg) {
         return (msg instanceof FileMessage) || (msg instanceof UndeployMessage);
     }
@@ -653,18 +655,22 @@ public class FarmWarDeployer extends ClusterListener implements ClusterDeployer,
     }
 
     /*--Instance Getters/Setters--------------------------------*/
+    @Override
     public CatalinaCluster getCluster() {
         return cluster;
     }
 
+    @Override
     public void setCluster(CatalinaCluster cluster) {
         this.cluster = cluster;
     }
 
+    @Override
     public boolean equals(Object listener) {
         return super.equals(listener);
     }
 
+    @Override
     public int hashCode() {
         return super.hashCode();
     }
index 381c676..01ce00e 100644 (file)
@@ -90,6 +90,7 @@ public class FileMessage extends ClusterMessageBase implements ClusterMessage, S
         this.totalLength = totalLength;
     }
 
+    @Override
     public String getUniqueId() {
         StringBuilder result = new StringBuilder(getFileName());
         result.append("#-#");
index 6e6557f..c662e4c 100644 (file)
@@ -219,10 +219,12 @@ public class WarWatcher {
             return war;
         }
 
+        @Override
         public int hashCode() {
             return war.getAbsolutePath().hashCode();
         }
 
+        @Override
         public boolean equals(Object other) {
             if (other instanceof WarInfo) {
                 WarInfo wo = (WarInfo) other;
index 5a92fad..e2d41ed 100644 (file)
@@ -121,6 +121,7 @@ public class BackupManager extends StandardManager implements ClusterManager, Ma
     /**
      * Override persistence since they don't go hand in hand with replication for now.
      */
+    @Override
     public void unload() throws IOException {
     }
     
@@ -145,6 +146,7 @@ public class BackupManager extends StandardManager implements ClusterManager, Ma
         }
     }
 
+    @Override
     public Session createEmptySession() {
         return new DeltaSession(this);
     }
@@ -173,6 +175,7 @@ public class BackupManager extends StandardManager implements ClusterManager, Ma
 
 
 
+    @Override
     public String getName() {
         return this.name;
     }
@@ -187,6 +190,7 @@ public class BackupManager extends StandardManager implements ClusterManager, Ma
      * @exception LifecycleException if this component detects a fatal error
      *  that prevents this component from being used
      */
+    @Override
     public void start() throws LifecycleException {
         if ( this.started ) return;
         
@@ -224,6 +228,7 @@ public class BackupManager extends StandardManager implements ClusterManager, Ma
      * @exception LifecycleException if this component detects a fatal error
      *  that needs to be reported
      */
+    @Override
     public void stop() throws LifecycleException
     {
         
@@ -243,10 +248,12 @@ public class BackupManager extends StandardManager implements ClusterManager, Ma
 
     }
 
+    @Override
     public void setDistributable(boolean dist) {
         this.distributable = dist;
     }
 
+    @Override
     public boolean getDistributable() {
         return distributable;
     }
index 4f41da0..4e22b8e 100644 (file)
@@ -58,6 +58,7 @@ public class ClusterSessionListener extends ClusterListener {
      * @param myobj
      *            ClusterMessage - the message received from the cluster
      */
+    @Override
     public void messageReceived(ClusterMessage myobj) {
         if (myobj != null && myobj instanceof SessionMessage) {
             SessionMessage msg = (SessionMessage) myobj;
@@ -100,6 +101,7 @@ public class ClusterSessionListener extends ClusterListener {
      *         invoked. If false is returned, the messageReceived method will
      *         not be invoked.
      */
+    @Override
     public boolean accept(ClusterMessage msg) {
         return (msg instanceof SessionMessage);
     }
index de0be54..f3e9ee5 100644 (file)
@@ -162,6 +162,7 @@ public class DeltaManager extends ClusterManagerBase{
      * corresponding version number, in the format
      * <code>&lt;description&gt;/&lt;version&gt;</code>.
      */
+    @Override
     public String getInfo() {
         return info;
     }
@@ -173,6 +174,7 @@ public class DeltaManager extends ClusterManagerBase{
     /**
      * Return the descriptive short name of this Manager implementation.
      */
+    @Override
     public String getName() {
         return name;
     }
@@ -279,6 +281,7 @@ public class DeltaManager extends ClusterManagerBase{
     /**
      * @return Returns the processingTime.
      */
+    @Override
     public long getProcessingTime() {
         return processingTime;
     }
@@ -494,6 +497,7 @@ public class DeltaManager extends ClusterManagerBase{
      * @param container
      *            The associated Container
      */
+    @Override
     public void setContainer(Container container) {
         // De-register from the old Container (if any)
         if ((this.container != null) && (this.container instanceof Context))
@@ -531,6 +535,7 @@ public class DeltaManager extends ClusterManagerBase{
      * @exception IllegalStateException
      *                if a new session cannot be instantiated for any reason
      */
+    @Override
     public Session createSession(String sessionId) {
         return createSession(sessionId, true);
     }
@@ -594,6 +599,7 @@ public class DeltaManager extends ClusterManagerBase{
      * Create DeltaSession
      * @see org.apache.catalina.Manager#createEmptySession()
      */
+    @Override
     public Session createEmptySession() {
         return getNewDeltaSession() ;
     }
index 9f6d6a4..48f5ca5 100644 (file)
@@ -328,6 +328,7 @@ public class DeltaRequest implements Externalizable {
         public Object getValue() {
             return value;
         }
+        @Override
         public int hashCode() {
             return name.hashCode();
         }
@@ -343,6 +344,7 @@ public class DeltaRequest implements Externalizable {
             action=-1;
         }
 
+        @Override
         public boolean equals(Object o) {
             if ( ! (o instanceof AttributeInfo ) ) return false;
             AttributeInfo other =  (AttributeInfo)o;
@@ -375,6 +377,7 @@ public class DeltaRequest implements Externalizable {
             if (getValue()!=null) out.writeObject(getValue());
         }
         
+        @Override
         public String toString() {
             StringBuilder buf = new StringBuilder("AttributeInfo[type=");
             buf.append(getType()).append(", action=").append(getAction());
index 6643707..c852e51 100644 (file)
@@ -255,12 +255,14 @@ public class DeltaSession extends StandardSession implements Externalizable,Clus
      * @param id
      *            The new session identifier
      */
+    @Override
     public void setId(String id) {
         super.setId(id);
         resetDeltaRequest();
     }
 
 
+    @Override
     public void setMaxInactiveInterval(int interval) {
         this.setMaxInactiveInterval(interval,true);
     }
@@ -288,6 +290,7 @@ public class DeltaSession extends StandardSession implements Externalizable,Clus
      * @param isNew
      *            The new value for the <code>isNew</code> flag
      */
+    @Override
     public void setNew(boolean isNew) {
         setNew(isNew, true);
     }
@@ -313,6 +316,7 @@ public class DeltaSession extends StandardSession implements Externalizable,Clus
      * @param principal
      *            The new Principal, or <code>null</code> if none
      */
+    @Override
     public void setPrincipal(Principal principal) {
         setPrincipal(principal, true);
     }
@@ -331,6 +335,7 @@ public class DeltaSession extends StandardSession implements Externalizable,Clus
     /**
      * Return the <code>isValid</code> flag for this session.
      */
+    @Override
     public boolean isValid() {
         if (this.expiring) {
             return true;
@@ -364,6 +369,7 @@ public class DeltaSession extends StandardSession implements Externalizable,Clus
     /**
      * End the access and register to ReplicationValve (crossContext support)
      */
+    @Override
     public void endAccess() {
        super.endAccess() ;
        if(manager instanceof DeltaManager) {
@@ -380,6 +386,7 @@ public class DeltaSession extends StandardSession implements Externalizable,Clus
      * @param notify
      *            Should we notify listeners about the demise of this session?
      */
+    @Override
     public void expire(boolean notify) {
         expire(notify, true);
     }
@@ -421,6 +428,7 @@ public class DeltaSession extends StandardSession implements Externalizable,Clus
      * Release all object references, and initialize instance variables, in
      * preparation for reuse of this object.
      */
+    @Override
     public void recycle() {
         try {
             lock();
@@ -435,6 +443,7 @@ public class DeltaSession extends StandardSession implements Externalizable,Clus
     /**
      * Return a string representation of this object.
      */
+    @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
         sb.append("DeltaSession[");
@@ -538,6 +547,7 @@ public class DeltaSession extends StandardSession implements Externalizable,Clus
      * @exception IllegalStateException
      *                if this method is called on an invalidated session
      */
+    @Override
     public void removeAttribute(String name, boolean notify) {
         removeAttribute(name, notify, true);
     }
@@ -567,6 +577,7 @@ public class DeltaSession extends StandardSession implements Externalizable,Clus
      * @exception IllegalStateException
      *                if this method is called on an invalidated session
      */
+    @Override
     public void setAttribute(String name, Object value) {
         setAttribute(name, value, true, true);
     }
@@ -691,6 +702,7 @@ public class DeltaSession extends StandardSession implements Externalizable,Clus
      * @exception IOException
      *                if an input/output error occurs
      */
+    @Override
     protected void writeObject(ObjectOutputStream stream) throws IOException {
         writeObject((ObjectOutput)stream);
     }
index 6077802..4f171dd 100644 (file)
@@ -152,6 +152,7 @@ public class JvmRouteBinderValve extends ValveBase implements ClusterValve, Life
     /**
      * Return descriptive information about this implementation.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -211,6 +212,7 @@ public class JvmRouteBinderValve extends ValveBase implements ClusterValve, Life
      * @exception ServletException
      *                if a servlet error has occurred
      */
+    @Override
     public void invoke(Request request, Response response) throws IOException,
             ServletException {
 
index 007579d..b506895 100644 (file)
@@ -108,6 +108,7 @@ public class JvmRouteSessionIDBinderListener extends ClusterListener {
      * @param msg
      *            ClusterMessage - the message received from the cluster
      */
+    @Override
     public void messageReceived(ClusterMessage msg) {
         if (msg instanceof SessionIDMessage) {
             SessionIDMessage sessionmsg = (SessionIDMessage) msg;
@@ -160,6 +161,7 @@ public class JvmRouteSessionIDBinderListener extends ClusterListener {
      *         invoked. If false is returned, the messageReceived method will
      *         not be invoked.
      */
+    @Override
     public boolean accept(ClusterMessage msg) {
         return (msg instanceof SessionIDMessage);
     }
index 1e2e0f7..632668c 100644 (file)
@@ -81,6 +81,7 @@ implements org.apache.catalina.ha.ClusterSession{
     }
 
 
+    @Override
     public void removeAttribute(String name) {
         setIsDirty(true);
         super.removeAttribute(name);
@@ -90,6 +91,7 @@ implements org.apache.catalina.ha.ClusterSession{
      * see parent description,
      * plus we also notify other nodes in the cluster
      */
+    @Override
     public void removeAttribute(String name, boolean notify) {
         setIsDirty(true);
         super.removeAttribute(name,notify);
@@ -99,6 +101,7 @@ implements org.apache.catalina.ha.ClusterSession{
     /**
      * Sets an attribute and notifies the other nodes in the cluster
      */
+    @Override
     public void setAttribute(String name, Object value)
     {
         if ( value == null ) {
@@ -111,6 +114,7 @@ implements org.apache.catalina.ha.ClusterSession{
         super.setAttribute(name,value);
     }
 
+    @Override
     public void setMaxInactiveInterval(int interval) {
         setIsDirty(true);
         super.setMaxInactiveInterval(interval);
@@ -136,11 +140,13 @@ implements org.apache.catalina.ha.ClusterSession{
      *
      * @param principal The new Principal, or <code>null</code> if none
      */
+    @Override
     public void setPrincipal(Principal principal) {
         super.setPrincipal(principal);
         setIsDirty(true);
     }
 
+    @Override
     public void expire() {
         SimpleTcpReplicationManager mgr =(SimpleTcpReplicationManager)getManager();
         mgr.sessionInvalidated(getIdInternal());
@@ -148,6 +154,7 @@ implements org.apache.catalina.ha.ClusterSession{
         super.expire();
     }
 
+    @Override
     public void invalidate() {
         SimpleTcpReplicationManager mgr =(SimpleTcpReplicationManager)getManager();
         mgr.sessionInvalidated(getIdInternal());
@@ -166,6 +173,7 @@ implements org.apache.catalina.ha.ClusterSession{
      * @exception ClassNotFoundException if an unknown class is specified
      * @exception IOException if an input/output error occurs
      */
+    @Override
     public void readObjectData(ObjectInputStream stream)
         throws ClassNotFoundException, IOException {
 
@@ -183,6 +191,7 @@ implements org.apache.catalina.ha.ClusterSession{
      *
      * @exception IOException if an input/output error occurs
      */
+    @Override
     public void writeObjectData(ObjectOutputStream stream)
         throws IOException {
 
@@ -252,6 +261,7 @@ implements org.apache.catalina.ha.ClusterSession{
 
     }
 
+    @Override
     public String toString() {
         StringBuilder buf = new StringBuilder("ReplicatedSession id=");
         buf.append(getIdInternal()).append(" ref=").append(super.toString()).append("\n");
@@ -270,12 +280,14 @@ implements org.apache.catalina.ha.ClusterSession{
     public void setAccessCount(int accessCount) {
         this.accessCount.set(accessCount);
     }
+    @Override
     public long getLastAccessedTime() {
         return lastAccessedTime;
     }
     public void setLastAccessedTime(long lastAccessedTime) {
         this.lastAccessedTime = lastAccessedTime;
     }
+    @Override
     public long getThisAccessedTime() {
         return thisAccessedTime;
     }
index f2258ce..a32b1b4 100644 (file)
@@ -181,6 +181,7 @@ public class SerializablePrincipal  implements java.io.Serializable {
      * Return a String representation of this object, which exposes only
      * information that should be public.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("SerializablePrincipal[");
index 5f1c41a..f698c2b 100644 (file)
@@ -37,7 +37,8 @@ public class SessionIDMessage extends ClusterMessageBase implements ClusterMessa
        private String host ;
        private String contextPath;
 
-       public String getUniqueId() {
+       @Override
+    public String getUniqueId() {
                StringBuilder result = new StringBuilder(getOrignalSessionID());
                result.append("#-#");
                result.append(getHost());
@@ -122,7 +123,8 @@ public class SessionIDMessage extends ClusterMessageBase implements ClusterMessa
                this.orignalSessionID = orignalSessionID;
        }
 
-       public String toString() {
+       @Override
+    public String toString() {
            return "SESSIONID-UPDATE#" + getHost() + "." + getContextPath() + "#" + getOrignalSessionID() + ":" + getBackupSessionID();
        }
 
index 8f03abb..fc07532 100644 (file)
@@ -113,6 +113,7 @@ public class SessionMessageImpl extends ClusterMessageBase implements SessionMes
     /**
      * set message send time but only the first setting works (one shot)
      */
+    @Override
     public void setTimestamp(long time) {
         synchronized(this) {
             if(!timestampSet) {
@@ -122,6 +123,7 @@ public class SessionMessageImpl extends ClusterMessageBase implements SessionMes
         }
     }
     
+    @Override
     public long getTimestamp() { return serializationTimestamp;}
     
     /**
@@ -146,13 +148,16 @@ public class SessionMessageImpl extends ClusterMessageBase implements SessionMes
     public String getContextName() {
        return mContextName;
     }
+    @Override
     public String getUniqueId() {
         return uniqueId;
     }
+    @Override
     public void setUniqueId(String uniqueId) {
         this.uniqueId = uniqueId;
     }
     
+    @Override
     public String toString() {
         return getEventTypeString() + "#" + getContextName() + "#" + getSessionID() ;
     }
index 32c925a..bd8cc89 100644 (file)
@@ -179,6 +179,7 @@ public class SimpleTcpReplicationManager extends StandardManager implements Clus
     /**
      * Override persistence since they don't go hand in hand with replication for now.
      */
+    @Override
     public void unload() throws IOException {
         if ( !getDistributable() ) {
             super.unload();
@@ -238,6 +239,7 @@ public class SimpleTcpReplicationManager extends StandardManager implements Clus
      * @exception IllegalStateException if a new session cannot be
      *  instantiated for any reason
      */
+    @Override
     public Session createSession(String sessionId)
     {
         //create a session and notify the other nodes in the cluster
@@ -459,6 +461,7 @@ public class SimpleTcpReplicationManager extends StandardManager implements Clus
         return null;
     }
 
+    @Override
     public String getName() {
         return this.name;
     }
@@ -473,6 +476,7 @@ public class SimpleTcpReplicationManager extends StandardManager implements Clus
      * @exception LifecycleException if this component detects a fatal error
      *  that prevents this component from being used
      */
+    @Override
     public void start() throws LifecycleException {
         mManagerRunning = true;
         super.start();
@@ -535,6 +539,7 @@ public class SimpleTcpReplicationManager extends StandardManager implements Clus
      * @exception LifecycleException if this component detects a fatal error
      *  that needs to be reported
      */
+    @Override
     public void stop() throws LifecycleException
     {
         mManagerRunning = false;
@@ -551,10 +556,12 @@ public class SimpleTcpReplicationManager extends StandardManager implements Clus
         }
     }
 
+    @Override
     public void setDistributable(boolean dist) {
         this.distributable = dist;
     }
 
+    @Override
     public boolean getDistributable() {
         return distributable;
     }
index b746198..ebbc575 100644 (file)
@@ -131,6 +131,7 @@ public class ReplicationValve
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -323,6 +324,7 @@ public class ReplicationValve
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet error occurs
      */
+    @Override
     public void invoke(Request request, Response response)
         throws IOException, ServletException
     {
@@ -398,6 +400,7 @@ public class ReplicationValve
     /**
      * Return a String rendering of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("ReplicationValve[");
index 9db9a14..371d628 100644 (file)
@@ -503,6 +503,7 @@ public class WebappLoader
     /**
      * Return a String representation of this component.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("WebappLoader[");
index 93568ae..8ba3bc7 100644 (file)
@@ -109,6 +109,7 @@ public final class HTMLManagerServlet extends ManagerServlet {
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet-specified error occurs
      */
+    @Override
     public void doGet(HttpServletRequest request,
                       HttpServletResponse response)
         throws IOException, ServletException {
@@ -161,6 +162,7 @@ public final class HTMLManagerServlet extends ManagerServlet {
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet-specified error occurs
      */
+    @Override
     public void doPost(HttpServletRequest request,
                       HttpServletResponse response)
         throws IOException, ServletException {
@@ -729,6 +731,7 @@ public final class HTMLManagerServlet extends ManagerServlet {
     /**
      * @see javax.servlet.Servlet#getServletInfo()
      */
+    @Override
     public String getServletInfo() {
         return "HTMLManagerServlet, Copyright (c) The Apache Software Foundation";
     }   
@@ -736,6 +739,7 @@ public final class HTMLManagerServlet extends ManagerServlet {
     /**
      * @see javax.servlet.GenericServlet#init()
      */
+    @Override
     public void init() throws ServletException {
         super.init();
     }   
@@ -986,60 +990,70 @@ public final class HTMLManagerServlet extends ManagerServlet {
         Comparator<Session> comparator = null;
         if ("CreationTime".equalsIgnoreCase(sortBy)) {
             comparator = new BaseSessionComparator<Date>() {
+                @Override
                 public Comparable<Date> getComparableObject(Session session) {
                     return new Date(session.getCreationTime());
                 }
             };
         } else if ("id".equalsIgnoreCase(sortBy)) {
             comparator = new BaseSessionComparator<String>() {
+                @Override
                 public Comparable<String> getComparableObject(Session session) {
                     return session.getId();
                 }
             };
         } else if ("LastAccessedTime".equalsIgnoreCase(sortBy)) {
             comparator = new BaseSessionComparator<Date>() {
+                @Override
                 public Comparable<Date> getComparableObject(Session session) {
                     return new Date(session.getLastAccessedTime());
                 }
             };
         } else if ("MaxInactiveInterval".equalsIgnoreCase(sortBy)) {
             comparator = new BaseSessionComparator<Date>() {
+                @Override
                 public Comparable<Date> getComparableObject(Session session) {
                     return new Date(session.getMaxInactiveInterval());
                 }
             };
         } else if ("new".equalsIgnoreCase(sortBy)) {
             comparator = new BaseSessionComparator<Boolean>() {
+                @Override
                 public Comparable<Boolean> getComparableObject(Session session) {
                     return Boolean.valueOf(session.getSession().isNew());
                 }
             };
         } else if ("locale".equalsIgnoreCase(sortBy)) {
             comparator = new BaseSessionComparator<String>() {
+                @Override
                 public Comparable<String> getComparableObject(Session session) {
                     return JspHelper.guessDisplayLocaleFromSession(session);
                 }
             };
         } else if ("user".equalsIgnoreCase(sortBy)) {
             comparator = new BaseSessionComparator<String>() {
+                @Override
                 public Comparable<String> getComparableObject(Session session) {
                     return JspHelper.guessDisplayUserFromSession(session);
                 }
             };
         } else if ("UsedTime".equalsIgnoreCase(sortBy)) {
             comparator = new BaseSessionComparator<Date>() {
+                @Override
                 public Comparable<Date> getComparableObject(Session session) {
                     return new Date(SessionUtils.getUsedTimeForSession(session));
                 }
             };
         } else if ("InactiveTime".equalsIgnoreCase(sortBy)) {
             comparator = new BaseSessionComparator<Date>() {
+                @Override
                 public Comparable<Date> getComparableObject(Session session) {
                     return new Date(SessionUtils.getInactiveTimeForSession(session));
                 }
             };
         } else if ("TTL".equalsIgnoreCase(sortBy)) {
             comparator = new BaseSessionComparator<Date>() {
+                @Override
                 public Comparable<Date> getComparableObject(Session session) {
                     return new Date(SessionUtils.getTTLForSession(session));
                 }
index 1c0d5b1..69965f0 100644 (file)
@@ -55,6 +55,7 @@ public class JMXProxyServlet extends HttpServlet  {
     /**
      * Initialize this servlet.
      */
+    @Override
     public void init() throws ServletException {
         // Retrieve the MBean server
         registry = Registry.getRegistry(null, null);
@@ -71,6 +72,7 @@ public class JMXProxyServlet extends HttpServlet  {
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet-specified error occurs
      */
+    @Override
     public void doGet(HttpServletRequest request,
                       HttpServletResponse response)
         throws IOException, ServletException
index fab9c4e..643ac26 100644 (file)
@@ -292,6 +292,7 @@ public class ManagerServlet
     /**
      * Finalize this servlet.
      */
+    @Override
     public void destroy() {
 
         // No actions necessary
@@ -308,6 +309,7 @@ public class ManagerServlet
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet-specified error occurs
      */
+    @Override
     public void doGet(HttpServletRequest request,
                       HttpServletResponse response)
         throws IOException, ServletException {
@@ -389,6 +391,7 @@ public class ManagerServlet
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet-specified error occurs
      */
+    @Override
     public void doPut(HttpServletRequest request,
                       HttpServletResponse response)
         throws IOException, ServletException {
@@ -429,6 +432,7 @@ public class ManagerServlet
     /**
      * Initialize this servlet.
      */
+    @Override
     public void init() throws ServletException {
 
         // Ensure that our ContainerServlet properties have been set
index de6fa44..a1fcec1 100644 (file)
@@ -98,6 +98,7 @@ public class StatusManagerServlet
     /**
      * Initialize this servlet.
      */
+    @Override
     public void init() throws ServletException {
 
         // Retrieve the MBean server
@@ -160,6 +161,7 @@ public class StatusManagerServlet
     /**
      * Finalize this servlet.
      */
+    @Override
     public void destroy() {
 
         // No actions necessary
@@ -176,6 +178,7 @@ public class StatusManagerServlet
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet-specified error occurs
      */
+    @Override
     public void doGet(HttpServletRequest request,
                       HttpServletResponse response)
         throws IOException, ServletException {
index dc47568..cf304e4 100644 (file)
@@ -82,6 +82,7 @@ public final class HTMLHostManagerServlet extends HostManagerServlet {
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet-specified error occurs
      */
+    @Override
     public void doGet(HttpServletRequest request,
                       HttpServletResponse response)
         throws IOException, ServletException {
index cbd677e..4bff73c 100644 (file)
@@ -191,6 +191,7 @@ public class HostManagerServlet
     /**
      * Finalize this servlet.
      */
+    @Override
     public void destroy() {
 
         // No actions necessary
@@ -207,6 +208,7 @@ public class HostManagerServlet
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet-specified error occurs
      */
+    @Override
     public void doGet(HttpServletRequest request,
                       HttpServletResponse response)
         throws IOException, ServletException {
@@ -307,6 +309,7 @@ public class HostManagerServlet
     /**
      * Initialize this servlet.
      */
+    @Override
     public void init() throws ServletException {
 
         // Ensure that our ContainerServlet properties have been set
index 8cab9de..b36d8a8 100644 (file)
@@ -67,7 +67,8 @@ public class ClassNameMBean extends BaseModelMBean {
       * Return the fully qualified Java class name of the managed object
       * for this MBean.
       */
-     public String getClassName() {
+     @Override
+    public String getClassName() {
 
          return (this.resource.getClass().getName());
 
index 74ce189..1c36a2f 100644 (file)
@@ -75,6 +75,7 @@ public class ConnectorMBean extends ClassNameMBean {
      * @exception ReflectionException if a Java reflection exception
      *  occurs when invoking the getter
      */
+    @Override
     public Object getAttribute(String name) throws AttributeNotFoundException,
             MBeanException, ReflectionException {
 
@@ -111,7 +112,8 @@ public class ConnectorMBean extends ClassNameMBean {
      * @exception ReflectionException if a Java reflection exception
      *  occurs when invoking the getter
      */
-     public void setAttribute(Attribute attribute)
+     @Override
+    public void setAttribute(Attribute attribute)
             throws AttributeNotFoundException, MBeanException,
             ReflectionException {
 
index e5825ff..dd72e53 100644 (file)
@@ -81,7 +81,8 @@ public class ContextEnvironmentMBean extends BaseModelMBean {
      * @exception ReflectionException if a Java reflection exception
      *  occurs when invoking the getter
      */
-     public void setAttribute(Attribute attribute)
+     @Override
+    public void setAttribute(Attribute attribute)
         throws AttributeNotFoundException, MBeanException,
         ReflectionException {
 
index 3449a6b..66ed03f 100644 (file)
@@ -81,7 +81,8 @@ public class ContextResourceLinkMBean extends BaseModelMBean {
      * @exception ReflectionException if a Java reflection exception
      *  occurs when invoking the getter
      */
-     public void setAttribute(Attribute attribute)
+     @Override
+    public void setAttribute(Attribute attribute)
         throws AttributeNotFoundException, MBeanException,
         ReflectionException {
 
index 8329e71..1101a56 100644 (file)
@@ -80,6 +80,7 @@ public class ContextResourceMBean extends BaseModelMBean {
      * @exception ReflectionException if a Java reflection exception
      *  occurs when invoking the getter
      */
+    @Override
     public Object getAttribute(String name)
         throws AttributeNotFoundException, MBeanException,
         ReflectionException {
@@ -136,7 +137,8 @@ public class ContextResourceMBean extends BaseModelMBean {
      * @exception ReflectionException if a Java reflection exception
      *  occurs when invoking the getter
      */
-     public void setAttribute(Attribute attribute)
+     @Override
+    public void setAttribute(Attribute attribute)
         throws AttributeNotFoundException, MBeanException,
         ReflectionException {
 
index bbcbbf7..998d9b0 100644 (file)
@@ -92,6 +92,7 @@ public class CombinedRealm extends RealmBase {
      * @param credentials Password or other credentials to use in
      *  authenticating this username
      */
+    @Override
     public Principal authenticate(String username, byte[] credentials) {
         Principal authenticatedUser = null;
         
@@ -130,6 +131,7 @@ public class CombinedRealm extends RealmBase {
      * @param md5a2 Second MD5 digest used to calculate the digest :
      * MD5(Method + ":" + uri)
      */
+    @Override
     public Principal authenticate(String username, String clientDigest,
             String once, String nc, String cnonce, String qop,
             String realmName, String md5a2) {
@@ -166,6 +168,7 @@ public class CombinedRealm extends RealmBase {
      * @param credentials Password or other credentials to use in
      *  authenticating this username
      */
+    @Override
     public Principal authenticate(String username, String credentials) {
         Principal authenticatedUser = null;
         
@@ -196,6 +199,7 @@ public class CombinedRealm extends RealmBase {
      *
      * @param container The associated Container
      */
+    @Override
     public void setContainer(Container container) {
         for(Realm realm : realms) {
             // Set the realmPath for JMX naming
@@ -220,6 +224,7 @@ public class CombinedRealm extends RealmBase {
      * @exception LifecycleException if this component detects a fatal error
      *  that prevents this component from being used
      */
+    @Override
     public void start() throws LifecycleException {
         // Start 'sub-realms' then this one
         for (Realm realm : realms) {
@@ -240,7 +245,8 @@ public class CombinedRealm extends RealmBase {
      * @exception LifecycleException if this component detects a fatal error
      *  that needs to be reported
      */
-     public void stop() throws LifecycleException {
+     @Override
+    public void stop() throws LifecycleException {
         // Stop this realm, then the sub-realms (reverse order to start)
         super.stop();
         for (Realm realm : realms) {
@@ -258,6 +264,7 @@ public class CombinedRealm extends RealmBase {
      * @param certs Array of client certificates, with the first one in
      *  the array being the certificate of the client itself.
      */
+    @Override
     public Principal authenticate(X509Certificate[] certs) {
         Principal authenticatedUser = null;
         String username = null;
index 6a05831..eb5dd25 100644 (file)
@@ -267,6 +267,7 @@ public class DataSourceRealm
      * @param credentials Password or other credentials to use in
      *  authenticating this username
      */
+    @Override
     public Principal authenticate(String username, String credentials) {
        
        // No user or no credentials
@@ -400,6 +401,7 @@ public class DataSourceRealm
     /**
      * Return a short name for this Realm implementation.
      */
+    @Override
     protected String getName() {
 
         return (name);
@@ -409,6 +411,7 @@ public class DataSourceRealm
     /**
      * Return the password associated with the given principal's user name.
      */
+    @Override
     protected String getPassword(String username) {
 
         Connection dbConnection = null;
@@ -474,6 +477,7 @@ public class DataSourceRealm
     /**
      * Return the Principal associated with the given user name.
      */
+    @Override
     protected Principal getPrincipal(String username) {
        Connection dbConnection = open();
         if (dbConnection == null) {
@@ -607,6 +611,7 @@ public class DataSourceRealm
      * @exception LifecycleException if this component detects a fatal error
      *  that prevents it from being started
      */
+    @Override
     public void start() throws LifecycleException {
 
         // Perform normal superclass initialization
@@ -640,6 +645,7 @@ public class DataSourceRealm
      * @exception LifecycleException if this component detects a fatal error
      *  that needs to be reported
      */
+    @Override
     public void stop() throws LifecycleException {
 
         // Perform normal superclass finalization
index a28df51..6e6a368 100644 (file)
@@ -189,6 +189,7 @@ public class GenericPrincipal implements Principal {
      * Return a String representation of this object, which exposes only
      * information that should be public.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("GenericPrincipal[");
index 9f1ff32..0daa56b 100644 (file)
@@ -216,6 +216,7 @@ public class JAASMemoryLoginModule extends MemoryRealm implements LoginModule {
      * @param request Request we are processing
      * @param context Context the Request is mapped to
      */
+    @Override
     public SecurityConstraint [] findSecurityConstraints(Request request,
                                                      Context context) {
         ArrayList<SecurityConstraint> results = null;
index d75de1d..0c573ff 100644 (file)
@@ -220,6 +220,7 @@ public class JAASRealm
         return useContextClassLoader;
     } 
 
+    @Override
     public void setContainer(Container container) {
         super.setContainer(container);
 
@@ -320,6 +321,7 @@ public class JAASRealm
      * @param credentials Password or other credentials to use in
      *  authenticating this username
      */
+    @Override
     public Principal authenticate(String username, String credentials) {
         return authenticate(username,
                 new JAASCallbackHandler(this, username, credentials));
@@ -340,6 +342,7 @@ public class JAASRealm
      * @param md5a2         Second MD5 digest used to calculate the digest
      *                          MD5(Method + ":" + uri)
      */
+    @Override
     public Principal authenticate(String username, String clientDigest,
             String nonce, String nc, String cnonce, String qop,
             String realmName, String md5a2) {
@@ -446,6 +449,7 @@ public class JAASRealm
     /**
      * Return a short name for this <code>Realm</code> implementation.
      */
+    @Override
     protected String getName() {
 
         return (name);
@@ -458,6 +462,7 @@ public class JAASRealm
      * always returns null as the JAASRealm has no way of obtaining this
      * information.
      */
+    @Override
     protected String getPassword(String username) {
 
         return (null);
@@ -468,6 +473,7 @@ public class JAASRealm
     /**
      * Return the <code>Principal</code> associated with the given user name.
      */
+    @Override
     protected Principal getPrincipal(String username) {
 
         return authenticate(username,
@@ -580,6 +586,7 @@ public class JAASRealm
      * @exception LifecycleException if this component detects a fatal error
      *  that prevents it from being started
      */
+    @Override
     public void start() throws LifecycleException {
 
         // Perform normal superclass initialization
@@ -598,6 +605,7 @@ public class JAASRealm
      * @exception LifecycleException if this component detects a fatal error
      *  that needs to be reported
      */
+    @Override
     public void stop() throws LifecycleException {
 
         // Perform normal superclass finalization
index 9fb54b5..cf935eb 100644 (file)
@@ -329,6 +329,7 @@ public class JDBCRealm
      * @param credentials Password or other credentials to use in
      *  authenticating this username
      */
+    @Override
     public synchronized Principal authenticate(String username, String credentials) {
 
         // Number of tries is the numebr of attempts to connect to the database
@@ -513,6 +514,7 @@ public class JDBCRealm
     /**
      * Return a short name for this Realm implementation.
      */
+    @Override
     protected String getName() {
 
         return (name);
@@ -523,6 +525,7 @@ public class JDBCRealm
     /**
      * Return the password associated with the given principal's user name.
      */
+    @Override
     protected synchronized String getPassword(String username) {
 
         // Look up the user's credentials
@@ -593,6 +596,7 @@ public class JDBCRealm
     /**
      * Return the Principal associated with the given user name.
      */
+    @Override
     protected synchronized Principal getPrincipal(String username) {
 
         return (new GenericPrincipal(username,
@@ -763,6 +767,7 @@ public class JDBCRealm
      * @exception LifecycleException if this component detects a fatal error
      *  that prevents it from being started
      */
+    @Override
     public void start() throws LifecycleException {
 
         // Perform normal superclass initialization
@@ -785,6 +790,7 @@ public class JDBCRealm
      * @exception LifecycleException if this component detects a fatal error
      *  that needs to be reported
      */
+    @Override
     public void stop() throws LifecycleException {
 
         // Perform normal superclass finalization
index c35c863..96ecdc9 100644 (file)
@@ -886,6 +886,7 @@ public class JNDIRealm extends RealmBase {
      * @param credentials Password or other credentials to use in
      *  authenticating this username
      */
+    @Override
     public Principal authenticate(String username, String credentials) {
 
         DirContext context = null;
@@ -1782,6 +1783,7 @@ public class JNDIRealm extends RealmBase {
     /**
      * Return a short name for this Realm implementation.
      */
+    @Override
     protected String getName() {
 
         return (name);
@@ -1792,6 +1794,7 @@ public class JNDIRealm extends RealmBase {
     /**
      * Return the password associated with the given principal's user name.
      */
+    @Override
     protected String getPassword(String username) {
 
         return (null);
@@ -1801,6 +1804,7 @@ public class JNDIRealm extends RealmBase {
     /**
      * Return the Principal associated with the given user name.
      */
+    @Override
     protected Principal getPrincipal(String username) {
 
         DirContext context = null;
@@ -1985,6 +1989,7 @@ public class JNDIRealm extends RealmBase {
      * @exception LifecycleException if this component detects a fatal error
      *  that prevents it from being started
      */
+    @Override
     public void start() throws LifecycleException {
 
         // Perform normal superclass initialization
@@ -2006,6 +2011,7 @@ public class JNDIRealm extends RealmBase {
      * @exception LifecycleException if this component detects a fatal error
      *  that needs to be reported
      */
+    @Override
     public void stop() throws LifecycleException {
 
         // Perform normal superclass finalization
index 8ee69d2..c2492bf 100644 (file)
@@ -85,11 +85,13 @@ public class LockOutRealm extends CombinedRealm {
      * @exception LifecycleException if this component detects a fatal error
      *  that prevents this component from being used
      */
+    @Override
     public void start() throws LifecycleException {
         // Configure the list of failed users to delete the oldest entry once it
         // exceeds the specified size
         failedUsers = new LinkedHashMap<String, LockRecord>(cacheSize, 0.75f,
                 true) {
+            @Override
             protected boolean removeEldestEntry(
                     Map.Entry<String, LockRecord> eldest) {
                 if (size() > cacheSize) {
@@ -119,6 +121,7 @@ public class LockOutRealm extends CombinedRealm {
      * @param credentials Password or other credentials to use in
      *  authenticating this username
      */
+    @Override
     public Principal authenticate(String username, byte[] credentials) {
         if (isLocked(username)) {
             // Trying to authenticate a locked user is an automatic failure
@@ -152,6 +155,7 @@ public class LockOutRealm extends CombinedRealm {
      * @param md5a2 Second MD5 digest used to calculate the digest :
      * MD5(Method + ":" + uri)
      */
+    @Override
     public Principal authenticate(String username, String clientDigest,
             String once, String nc, String cnonce, String qop,
             String realmName, String md5a2) {
@@ -184,6 +188,7 @@ public class LockOutRealm extends CombinedRealm {
      * @param credentials Password or other credentials to use in
      *  authenticating this username
      */
+    @Override
     public Principal authenticate(String username, String credentials) {
         if (isLocked(username)) {
             // Trying to authenticate a locked user is an automatic failure
@@ -211,6 +216,7 @@ public class LockOutRealm extends CombinedRealm {
      * @param certs Array of client certificates, with the first one in
      *  the array being the certificate of the client itself.
      */
+    @Override
     public Principal authenticate(X509Certificate[] certs) {
         String username = null;
         if (certs != null && certs.length >0) {
index 507be97..3d4987b 100644 (file)
@@ -101,6 +101,7 @@ public class MemoryRealm  extends RealmBase {
      * the corresponding version number, in the format
      * <code>&lt;description&gt;/&lt;version&gt;</code>.
      */
+    @Override
     public String getInfo() {
 
         return info;
@@ -142,6 +143,7 @@ public class MemoryRealm  extends RealmBase {
      * @param credentials Password or other credentials to use in
      *  authenticating this username
      */
+    @Override
     public Principal authenticate(String username, String credentials) {
 
         GenericPrincipal principal = principals.get(username);
@@ -232,6 +234,7 @@ public class MemoryRealm  extends RealmBase {
     /**
      * Return a short name for this Realm implementation.
      */
+    @Override
     protected String getName() {
 
         return (name);
@@ -242,6 +245,7 @@ public class MemoryRealm  extends RealmBase {
     /**
      * Return the password associated with the given principal's user name.
      */
+    @Override
     protected String getPassword(String username) {
 
         GenericPrincipal principal = principals.get(username);
@@ -257,6 +261,7 @@ public class MemoryRealm  extends RealmBase {
     /**
      * Return the Principal associated with the given user name.
      */
+    @Override
     protected Principal getPrincipal(String username) {
 
         return principals.get(username);
@@ -282,6 +287,7 @@ public class MemoryRealm  extends RealmBase {
      * @exception LifecycleException if this component detects a fatal error
      *  that prevents it from being started
      */
+    @Override
     public synchronized void start() throws LifecycleException {
 
         // Perform normal superclass initialization
@@ -322,6 +328,7 @@ public class MemoryRealm  extends RealmBase {
      * @exception LifecycleException if this component detects a fatal error
      *  that needs to be reported
      */
+    @Override
     public synchronized void stop() throws LifecycleException {
 
         // Perform normal superclass finalization
index 35d436e..66cba13 100644 (file)
@@ -87,6 +87,7 @@ public class MemoryRuleSet extends RuleSetBase {
      * @param digester Digester instance to which the new Rule instances
      *  should be added.
      */
+    @Override
     public void addRuleInstances(Digester digester) {
 
         digester.addRule(prefix + "user", new MemoryUserRule());
@@ -116,6 +117,7 @@ final class MemoryUserRule extends Rule {
      *
      * @param attributes The attribute list for this element
      */
+    @Override
     public void begin(String namespace, String name, Attributes attributes)
         throws Exception {
 
index e2970b1..a99dc20 100644 (file)
@@ -1463,6 +1463,7 @@ public abstract class RealmBase
             this.name = name;
         }
         
+        @Override
         public boolean equals(Object o)
         {
             boolean equals = false;
@@ -1473,10 +1474,12 @@ public abstract class RealmBase
             }
             return equals;
         }
+        @Override
         public int hashCode()
         {
             return name.hashCode();
         }
+        @Override
         public String toString()
         {
             return name;
index c9db3ea..1e050a1 100644 (file)
@@ -96,6 +96,7 @@ public class UserDatabaseRealm
      * the corresponding version number, in the format
      * <code>&lt;description&gt;/&lt;version&gt;</code>.
      */
+    @Override
     public String getInfo() {
 
         return info;
@@ -140,6 +141,7 @@ public class UserDatabaseRealm
      * @param principal Principal for whom the role is to be checked
      * @param role Security role to be checked
      */
+    @Override
     public boolean hasRole(Principal principal, String role) {
         if( principal instanceof GenericPrincipal) {
             GenericPrincipal gp = (GenericPrincipal)principal;
@@ -180,6 +182,7 @@ public class UserDatabaseRealm
     /**
      * Return a short name for this Realm implementation.
      */
+    @Override
     protected String getName() {
 
         return (name);
@@ -190,6 +193,7 @@ public class UserDatabaseRealm
     /**
      * Return the password associated with the given principal's user name.
      */
+    @Override
     protected String getPassword(String username) {
 
         User user = database.findUser(username);
@@ -206,6 +210,7 @@ public class UserDatabaseRealm
     /**
      * Return the Principal associated with the given user name.
      */
+    @Override
     protected Principal getPrincipal(String username) {
 
         User user = database.findUser(username);
@@ -241,6 +246,7 @@ public class UserDatabaseRealm
      * @exception LifecycleException if this component detects a fatal error
      *  that prevents it from being started
      */
+    @Override
     public synchronized void start() throws LifecycleException {
 
         // Perform normal superclass initialization
@@ -270,6 +276,7 @@ public class UserDatabaseRealm
      * @exception LifecycleException if this component detects a fatal error
      *  that needs to be reported
      */
+    @Override
     public synchronized void stop() throws LifecycleException {
 
         // Perform normal superclass finalization
index 3841341..a4c1cac 100644 (file)
@@ -283,6 +283,7 @@ public final class CGIServlet extends HttpServlet {
      *                                  interferes with the servlet's normal
      *                                  operation
      */
+    @Override
     public void init(ServletConfig config) throws ServletException {
 
         super.init(config);
@@ -529,6 +530,7 @@ public final class CGIServlet extends HttpServlet {
      * @see javax.servlet.http.HttpServlet
      *
      */
+    @Override
     protected void doPost(HttpServletRequest req, HttpServletResponse res)
         throws IOException, ServletException {
         doGet(req, res);
@@ -548,6 +550,7 @@ public final class CGIServlet extends HttpServlet {
      * @see javax.servlet.http.HttpServlet
      *
      */
+    @Override
     protected void doGet(HttpServletRequest req, HttpServletResponse res)
         throws ServletException, IOException {
 
@@ -1168,6 +1171,7 @@ public final class CGIServlet extends HttpServlet {
          * @return  HTML string containing CGI environment info
          *
          */
+        @Override
         public String toString() {
 
             StringBuilder sb = new StringBuilder();
@@ -1638,6 +1642,7 @@ public final class CGIServlet extends HttpServlet {
                 final BufferedReader stdErrRdr = commandsStdErr ;
 
                 new Thread() {
+                    @Override
                     public void run () {
                         sendToLog(stdErrRdr) ;
                     }
@@ -1849,6 +1854,7 @@ public final class CGIServlet extends HttpServlet {
         /**
          * @see java.io.InputStream#read()
          */
+        @Override
         public int read() throws IOException {
             if (state == STATE_HEADER_END) {
                 return -1;
index 2fd6265..18ac133 100644 (file)
@@ -213,6 +213,7 @@ public class DefaultServlet
     /**
      * Finalize this servlet.
      */
+    @Override
     public void destroy() {
         // NOOP
     }
@@ -221,6 +222,7 @@ public class DefaultServlet
     /**
      * Initialize this servlet.
      */
+    @Override
     public void init() throws ServletException {
 
         if (getServletConfig().getInitParameter("debug") != null)
@@ -326,6 +328,7 @@ public class DefaultServlet
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet-specified error occurs
      */
+    @Override
     protected void doGet(HttpServletRequest request,
                          HttpServletResponse response)
         throws IOException, ServletException {
@@ -345,6 +348,7 @@ public class DefaultServlet
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet-specified error occurs
      */
+    @Override
     protected void doHead(HttpServletRequest request,
                           HttpServletResponse response)
         throws IOException, ServletException {
@@ -374,6 +378,7 @@ public class DefaultServlet
      * @exception ServletException  if the request for the
      *                                  OPTIONS cannot be handled
      */
+    @Override
     protected void doOptions(HttpServletRequest req, HttpServletResponse resp)
         throws ServletException, IOException {
 
@@ -407,6 +412,7 @@ public class DefaultServlet
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet-specified error occurs
      */
+    @Override
     protected void doPost(HttpServletRequest request,
                           HttpServletResponse response)
         throws IOException, ServletException {
@@ -423,6 +429,7 @@ public class DefaultServlet
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet-specified error occurs
      */
+    @Override
     protected void doPut(HttpServletRequest req, HttpServletResponse resp)
         throws ServletException, IOException {
 
@@ -562,6 +569,7 @@ public class DefaultServlet
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet-specified error occurs
      */
+    @Override
     protected void doDelete(HttpServletRequest req, HttpServletResponse resp)
         throws ServletException, IOException {
 
index c8a3ed2..5d1f54d 100644 (file)
@@ -258,6 +258,7 @@ public class WebdavServlet
     /**
      * Initialize this servlet.
      */
+    @Override
     public void init()
         throws ServletException {
 
@@ -308,6 +309,7 @@ public class WebdavServlet
     /**
      * Handles the special WebDAV methods.
      */
+    @Override
     protected void service(HttpServletRequest req, HttpServletResponse resp)
         throws ServletException, IOException {
 
@@ -351,6 +353,7 @@ public class WebdavServlet
      * and false if any of the conditions is not satisfied, in which case
      * request processing is stopped
      */
+    @Override
     protected boolean checkIfHeaders(HttpServletRequest request,
                                      HttpServletResponse response,
                                      ResourceAttributes resourceAttributes)
@@ -373,6 +376,7 @@ public class WebdavServlet
      *
      * @param request The servlet request we are processing
      */
+    @Override
     protected String getRelativePath(HttpServletRequest request) {
         // Are we being processed by a RequestDispatcher.include()?
         if (request.getAttribute(Globals.INCLUDE_REQUEST_URI_ATTR) != null) {
@@ -401,6 +405,7 @@ public class WebdavServlet
      * @throws ServletException If an error occurs
      * @throws IOException If an IO error occurs
      */
+    @Override
     protected void doOptions(HttpServletRequest req, HttpServletResponse resp)
         throws ServletException, IOException {
 
@@ -776,6 +781,7 @@ public class WebdavServlet
     /**
      * DELETE Method.
      */
+    @Override
     protected void doDelete(HttpServletRequest req, HttpServletResponse resp)
         throws ServletException, IOException {
 
@@ -803,6 +809,7 @@ public class WebdavServlet
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet-specified error occurs
      */
+    @Override
     protected void doPut(HttpServletRequest req, HttpServletResponse resp)
         throws ServletException, IOException {
 
@@ -2699,6 +2706,7 @@ public class WebdavServlet
         /**
          * Get a String representation of this lock token.
          */
+        @Override
         public String toString() {
 
             String result =  "Type:" + type + "\n";
index 02f0063..6eafdfb 100644 (file)
@@ -127,6 +127,7 @@ public final class FileStore extends StoreBase {
      * the corresponding version number, in the format
      * <code>&lt;description&gt;/&lt;version&gt;</code>.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -143,6 +144,7 @@ public final class FileStore extends StoreBase {
     /**
      * Return the name for this Store, used for logging.
      */
+    @Override
     public String getStoreName() {
         return(storeName);
     }
index c32e356..f9e0c53 100644 (file)
@@ -174,6 +174,7 @@ public class JDBCStore extends StoreBase {
     /**
      * Return the info for this Store.
      */
+    @Override
     public String getInfo() {
         return (info);
     }
@@ -210,6 +211,7 @@ public class JDBCStore extends StoreBase {
     /**
      * Return the name for this Store, used for logging.
      */
+    @Override
     public String getStoreName() {
         return (storeName);
     }
@@ -959,6 +961,7 @@ public class JDBCStore extends StoreBase {
     /**
      * Called once when this Store is first started.
      */
+    @Override
     public void start() throws LifecycleException {
         super.start();
 
@@ -971,6 +974,7 @@ public class JDBCStore extends StoreBase {
      * Called once when this Store is stopping.
      *
      */
+    @Override
     public void stop() throws LifecycleException {
         super.stop();
 
index 0959c7d..52933ad 100644 (file)
@@ -59,6 +59,7 @@ public final class PersistentManager extends PersistentManagerBase {
      * the corresponding version number, in the format
      * <code>&lt;description&gt;/&lt;version&gt;</code>.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -68,6 +69,7 @@ public final class PersistentManager extends PersistentManagerBase {
     /**
      * Return the descriptive short name of this Manager implementation.
      */
+    @Override
     public String getName() {
 
         return (name);
index 4aa4526..7f476d9 100644 (file)
@@ -324,6 +324,7 @@ public abstract class PersistentManagerBase
         * @param container
         *            The associated Container
         */
+    @Override
     public void setContainer(Container container) {
 
         // De-register from the old Container (if any)
@@ -348,6 +349,7 @@ public abstract class PersistentManagerBase
      * the corresponding version number, in the format
      * <code>&lt;description&gt;/&lt;version&gt;</code>.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -417,6 +419,7 @@ public abstract class PersistentManagerBase
     /**
      * Return the descriptive short name of this Manager implementation.
      */
+    @Override
     public String getName() {
 
         return (name);
@@ -537,7 +540,8 @@ public abstract class PersistentManagerBase
     /**
      * Implements the Manager interface, direct call to processExpires and processPersistenceChecks
      */
-       public void processExpires() {
+       @Override
+    public void processExpires() {
                
         long timeNow = System.currentTimeMillis();
         Session sessions[] = findSessions();
@@ -589,6 +593,7 @@ public abstract class PersistentManagerBase
      * @exception IOException if an input/output error occurs while
      *  processing this request
      */
+    @Override
     public Session findSession(String id) throws IOException {
 
         Session session = super.findSession(id);
@@ -689,6 +694,7 @@ public abstract class PersistentManagerBase
      *
      * @param session Session to be removed
      */
+    @Override
     public void remove(Session session) {
 
         super.remove (session);
index f2156ae..a8f3ea1 100644 (file)
@@ -160,6 +160,7 @@ public class StandardManager
      *
      * @param container The associated Container
      */
+    @Override
     public void setContainer(Container container) {
 
         // De-register from the old Container (if any)
@@ -184,6 +185,7 @@ public class StandardManager
      * the corresponding version number, in the format
      * <code>&lt;description&gt;/&lt;version&gt;</code>.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -236,6 +238,7 @@ public class StandardManager
     /**
      * Return the descriptive short name of this Manager implementation.
      */
+    @Override
     public String getName() {
 
         return (name);
@@ -280,6 +283,7 @@ public class StandardManager
      * @exception IllegalStateException if a new session cannot be
      *  instantiated for any reason
      */
+    @Override
     public Session createSession(String sessionId) {
 
         if ((maxActiveSessions >= 0) &&
index 22ec479..9a8196b 100644 (file)
@@ -941,6 +941,7 @@ public class StandardSession
     /**
      * Return a string representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder();
index f16c335..83d4feb 100644 (file)
@@ -57,6 +57,7 @@ public class ByteArrayServletOutputStream extends ServletOutputStream {
      *
      * @param b The parameter to write
      */
+    @Override
     public void write(int b) {
         buf.write(b);
     }
index 0b9d599..7133e4c 100644 (file)
@@ -233,11 +233,13 @@ public class ExpressionParseTree {
         /**
          * Returns true if the string is not empty.
          */
+        @Override
         public boolean evaluate() {
             return !(getValue().length() == 0);
         }
 
 
+        @Override
         public String toString() {
             return value.toString();
         }
@@ -278,11 +280,13 @@ public class ExpressionParseTree {
         }
     }
     private final class NotNode extends OppNode {
+        @Override
         public boolean evaluate() {
             return !left.evaluate();
         }
 
 
+        @Override
         public int getPrecedence() {
             return PRECEDENCE_NOT;
         }
@@ -291,16 +295,19 @@ public class ExpressionParseTree {
         /**
          * Overridden to pop only one value.
          */
+        @Override
         public void popValues(List<Node> values) {
             left = values.remove(0);
         }
 
 
+        @Override
         public String toString() {
             return left + " NOT";
         }
     }
     private final class AndNode extends OppNode {
+        @Override
         public boolean evaluate() {
             if (!left.evaluate()) // Short circuit
                 return false;
@@ -308,16 +315,19 @@ public class ExpressionParseTree {
         }
 
 
+        @Override
         public int getPrecedence() {
             return PRECEDENCE_LOGICAL;
         }
 
 
+        @Override
         public String toString() {
             return left + " " + right + " AND";
         }
     }
     private final class OrNode extends OppNode {
+        @Override
         public boolean evaluate() {
             if (left.evaluate()) // Short circuit
                 return true;
@@ -325,11 +335,13 @@ public class ExpressionParseTree {
         }
 
 
+        @Override
         public int getPrecedence() {
             return PRECEDENCE_LOGICAL;
         }
 
 
+        @Override
         public String toString() {
             return left + " " + right + " OR";
         }
@@ -342,46 +354,55 @@ public class ExpressionParseTree {
         }
     }
     private final class EqualNode extends CompareNode {
+        @Override
         public boolean evaluate() {
             return (compareBranches() == 0);
         }
 
 
+        @Override
         public int getPrecedence() {
             return PRECEDENCE_COMPARE;
         }
 
 
+        @Override
         public String toString() {
             return left + " " + right + " EQ";
         }
     }
     private final class GreaterThanNode extends CompareNode {
+        @Override
         public boolean evaluate() {
             return (compareBranches() > 0);
         }
 
 
+        @Override
         public int getPrecedence() {
             return PRECEDENCE_COMPARE;
         }
 
 
+        @Override
         public String toString() {
             return left + " " + right + " GT";
         }
     }
     private final class LessThanNode extends CompareNode {
+        @Override
         public boolean evaluate() {
             return (compareBranches() < 0);
         }
 
 
+        @Override
         public int getPrecedence() {
             return PRECEDENCE_COMPARE;
         }
 
 
+        @Override
         public String toString() {
             return left + " " + right + " LT";
         }
index eee984c..f466d49 100644 (file)
@@ -108,6 +108,7 @@ public class ResponseIncludeWrapper extends HttpServletResponseWrapper {
      * @exception java.io.IOException
      *                if the outputstream already been called
      */
+    @Override
     public PrintWriter getWriter() throws java.io.IOException {
         if (servletOutputStream == null) {
             if (printWriter == null) {
@@ -130,6 +131,7 @@ public class ResponseIncludeWrapper extends HttpServletResponseWrapper {
      * @exception java.io.IOException
      *                if the printwriter already been called
      */
+    @Override
     public ServletOutputStream getOutputStream() throws java.io.IOException {
         if (printWriter == null) {
             if (servletOutputStream == null) {
@@ -175,6 +177,7 @@ public class ResponseIncludeWrapper extends HttpServletResponseWrapper {
      * @return the content type of the resource referenced by this
      *   <code>ResponseIncludeWrapper</code>, or <code>null</code> if not known.
      */
+    @Override
     public String getContentType() {
         if (contentType == null) {
             String url = request.getRequestURI();
@@ -197,6 +200,7 @@ public class ResponseIncludeWrapper extends HttpServletResponseWrapper {
      *
      * @param mime a mime type
      */
+    @Override
     public void setContentType(String mime) {
         contentType = mime;
         if (contentType != null) {
@@ -205,6 +209,7 @@ public class ResponseIncludeWrapper extends HttpServletResponseWrapper {
     }
 
 
+    @Override
     public void addDateHeader(String name, long value) {
         super.addDateHeader(name, value);
         String lname = name.toLowerCase();
@@ -213,6 +218,7 @@ public class ResponseIncludeWrapper extends HttpServletResponseWrapper {
         }
     }
 
+    @Override
     public void addHeader(String name, String value) {
         super.addHeader(name, value);
         String lname = name.toLowerCase();
@@ -229,6 +235,7 @@ public class ResponseIncludeWrapper extends HttpServletResponseWrapper {
         }
     }
 
+    @Override
     public void setDateHeader(String name, long value) {
         super.setDateHeader(name, value);
         String lname = name.toLowerCase();
@@ -237,6 +244,7 @@ public class ResponseIncludeWrapper extends HttpServletResponseWrapper {
         }
     }
 
+    @Override
     public void setHeader(String name, String value) {
         super.setHeader(name, value);
         String lname = name.toLowerCase();
index b718e31..b0558e1 100644 (file)
@@ -63,6 +63,7 @@ public class SSIServlet extends HttpServlet {
      * @exception ServletException
      *                if an error occurs
      */
+    @Override
     public void init() throws ServletException {
         
         if (getServletConfig().getInitParameter("debug") != null)
@@ -99,6 +100,7 @@ public class SSIServlet extends HttpServlet {
      * @exception ServletException
      *                if an error occurs
      */
+    @Override
     public void doGet(HttpServletRequest req, HttpServletResponse res)
             throws IOException, ServletException {
         if (debug > 0) log("SSIServlet.doGet()");
@@ -119,6 +121,7 @@ public class SSIServlet extends HttpServlet {
      * @exception ServletException
      *                if an error occurs
      */
+    @Override
     public void doPost(HttpServletRequest req, HttpServletResponse res)
             throws IOException, ServletException {
         if (debug > 0) log("SSIServlet.doPost()");
index dc9e773..083b9b6 100644 (file)
@@ -155,6 +155,7 @@ public class Catalina extends Embedded {
      *
      * @param server The new server
      */
+    @Override
     public void setServer(Server server) {
 
         this.server = server;
@@ -569,6 +570,7 @@ public class Catalina extends Embedded {
 
     }
 
+    @Override
     public void destroy() {
 
     }
@@ -576,6 +578,7 @@ public class Catalina extends Embedded {
     /**
      * Start a new server instance.
      */
+    @Override
     public void start() {
 
         if (server == null) {
@@ -621,6 +624,7 @@ public class Catalina extends Embedded {
     /**
      * Stop an existing server instance.
      */
+    @Override
     public void stop() {
 
         try {
@@ -678,6 +682,7 @@ public class Catalina extends Embedded {
      */
     protected class CatalinaShutdownHook extends Thread {
 
+        @Override
         public void run() {
 
             if (server != null) {
@@ -713,6 +718,7 @@ final class SetParentClassLoaderRule extends Rule {
 
     ClassLoader parentClassLoader = null;
 
+    @Override
     public void begin(String namespace, String name, Attributes attributes)
         throws Exception {
 
index 7d78cc0..37b69d4 100644 (file)
@@ -140,6 +140,7 @@ public class ClusterRuleSetFactory {
          * @param digester Digester instance to which the new Rule instances
          *  should be added.
          */
+        @Override
         public void addRuleInstances(Digester digester) {
             //Cluster configuration start
             digester.addObjectCreate(prefix + "Membership",
index 936ee46..05d3c02 100644 (file)
@@ -51,6 +51,7 @@ public class ConnectorCreateRule extends Rule {
      *   the element name otherwise
      * @param attributes The attribute list for this element
      */
+    @Override
     public void begin(String namespace, String name, Attributes attributes)
             throws Exception {
         Service svc = (Service)digester.peek();
@@ -83,6 +84,7 @@ public class ConnectorCreateRule extends Rule {
      * @param name the local name if the parser is namespace aware, or just 
      *   the element name otherwise
      */
+    @Override
     public void end(String namespace, String name) throws Exception {
         digester.pop();
     }
index b37cd53..a44ce93 100644 (file)
@@ -108,6 +108,7 @@ public class ContextRuleSet extends RuleSetBase {
      * @param digester Digester instance to which the new Rule instances
      *  should be added.
      */
+    @Override
     public void addRuleInstances(Digester digester) {
 
         if (create) {
index 7804608..18d3960 100644 (file)
@@ -58,6 +58,7 @@ public class CopyParentClassLoaderRule extends Rule {
      *
      * @exception Exception if a processing error occurs
      */
+    @Override
     public void begin(String namespace, String name, Attributes attributes)
         throws Exception {
 
index 270ff11..9349b8a 100644 (file)
@@ -309,6 +309,7 @@ public class Embedded  extends StandardService {
      *
      * @exception IllegalStateException if no engines have been added yet
      */
+    @Override
     public synchronized void addConnector(Connector connector) {
 
         if( log.isDebugEnabled() ) {
@@ -576,6 +577,7 @@ public class Embedded  extends StandardService {
      * the corresponding version number, in the format
      * <code>&lt;description&gt;/&lt;version&gt;</code>.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -762,6 +764,7 @@ public class Embedded  extends StandardService {
      *
      * @param listener The listener to add
      */
+    @Override
     public void addLifecycleListener(LifecycleListener listener) {
 
         lifecycle.addLifecycleListener(listener);
@@ -773,6 +776,7 @@ public class Embedded  extends StandardService {
      * Get the lifecycle listeners associated with this lifecycle. If this 
      * Lifecycle has no listeners registered, a zero-length array is returned.
      */
+    @Override
     public LifecycleListener[] findLifecycleListeners() {
 
         return lifecycle.findLifecycleListeners();
@@ -785,6 +789,7 @@ public class Embedded  extends StandardService {
      *
      * @param listener The listener to remove
      */
+    @Override
     public void removeLifecycleListener(LifecycleListener listener) {
 
         lifecycle.removeLifecycleListener(listener);
@@ -800,6 +805,7 @@ public class Embedded  extends StandardService {
      * @exception LifecycleException if this component detects a fatal error
      *  that prevents this component from being used
      */
+    @Override
     public void start() throws LifecycleException {
 
         if( log.isInfoEnabled() )
@@ -842,6 +848,7 @@ public class Embedded  extends StandardService {
      * @exception LifecycleException if this component detects a fatal error
      *  that needs to be reported
      */
+    @Override
     public void stop() throws LifecycleException {
 
         if( log.isDebugEnabled() )
index c33cc1d..66dff68 100644 (file)
@@ -87,6 +87,7 @@ public class EngineRuleSet extends RuleSetBase {
      * @param digester Digester instance to which the new Rule instances
      *  should be added.
      */
+    @Override
     public void addRuleInstances(Digester digester) {
         
         digester.addObjectCreate(prefix + "Engine",
index 542e8c4..450aa52 100644 (file)
@@ -87,6 +87,7 @@ public class HostRuleSet extends RuleSetBase {
      * @param digester Digester instance to which the new Rule instances
      *  should be added.
      */
+    @Override
     public void addRuleInstances(Digester digester) {
 
         digester.addObjectCreate(prefix + "Host",
index 250df97..be4b1b0 100644 (file)
@@ -79,6 +79,7 @@ public class LifecycleListenerRule extends Rule {
      *
      * @exception Exception if a processing error occurs
      */
+    @Override
     public void begin(String namespace, String name, Attributes attributes)
         throws Exception {
 
index 91810b0..12f7ca6 100644 (file)
@@ -86,6 +86,7 @@ public class NamingRuleSet extends RuleSetBase {
      * @param digester Digester instance to which the new Rule instances
      *  should be added.
      */
+    @Override
     public void addRuleInstances(Digester digester) {
 
         digester.addObjectCreate(prefix + "Ejb",
index 81ce3bc..e110053 100644 (file)
@@ -85,6 +85,7 @@ public class RealmRuleSet extends RuleSetBase {
      * @param digester Digester instance to which the new Rule instances
      *  should be added.
      */
+    @Override
     public void addRuleInstances(Digester digester) {
 
         digester.addObjectCreate(prefix + "Realm",
index b0518b5..a87c1ad 100644 (file)
@@ -53,6 +53,7 @@ public class SetAllPropertiesRule extends Rule {
      *
      * @exception Exception if a processing error occurs
      */
+    @Override
     public void begin(String namespace, String nameX, Attributes attributes)
         throws Exception {
 
index c9b3094..5e044f2 100644 (file)
@@ -48,6 +48,7 @@ public class SetContextPropertiesRule extends Rule {
      *
      * @exception Exception if a processing error occurs
      */
+    @Override
     public void begin(String namespace, String nameX, Attributes attributes)
         throws Exception {
 
index 091f898..f28034b 100644 (file)
@@ -87,6 +87,7 @@ public class SetNextNamingRule extends Rule {
      * @param name the local name if the parser is namespace aware, or just 
      *   the element name otherwise
      */
+    @Override
     public void end(String namespace, String name) throws Exception {
 
         // Identify the objects to be used
@@ -110,6 +111,7 @@ public class SetNextNamingRule extends Rule {
     /**
      * Render a printable version of this Rule.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("SetNextRule[");
index 5405558..45003be 100644 (file)
@@ -86,6 +86,7 @@ public class TldRuleSet extends RuleSetBase {
      * @param digester Digester instance to which the new Rule instances
      *  should be added.
      */
+    @Override
     public void addRuleInstances(Digester digester) {
 
         // Note the sharing of state between rules
@@ -113,6 +114,7 @@ final class TaglibRule extends Rule {
         this.taglibUriRule = taglibUriRule;
     }
     
+    @Override
     public void body(String namespace, String name, String text)
     throws Exception {
         taglibUriRule.setDuplicateUri(false);
index 14ba59d..8992ade 100644 (file)
@@ -697,6 +697,7 @@ public class Tomcat {
         public ExistingStandardWrapper( Servlet existing ) {
             this.existing = existing;
         }
+        @Override
         public synchronized Servlet loadServlet() throws ServletException {
             if (!init) {
                 existing.init(facade);
@@ -705,9 +706,11 @@ public class Tomcat {
             return existing;
 
         }
+        @Override
         public long getAvailable() {
             return 0;
         }
+        @Override
         public boolean isUnavailable() {
             return false;       
         }
index d7b1c96..6214688 100644 (file)
@@ -150,6 +150,7 @@ public class WebRuleSet extends RuleSetBase {
      * @param digester Digester instance to which the new Rule instances
      *  should be added.
      */
+    @Override
     public void addRuleInstances(Digester digester) {
         sessionConfig = new SetSessionConfig();
         jspConfig = new SetJspConfig();
@@ -619,6 +620,7 @@ final class SetLoginConfig extends Rule {
     public SetLoginConfig() {
     }
 
+    @Override
     public void begin(String namespace, String name, Attributes attributes)
         throws Exception {
         if (isLoginConfigSet){
@@ -640,6 +642,7 @@ final class SetJspConfig extends Rule {
     public SetJspConfig() {
     }
 
+    @Override
     public void begin(String namespace, String name, Attributes attributes)
         throws Exception {
         if (isJspConfigSet){
@@ -661,6 +664,7 @@ final class SetSessionConfig extends Rule {
     public SetSessionConfig() {
     }
 
+    @Override
     public void begin(String namespace, String name, Attributes attributes)
         throws Exception {
         if (isSessionConfigSet){
@@ -683,6 +687,7 @@ final class SetAuthConstraintRule extends Rule {
     public SetAuthConstraintRule() {
     }
 
+    @Override
     public void begin(String namespace, String name, Attributes attributes)
         throws Exception {
         SecurityConstraint securityConstraint =
@@ -707,6 +712,7 @@ final class SetDistributableRule extends Rule {
     public SetDistributableRule() {
     }
 
+    @Override
     public void begin(String namespace, String name, Attributes attributes)
         throws Exception {
         WebXml webXml = (WebXml) digester.peek();
@@ -733,6 +739,7 @@ final class SetPublicIdRule extends Rule {
 
     private String method = null;
 
+    @Override
     public void begin(String namespace, String name, Attributes attributes)
         throws Exception {
 
@@ -771,6 +778,7 @@ final class ServletDefCreateRule extends Rule {
     public ServletDefCreateRule() {
     }
 
+    @Override
     public void begin(String namespace, String name, Attributes attributes)
         throws Exception {
         ServletDef servletDef = new ServletDef();
@@ -779,6 +787,7 @@ final class ServletDefCreateRule extends Rule {
             digester.getLogger().debug("new " + servletDef.getClass().getName());
     }
 
+    @Override
     public void end(String namespace, String name)
         throws Exception {
         ServletDef servletDef = (ServletDef) digester.pop();
@@ -799,6 +808,7 @@ final class CallParamMultiRule extends CallParamRule {
         super(paramIndex);
     }
 
+    @Override
     public void end(String namespace, String name) {
         if (bodyTextStack != null && !bodyTextStack.empty()) {
             // what we do now is push one parameter onto the top set of parameters
@@ -837,6 +847,7 @@ final class CallMethodMultiRule extends CallMethodRule {
      * @param name the local name if the parser is namespace aware, or just 
      *   the element name otherwise
      */
+    @Override
     public void end(String namespace, String name) throws Exception {
 
         // Retrieve or construct the parameter values array
@@ -924,6 +935,7 @@ final class IgnoreAnnotationsRule extends Rule {
     public IgnoreAnnotationsRule() {
     }
 
+    @Override
     public void begin(String namespace, String name, Attributes attributes)
         throws Exception {
         WebXml webxml = (WebXml) digester.peek(digester.getCount() - 1);
@@ -948,6 +960,7 @@ final class AbsoluteOrderingRule extends Rule {
     public AbsoluteOrderingRule() {
     }
     
+    @Override
     public void begin(String namespace, String name, Attributes attributes)
             throws Exception {
         digester.getLogger().warn(
@@ -963,6 +976,7 @@ final class RelativeOrderingRule extends Rule {
     public RelativeOrderingRule() {
     }
     
+    @Override
     public void begin(String namespace, String name, Attributes attributes)
             throws Exception {
         digester.getLogger().warn(
@@ -989,6 +1003,7 @@ final class SoapHeaderRule extends Rule {
      *   the element name otherwise
      * @param bodyText The body text of this element
      */
+    @Override
     public void body(String namespace, String name, String text)
             throws Exception {
         String namespaceuri = null;
@@ -1023,6 +1038,7 @@ final class ServiceQnameRule extends Rule {
      *   the element name otherwise
      * @param bodyText The body text of this element
      */
+    @Override
     public void body(String namespace, String name, String text)
             throws Exception {
         String namespaceuri = null;
index 940cdb3..fc77471 100644 (file)
@@ -80,6 +80,7 @@ public class ChannelException extends Exception {
      * @return String
      * @see java.lang.Exception#getMessage()
      */
+    @Override
     public String getMessage() {
         StringBuilder buf = new StringBuilder(super.getMessage());
         if (faultyMembers==null || faultyMembers.size() == 0 ) {
@@ -161,14 +162,17 @@ public class ChannelException extends Exception {
             return cause;
         }
         
+        @Override
         public String toString() {
             return "FaultyMember:"+member.toString();
         }
         
+        @Override
         public int hashCode() {
             return (member!=null)?member.hashCode():0;
         }
         
+        @Override
         public boolean equals(Object o) {
             if (member==null || (!(o instanceof FaultyMember)) || (((FaultyMember)o).member==null)) return false;
             return member.equals(((FaultyMember)o).member);
index 3fdf39f..a025f4a 100644 (file)
@@ -42,11 +42,13 @@ public final class UniqueId implements Serializable{
         System.arraycopy(id,offset,this.id,0,length);
     }
     
+    @Override
     public int hashCode() {
         if ( id == null ) return 0;
         return Arrays.hashCode(id);
     }
     
+    @Override
     public boolean equals(Object other) {
         boolean result = (other instanceof UniqueId);
         if ( result ) {
@@ -63,6 +65,7 @@ public final class UniqueId implements Serializable{
         return id;
     }
     
+    @Override
     public String toString() {
         StringBuilder buf = new StringBuilder("UniqueId");
         buf.append(org.apache.catalina.tribes.util.Arrays.toString(id));
index bbc6e51..5da083e 100644 (file)
@@ -48,7 +48,9 @@ public class ChannelCoordinator extends ChannelInterceptorBase implements Messag
     
     //override optionflag
     protected int optionFlag = Channel.SEND_OPTIONS_BYTE_MESSAGE|Channel.SEND_OPTIONS_USE_ACK|Channel.SEND_OPTIONS_SYNCHRONIZED_ACK;
+    @Override
     public int getOptionFlag() {return optionFlag;}
+    @Override
     public void setOptionFlag(int flag) {optionFlag=flag;}
     
     private int startLevel = 0;
@@ -73,6 +75,7 @@ public class ChannelCoordinator extends ChannelInterceptorBase implements Messag
      * @param options int - sender options, see class documentation
      * @return ClusterMessage[] - the replies from the members, if any.
      */
+    @Override
     public void sendMessage(Member[] destination, ChannelMessage msg, InterceptorPayload payload) throws ChannelException {
         if ( destination == null ) destination = membershipService.getMembers();
         if ((msg.getOptions()&Channel.SEND_OPTIONS_MULTICAST) == Channel.SEND_OPTIONS_MULTICAST) {
@@ -97,6 +100,7 @@ public class ChannelCoordinator extends ChannelInterceptorBase implements Messag
      * SND_RX_SEQ - starts the replication receiver<BR>
      * @throws ChannelException if a startup error occurs or the service is already started.
      */
+    @Override
     public void start(int svc) throws ChannelException {
         this.internalStart(svc);
     }
@@ -112,6 +116,7 @@ public class ChannelCoordinator extends ChannelInterceptorBase implements Messag
      * SND_RX_SEQ - stops the replication receiver<BR>
      * @throws ChannelException if a startup error occurs or the service is already started.
      */
+    @Override
     public void stop(int svc) throws ChannelException {
         this.internalStop(svc);
     }    
@@ -234,16 +239,19 @@ public class ChannelCoordinator extends ChannelInterceptorBase implements Messag
 
     }
     
+    @Override
     public void memberAdded(Member member){
         SenderState.getSenderState(member);
         super.memberAdded(member);
     }
     
+    @Override
     public void memberDisappeared(Member member){
         SenderState.removeSenderState(member);
         super.memberDisappeared(member);
     }
     
+    @Override
     public void messageReceived(ChannelMessage msg) {
         if ( Logs.MESSAGES.isTraceEnabled() ) {
             Logs.MESSAGES.trace("ChannelCoordinator - Received msg:" + new UniqueId(msg.getUniqueId()) + " at " +new java.sql.Timestamp(System.currentTimeMillis())+ " from "+msg.getAddress().getName());
@@ -282,6 +290,7 @@ public class ChannelCoordinator extends ChannelInterceptorBase implements Messag
         this.membershipService.setMembershipListener(this);
     }
     
+    @Override
     public void heartbeat() {
         if ( clusterSender!=null ) clusterSender.heartbeat();
         super.heartbeat();
@@ -290,6 +299,7 @@ public class ChannelCoordinator extends ChannelInterceptorBase implements Messag
     /**
      * has members
      */
+    @Override
     public boolean hasMembers() {
         return this.getMembershipService().hasMembers();
     }
@@ -298,6 +308,7 @@ public class ChannelCoordinator extends ChannelInterceptorBase implements Messag
      * Get all current cluster members
      * @return all members or empty array
      */
+    @Override
     public Member[] getMembers() {
         return this.getMembershipService().getMembers();
     }
@@ -307,6 +318,7 @@ public class ChannelCoordinator extends ChannelInterceptorBase implements Messag
      * @param mbr Member
      * @return Member
      */
+    @Override
     public Member getMember(Member mbr){
         return this.getMembershipService().getMember(mbr);
     }
@@ -317,6 +329,7 @@ public class ChannelCoordinator extends ChannelInterceptorBase implements Messag
      *
      * @return Member
      */
+    @Override
     public Member getLocalMember(boolean incAlive) {
         return this.getMembershipService().getLocalMember(incAlive);
     }
index 860f651..d93be23 100644 (file)
@@ -145,6 +145,7 @@ public class GroupChannel extends ChannelInterceptorBase implements ManagedChann
      * Invoke this method from the application on a periodic basis if
      * you have turned off internal heartbeats <code>channel.setHeartbeat(false)</code>
      */
+    @Override
     public void heartbeat() {
         super.heartbeat();
         Iterator<Object> i = membershipListeners.iterator();
@@ -237,6 +238,7 @@ public class GroupChannel extends ChannelInterceptorBase implements ManagedChann
      * but its an extreme case, and you're probably better off doing that logic between the applications itself.
      * @param msg ChannelMessage
      */
+    @Override
     public void messageReceived(ChannelMessage msg) {
         if ( msg == null ) return;
         try {
@@ -313,6 +315,7 @@ public class GroupChannel extends ChannelInterceptorBase implements ManagedChann
      * and the channel will broadcast it to the membership listeners
      * @param member Member - the new member
      */
+    @Override
     public void memberAdded(Member member) {
         //notify upwards
         for (int i=0; i<membershipListeners.size(); i++ ) {
@@ -326,6 +329,7 @@ public class GroupChannel extends ChannelInterceptorBase implements ManagedChann
      * and the channel will broadcast it to the membership listeners
      * @param member Member - the member that left or crashed
      */
+    @Override
     public void memberDisappeared(Member member) {
         //notify upwards
         for (int i=0; i<membershipListeners.size(); i++ ) {
@@ -401,6 +405,7 @@ public class GroupChannel extends ChannelInterceptorBase implements ManagedChann
      * @throws ChannelException
      * @see org.apache.catalina.tribes.Channel#start(int)
      */
+    @Override
     public synchronized void start(int svc) throws ChannelException {
         setupDefaultStack();
         if (optionCheck) checkOptionFlags();
@@ -417,6 +422,7 @@ public class GroupChannel extends ChannelInterceptorBase implements ManagedChann
      * @throws ChannelException
      * @see org.apache.catalina.tribes.Channel#stop(int)
      */
+    @Override
     public synchronized void stop(int svc) throws ChannelException {
         if (hbthread != null) {
             hbthread.stopHeartbeat();
@@ -654,6 +660,7 @@ public class GroupChannel extends ChannelInterceptorBase implements ManagedChann
             interrupt();
         }
 
+        @Override
         public void run() {
             while (doRun) {
                 try {
index 45f10b9..099a07e 100644 (file)
@@ -136,6 +136,7 @@ public class RpcChannel implements ChannelListener{
         channel.removeChannelListener(this);
     }
     
+    @Override
     public void finalize() {
         breakdown();
     }
@@ -215,10 +216,12 @@ public class RpcChannel implements ChannelListener{
             }
         }
         
+        @Override
         public int hashCode() {
             return key.hashCode();
         }
         
+        @Override
         public boolean equals(Object o) {
             if ( o instanceof RpcCollector ) {
                 RpcCollector r = (RpcCollector)o;
@@ -237,10 +240,12 @@ public class RpcChannel implements ChannelListener{
             this.id = id;
         }
         
+        @Override
         public int hashCode() {
             return id[0]+id[1]+id[2]+id[3];
         }
 
+        @Override
         public boolean equals(Object o) {
             if ( o instanceof RpcCollectorKey ) {
                 RpcCollectorKey r = (RpcCollectorKey)o;
index be79b34..b294d72 100644 (file)
@@ -71,6 +71,7 @@ public class RpcMessage implements Externalizable {
         out.writeObject(message);
     }
     
+    @Override
     public String toString() {
         StringBuilder buf = new StringBuilder("RpcMessage[");
         buf.append(super.toString());
@@ -93,6 +94,7 @@ public class RpcMessage implements Externalizable {
             reply = true;
         }
 
+        @Override
         public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
             reply = true;
             int length = in.readInt();
@@ -103,6 +105,7 @@ public class RpcMessage implements Externalizable {
             in.read(rpcId, 0, length);
         }
 
+        @Override
         public void writeExternal(ObjectOutput out) throws IOException {
             out.writeInt(uuid.length);
             out.write(uuid, 0, uuid.length);
index 8f3cd57..c29ecc9 100644 (file)
@@ -37,12 +37,14 @@ public class DomainFilterInterceptor extends ChannelInterceptorBase {
     
     protected byte[] domain = new byte[0];
 
+    @Override
     public void messageReceived(ChannelMessage msg) {
         //should we filter incoming based on domain?
         super.messageReceived(msg);
     }//messageReceived
 
 
+    @Override
     public void memberAdded(Member member) {
         if ( membership == null ) setupMembership();
         boolean notify = false;
@@ -53,6 +55,7 @@ public class DomainFilterInterceptor extends ChannelInterceptorBase {
         if ( notify ) super.memberAdded(member);
     }
 
+    @Override
     public void memberDisappeared(Member member) {
         if ( membership == null ) setupMembership();
         boolean notify = false;
@@ -63,21 +66,25 @@ public class DomainFilterInterceptor extends ChannelInterceptorBase {
         if ( notify ) super.memberDisappeared(member);
     }
 
+    @Override
     public boolean hasMembers() {
         if ( membership == null ) setupMembership();
         return membership.hasMembers();
     }
 
+    @Override
     public Member[] getMembers() {
         if ( membership == null ) setupMembership();
         return membership.getMembers();
     }
 
+    @Override
     public Member getMember(Member mbr) {
         if ( membership == null ) setupMembership();
         return membership.getMember(mbr);
     }
 
+    @Override
     public Member getLocalMember(boolean incAlive) {
         return super.getLocalMember(incAlive);
     }
index 0952662..259cad3 100644 (file)
@@ -49,6 +49,7 @@ public class FragmentationInterceptor extends ChannelInterceptorBase {
     protected boolean deepclone = true;
 
 
+    @Override
     public void sendMessage(Member[] destination, ChannelMessage msg, InterceptorPayload payload) throws ChannelException {
         int size = msg.getMessage().getLength();
         boolean frag = (size>maxSize) && okToProcess(msg.getOptions());
@@ -60,6 +61,7 @@ public class FragmentationInterceptor extends ChannelInterceptorBase {
         }
     }
     
+    @Override
     public void messageReceived(ChannelMessage msg) {
         boolean isFrag = XByteBuffer.toBoolean(msg.getMessage().getBytesDirect(),msg.getMessage().getLength()-1);
         msg.getMessage().trim(1);
@@ -133,6 +135,7 @@ public class FragmentationInterceptor extends ChannelInterceptorBase {
         }
     }
     
+    @Override
     public void heartbeat() {
         try {
             Set<FragKey> set = fragpieces.keySet(); 
@@ -222,10 +225,12 @@ public class FragmentationInterceptor extends ChannelInterceptorBase {
         public FragKey(byte[] id ) {
             this.uniqueId = id;
         }
+        @Override
         public int hashCode() {
             return XByteBuffer.toInt(uniqueId,0);
         }
         
+        @Override
         public boolean equals(Object o ) {
             if ( o instanceof FragKey ) {
             return Arrays.equals(uniqueId,((FragKey)o).uniqueId);
index 3dd4129..165d7b5 100644 (file)
@@ -40,6 +40,7 @@ import org.apache.catalina.tribes.group.InterceptorPayload;
 public class GzipInterceptor extends ChannelInterceptorBase {
     public static final int DEFAULT_BUFFER_SIZE = 2048;
     
+    @Override
     public void sendMessage(Member[] destination, ChannelMessage msg, InterceptorPayload payload) throws ChannelException {
         try {
             byte[] data = compress(msg.getMessage().getBytes());
@@ -52,6 +53,7 @@ public class GzipInterceptor extends ChannelInterceptorBase {
         }
     }
 
+    @Override
     public void messageReceived(ChannelMessage msg) {
         try {
             byte[] data = decompress(msg.getMessage().getBytes());
index 03104e2..5a3981f 100644 (file)
@@ -44,19 +44,23 @@ public class MessageDispatch15Interceptor extends MessageDispatchInterceptor {
     protected long keepAliveTime = 5000;
     protected LinkedBlockingQueue<Runnable> runnablequeue = new LinkedBlockingQueue<Runnable>();
 
+    @Override
     public long getCurrentSize() {
         return currentSize.get();
     }
 
+    @Override
     public long addAndGetCurrentSize(long inc) {
         return currentSize.addAndGet(inc);
     }
 
+    @Override
     public long setAndGetCurrentSize(long value) {
         currentSize.set(value);
         return value;
     }
     
+    @Override
     public boolean addToQueue(ChannelMessage msg, Member[] destination, InterceptorPayload payload) {
         final LinkObject obj = new LinkObject(msg,destination,payload);
         Runnable r = new Runnable() {
@@ -68,16 +72,19 @@ public class MessageDispatch15Interceptor extends MessageDispatchInterceptor {
         return true;
     }
 
+    @Override
     public LinkObject removeFromQueue() {
         return null; //not used, thread pool contains its own queue.
     }
 
+    @Override
     public void startQueue() {
         if ( run ) return;
         executor = new ThreadPoolExecutor(maxSpareThreads,maxThreads,keepAliveTime,TimeUnit.MILLISECONDS,runnablequeue);
         run = true;
     }
 
+    @Override
     public void stopQueue() {
         run = false;
         executor.shutdownNow();
index aeb8443..d312651 100644 (file)
@@ -52,6 +52,7 @@ public class MessageDispatchInterceptor extends ChannelInterceptorBase implement
         setOptionFlag(Channel.SEND_OPTIONS_ASYNCHRONOUS);
     }
 
+    @Override
     public void sendMessage(Member[] destination, ChannelMessage msg, InterceptorPayload payload) throws ChannelException {
         boolean async = (msg.getOptions() & Channel.SEND_OPTIONS_ASYNCHRONOUS) == Channel.SEND_OPTIONS_ASYNCHRONOUS;
         if ( async && run ) {
@@ -100,6 +101,7 @@ public class MessageDispatchInterceptor extends ChannelInterceptorBase implement
     }
     
     
+    @Override
     public void setOptionFlag(int flag) {
         if ( flag != Channel.SEND_OPTIONS_ASYNCHRONOUS ) log.warn("Warning, you are overriding the asynchronous option flag, this will disable the Channel.SEND_OPTIONS_ASYNCHRONOUS that other apps might use.");
         super.setOptionFlag(flag);
@@ -135,6 +137,7 @@ public class MessageDispatchInterceptor extends ChannelInterceptorBase implement
         return value;
     }
 
+    @Override
     public void start(int svc) throws ChannelException {
         //start the thread
         if (!run ) {
@@ -148,6 +151,7 @@ public class MessageDispatchInterceptor extends ChannelInterceptorBase implement
     }
 
     
+    @Override
     public void stop(int svc) throws ChannelException {
         //stop the thread
         if ( run ) {
index 39a299b..c9fa1ad 100644 (file)
@@ -448,6 +448,7 @@ public class NonBlockingCoordinator extends ChannelInterceptorBase {
 //============================================================================================================    
 //              OVERRIDDEN METHODS FROM CHANNEL INTERCEPTOR BASE    
 //============================================================================================================
+    @Override
     public void start(int svc) throws ChannelException {
             if (membership == null) setupMembership();
             if (started)return;
@@ -459,6 +460,7 @@ public class NonBlockingCoordinator extends ChannelInterceptorBase {
             startElection(false);
     }
 
+    @Override
     public void stop(int svc) throws ChannelException {
         try {
             halt();
@@ -480,11 +482,13 @@ public class NonBlockingCoordinator extends ChannelInterceptorBase {
     }
     
     
+    @Override
     public void sendMessage(Member[] destination, ChannelMessage msg, InterceptorPayload payload) throws ChannelException {
         waitForRelease();
         super.sendMessage(destination, msg, payload);
     }
 
+    @Override
     public void messageReceived(ChannelMessage msg) {
         if ( Arrays.contains(msg.getMessage().getBytesDirect(),0,COORD_ALIVE,0,COORD_ALIVE.length) ) {
             //ignore message, its an alive message
@@ -504,10 +508,12 @@ public class NonBlockingCoordinator extends ChannelInterceptorBase {
         }
     }
 
+    @Override
     public boolean accept(ChannelMessage msg) {
         return super.accept(msg);
     }
 
+    @Override
     public void memberAdded(Member member) {
         memberAdded(member,true);
     }
@@ -527,6 +533,7 @@ public class NonBlockingCoordinator extends ChannelInterceptorBase {
         
     }
 
+    @Override
     public void memberDisappeared(Member member) {
         try {
             
@@ -554,6 +561,7 @@ public class NonBlockingCoordinator extends ChannelInterceptorBase {
         return coord != null && getLocalMember(false).equals(coord);
     }
 
+    @Override
     public void heartbeat() {
         try {
             MemberImpl local = (MemberImpl)getLocalMember(false);
@@ -574,6 +582,7 @@ public class NonBlockingCoordinator extends ChannelInterceptorBase {
     /**
      * has members
      */
+    @Override
     public boolean hasMembers() {
         
         return membership.hasMembers();
@@ -583,6 +592,7 @@ public class NonBlockingCoordinator extends ChannelInterceptorBase {
      * Get all current cluster members
      * @return all members or empty array
      */
+    @Override
     public Member[] getMembers() {
         
         return membership.getMembers();
@@ -593,6 +603,7 @@ public class NonBlockingCoordinator extends ChannelInterceptorBase {
      * @param mbr Member
      * @return Member
      */
+    @Override
     public Member getMember(Member mbr) {
         
         return membership.getMember(mbr);
@@ -603,6 +614,7 @@ public class NonBlockingCoordinator extends ChannelInterceptorBase {
      *
      * @return Member
      */
+    @Override
     public Member getLocalMember(boolean incAlive) {
         Member local = super.getLocalMember(incAlive);
         if ( view == null && (local != null)) setupMembership();
@@ -751,6 +763,7 @@ public class NonBlockingCoordinator extends ChannelInterceptorBase {
         }
     }
     
+    @Override
     public void fireInterceptorEvent(InterceptorEvent event) {
         if (event instanceof CoordinationEvent &&
             ((CoordinationEvent)event).type == CoordinationEvent.EVT_CONF_RX) 
@@ -816,6 +829,7 @@ public class NonBlockingCoordinator extends ChannelInterceptorBase {
             return interceptor;
         }
         
+        @Override
         public String toString() {
             StringBuilder buf = new StringBuilder("CoordinationEvent[type=");
             buf.append(type).append("\n\tLocal:");
index d718142..04d7e46 100644 (file)
@@ -64,6 +64,7 @@ public class OrderInterceptor extends ChannelInterceptorBase {
     ReentrantReadWriteLock inLock = new ReentrantReadWriteLock(true);
     ReentrantReadWriteLock outLock= new ReentrantReadWriteLock(true);
 
+    @Override
     public void sendMessage(Member[] destination, ChannelMessage msg, InterceptorPayload payload) throws ChannelException {
         if ( !okToProcess(msg.getOptions()) ) {
             super.sendMessage(destination, msg, payload);
@@ -94,6 +95,7 @@ public class OrderInterceptor extends ChannelInterceptorBase {
         if ( cx != null ) throw cx;
     }
 
+    @Override
     public void messageReceived(ChannelMessage msg) {
         if ( !okToProcess(msg.getOptions()) ) {
             super.messageReceived(msg);
@@ -168,11 +170,13 @@ public class OrderInterceptor extends ChannelInterceptorBase {
         return result;
     }
     
+    @Override
     public void memberAdded(Member member) {
         //notify upwards
         super.memberAdded(member);
     }
 
+    @Override
     public void memberDisappeared(Member member) {
         //reset counters - lock free
         incounter.remove(member);
index 0ceb6b5..41aaed4 100644 (file)
@@ -51,6 +51,7 @@ public class StaticMembershipInterceptor
     /**
      * has members
      */
+    @Override
     public boolean hasMembers() {
         return super.hasMembers() || (members.size()>0);
     }
@@ -59,6 +60,7 @@ public class StaticMembershipInterceptor
      * Get all current cluster members
      * @return all members or empty array
      */
+    @Override
     public Member[] getMembers() {
         if ( members.size() == 0 ) return super.getMembers();
         else {
@@ -78,6 +80,7 @@ public class StaticMembershipInterceptor
      * @param mbr Member
      * @return Member
      */
+    @Override
     public Member getMember(Member mbr) {
         if ( members.contains(mbr) ) return members.get(members.indexOf(mbr));
         else return super.getMember(mbr);
@@ -88,6 +91,7 @@ public class StaticMembershipInterceptor
      *
      * @return Member
      */
+    @Override
     public Member getLocalMember(boolean incAlive) {
         if (this.localMember != null ) return localMember;
         else return super.getLocalMember(incAlive);
@@ -98,12 +102,14 @@ public class StaticMembershipInterceptor
      * @param svc int
      * @throws ChannelException
      */
+    @Override
     public void start(int svc) throws ChannelException {
         if ( (Channel.SND_RX_SEQ&svc)==Channel.SND_RX_SEQ ) super.start(Channel.SND_RX_SEQ); 
         if ( (Channel.SND_TX_SEQ&svc)==Channel.SND_TX_SEQ ) super.start(Channel.SND_TX_SEQ); 
         final Member[] mbrs = members.toArray(new Member[members.size()]);
         final ChannelInterceptorBase base = this;
         Thread t = new Thread() {
+            @Override
             public void run() {
                 for (int i=0; i<mbrs.length; i++ ) {
                     base.memberAdded(mbrs[i]);
index 1accad3..ce43435 100644 (file)
@@ -82,6 +82,7 @@ public class TcpFailureDetector extends ChannelInterceptorBase {
     
     protected HashMap<Member, Long> addSuspects = new HashMap<Member, Long>();
     
+    @Override
     public void sendMessage(Member[] destination, ChannelMessage msg, InterceptorPayload payload) throws ChannelException {
         try {
             super.sendMessage(destination, msg, payload);
@@ -97,6 +98,7 @@ public class TcpFailureDetector extends ChannelInterceptorBase {
         }
     }
 
+    @Override
     public void messageReceived(ChannelMessage msg) {
         //catch incoming 
         boolean process = true;
@@ -112,6 +114,7 @@ public class TcpFailureDetector extends ChannelInterceptorBase {
     }//messageReceived
     
     
+    @Override
     public void memberAdded(Member member) {
         if ( membership == null ) setupMembership();
         boolean notify = false;
@@ -133,6 +136,7 @@ public class TcpFailureDetector extends ChannelInterceptorBase {
         if ( notify ) super.memberAdded(member);
     }
 
+    @Override
     public void memberDisappeared(Member member) {
         if ( membership == null ) setupMembership();
         boolean notify = false;
@@ -164,25 +168,30 @@ public class TcpFailureDetector extends ChannelInterceptorBase {
         }
     }
     
+    @Override
     public boolean hasMembers() {
         if ( membership == null ) setupMembership();
         return membership.hasMembers();
     }
 
+    @Override
     public Member[] getMembers() {
         if ( membership == null ) setupMembership();
         return membership.getMembers();
     }
 
+    @Override
     public Member getMember(Member mbr) {
         if ( membership == null ) setupMembership();
         return membership.getMember(mbr);
     }
 
+    @Override
     public Member getLocalMember(boolean incAlive) {
         return super.getLocalMember(incAlive);
     }
     
+    @Override
     public void heartbeat() {
         super.heartbeat();
         checkMembers(false);
index 69491ea..7418b17 100644 (file)
@@ -59,6 +59,7 @@ public class TcpPingInterceptor extends ChannelInterceptorBase {
     WeakReference<TcpFailureDetector> failureDetector = null;
     WeakReference<StaticMembershipInterceptor> staticMembers = null;
     
+    @Override
     public synchronized void start(int svc) throws ChannelException {
         super.start(svc);
         running = true;
@@ -81,6 +82,7 @@ public class TcpPingInterceptor extends ChannelInterceptorBase {
         
     }
     
+    @Override
     public void stop(int svc) throws ChannelException {
         running = false;
         if ( thread != null ) thread.interrupt();
@@ -88,6 +90,7 @@ public class TcpPingInterceptor extends ChannelInterceptorBase {
         super.stop(svc);
     }
     
+    @Override
     public void heartbeat() {
         super.heartbeat();
         if (!getUseThread()) sendPing();
@@ -144,6 +147,7 @@ public class TcpPingInterceptor extends ChannelInterceptorBase {
         }
     }
     
+    @Override
     public void messageReceived(ChannelMessage msg) {
         //catch incoming 
         boolean process = true;
@@ -159,6 +163,7 @@ public class TcpPingInterceptor extends ChannelInterceptorBase {
     }//messageReceived
     
     protected class PingThread extends Thread {
+        @Override
         public void run() {
             while (running) {
                 try {
index bcbc54c..d1bb074 100644 (file)
@@ -54,6 +54,7 @@ public class ThroughputInterceptor extends ChannelInterceptorBase {
     DecimalFormat df = new DecimalFormat("#0.00");
 
 
+    @Override
     public void sendMessage(Member[] destination, ChannelMessage msg, InterceptorPayload payload) throws ChannelException {
         if ( access.addAndGet(1) == 1 ) txStart = System.currentTimeMillis();
         long bytes = XByteBuffer.getDataPackageLength(((ChannelData)msg).getDataPackageLength());
@@ -77,6 +78,7 @@ public class ThroughputInterceptor extends ChannelInterceptorBase {
         msgTxCnt.addAndGet(1);
     }
 
+    @Override
     public void messageReceived(ChannelMessage msg) {
         if ( rxStart == 0 ) rxStart = System.currentTimeMillis();
         long bytes = XByteBuffer.getDataPackageLength(((ChannelData)msg).getDataPackageLength());
index 0b0eb68..e693abc 100644 (file)
@@ -48,6 +48,7 @@ public class TwoPhaseCommitInterceptor extends ChannelInterceptorBase {
     protected long expire = 1000 * 60; //one minute expiration
     protected boolean deepclone = true;
 
+    @Override
     public void sendMessage(Member[] destination, ChannelMessage msg, InterceptorPayload payload) throws
         ChannelException {
         //todo, optimize, if destination.length==1, then we can do
@@ -73,6 +74,7 @@ public class TwoPhaseCommitInterceptor extends ChannelInterceptorBase {
         }
     }
 
+    @Override
     public void messageReceived(ChannelMessage msg) {
         if (okToProcess(msg.getOptions())) {
             if ( msg.getMessage().getLength() == (START_DATA.length+msg.getUniqueId().length+END_DATA.length) &&
@@ -110,6 +112,7 @@ public class TwoPhaseCommitInterceptor extends ChannelInterceptorBase {
         this.expire = expire;
     }
     
+    @Override
     public void heartbeat() {
         try {
             long now = System.currentTimeMillis();
index 51f11c6..2099830 100644 (file)
@@ -271,6 +271,7 @@ public class ChannelData implements ChannelMessage {
         return data;
     }
     
+    @Override
     public int hashCode() {
         return XByteBuffer.toInt(getUniqueId(),0);
     }
@@ -280,6 +281,7 @@ public class ChannelData implements ChannelMessage {
      * @param o Object
      * @return boolean
      */
+    @Override
     public boolean equals(Object o) {
         if ( o instanceof ChannelData ) {
             return Arrays.equals(getUniqueId(),((ChannelData)o).getUniqueId());
@@ -290,6 +292,7 @@ public class ChannelData implements ChannelMessage {
      * Create a shallow clone, only the data gets recreated
      * @return ClusterData
      */
+    @Override
     public Object clone() {
 //        byte[] d = this.getDataPackage();
 //        return ClusterData.getDataFromPackage(d);
@@ -338,6 +341,7 @@ public class ChannelData implements ChannelMessage {
             ( (Channel.SEND_OPTIONS_SYNCHRONIZED_ACK & options) != Channel.SEND_OPTIONS_SYNCHRONIZED_ACK);
     }
     
+    @Override
     public String toString() {
         StringBuilder buf = new StringBuilder();
         buf.append("ClusterData[src=");
index 7f908a5..b3232a6 100644 (file)
@@ -43,6 +43,7 @@ public class DirectByteArrayOutputStream extends OutputStream {
      *   been closed.
      * @todo Implement this java.io.OutputStream method
      */
+    @Override
     public void write(int b) throws IOException {
         buffer.append((byte)b);
     }
index db94ab3..cf6e056 100644 (file)
@@ -69,6 +69,7 @@ public final class ReplicationStream extends ObjectInputStream {
      * @exception ClassNotFoundException if this class cannot be found
      * @exception IOException if an input/output error occurs
      */
+    @Override
     public Class<?> resolveClass(ObjectStreamClass classDesc)
         throws ClassNotFoundException, IOException {
         String name = classDesc.getName();
@@ -155,6 +156,7 @@ public final class ReplicationStream extends ObjectInputStream {
         else throw new ClassNotFoundException(name);
     }
     
+    @Override
     public void close() throws IOException  {
         this.classLoaders = null;
         super.close();
index a6826a2..23f8fbf 100644 (file)
@@ -518,6 +518,7 @@ public class McastServiceImpl
             super();
             setName("Tribes-MembershipReceiver");
         }
+        @Override
         public void run() {
             while ( doRunReceiver ) {
                 try {
@@ -554,6 +555,7 @@ public class McastServiceImpl
             setName("Tribes-MembershipSender");
 
         }
+        @Override
         public void run() {
             while ( doRunSender ) {
                 try {
@@ -609,6 +611,7 @@ public class McastServiceImpl
                 return false;
             }
         }
+        @Override
         public void run() {
             boolean success = false;
             int attempt = 0;
index a82340e..577b5b4 100644 (file)
@@ -507,6 +507,7 @@ public class MemberImpl implements Member, java.io.Externalizable {
     /**
      * String representation of this object
      */
+    @Override
     public String toString()  {
         StringBuilder buf = new StringBuilder("org.apache.catalina.tribes.membership.MemberImpl[");
         buf.append(getName()).append(",");
@@ -543,6 +544,7 @@ public class MemberImpl implements Member, java.io.Externalizable {
      * @see java.lang.Object#hashCode()
      * @return The hash code
      */
+    @Override
     public int hashCode() {
         return getHost()[0]+getHost()[1]+getHost()[2]+getHost()[3];
     }
@@ -551,6 +553,7 @@ public class MemberImpl implements Member, java.io.Externalizable {
      * Returns true if the param o is a McastMember with the same name
      * @param o
      */
+    @Override
     public boolean equals(Object o) {
         if ( o instanceof MemberImpl )    {
             return Arrays.equals(this.getHost(),((MemberImpl)o).getHost()) &&
index 73a3a23..db547d7 100644 (file)
@@ -64,6 +64,7 @@ public class Membership
       */
     protected Comparator<Member> memberComparator = new MemberComparator();
 
+    @Override
     public Object clone() {
         synchronized (membersLock) {
             Membership clone = new Membership(local, memberComparator);
index c277975..028c0df 100644 (file)
@@ -311,6 +311,7 @@ public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
         finalize();
     }
 
+    @Override
     public void finalize() {
         try {broadcast(MapMessage.MSG_STOP,false); }catch ( Exception ignore){}
         //cleanup
@@ -329,10 +330,12 @@ public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
         this.externalLoaders = null;
     }
     
+    @Override
     public int hashCode() {
         return Arrays.hashCode(this.mapContextName);
     }
     
+    @Override
     public boolean equals(Object o) {
         if ( o == null ) return false;
         if ( !(o instanceof AbstractReplicatedMap)) return false;
@@ -807,6 +810,7 @@ public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
      * @param key Object
      * @return Object
      */
+    @Override
     public Object remove(Object key) {
         return remove(key,true);
     }
@@ -828,6 +832,7 @@ public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
         return (MapEntry)super.get(key);
     }
     
+    @Override
     public Object get(Object key) {
         MapEntry entry = (MapEntry)super.get(key);
         if (log.isTraceEnabled()) log.trace("Requesting id:"+key+" entry:"+entry);
@@ -917,10 +922,12 @@ public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
          * @param key Object
          * @return boolean
          */
+        @Override
         public boolean containsKey(Object key) {
             return super.containsKey(key);
         }
     
+        @Override
         public Object put(Object key, Object value) {
             return put(key,value,true);
         }
@@ -952,6 +959,7 @@ public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
          * Copies all values from one map to this instance
          * @param m Map
          */
+        @Override
         public void putAll(Map m) {
             Iterator i = m.entrySet().iterator();
             while ( i.hasNext() ) {
@@ -960,6 +968,7 @@ public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
             }
         }
         
+        @Override
         public void clear() {
             clear(true);
         }
@@ -975,6 +984,7 @@ public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
             }
         }
     
+        @Override
         public boolean containsValue(Object value) {
             if ( value == null ) {
                 return super.containsValue(value);
@@ -989,6 +999,7 @@ public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
             }//end if
         }
     
+        @Override
         public Object clone() {
             throw new UnsupportedOperationException("This operation is not valid on a replicated map");
         }
@@ -1011,6 +1022,7 @@ public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
             return super.size();
         }
     
+        @Override
         public Set<MapEntry> entrySet() {
             LinkedHashSet<MapEntry> set = new LinkedHashSet<MapEntry>(super.size());
             Iterator i = super.entrySet().iterator();
@@ -1025,6 +1037,7 @@ public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
             return Collections.unmodifiableSet(set);
         }
     
+        @Override
         public Set<Object> keySet() {
             //todo implement
             //should only return keys where this is active.
@@ -1041,6 +1054,7 @@ public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
         }
     
     
+        @Override
         public int size() {
             //todo, implement a counter variable instead
             //only count active members in this node
@@ -1056,10 +1070,12 @@ public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
             return counter;
         }
     
+        @Override
         public boolean isEmpty() {
             return size()==0;
         }
     
+        @Override
         public Collection<Object> values() {
             ArrayList<Object> values = new ArrayList<Object>();
             Iterator i = super.entrySet().iterator();
@@ -1162,10 +1178,12 @@ public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
             return old;
         }
 
+        @Override
         public int hashCode() {
             return key.hashCode();
         }
 
+        @Override
         public boolean equals(Object o) {
             return key.equals(o);
         }
@@ -1196,6 +1214,7 @@ public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
             }
         }
         
+        @Override
         public String toString() {
             StringBuilder buf = new StringBuilder("MapEntry[key:");
             buf.append(getKey()).append("; ");
@@ -1235,6 +1254,7 @@ public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
         private Member[] nodes;
         private Member primary;
         
+        @Override
         public String toString() {
             StringBuilder buf = new StringBuilder("MapMessage[context=");
             buf.append(new String(mapId));
@@ -1401,6 +1421,7 @@ public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
          * shallow clone
          * @return Object
          */
+        @Override
         public Object clone() {
             MapMessage msg = new MapMessage(this.mapId, this.msgtype, this.diff, this.key, this.value, this.diffvalue, this.primary, this.nodes);
             msg.keydata = this.keydata;
index 78b4c12..de45749 100644 (file)
@@ -113,6 +113,7 @@ public class LazyReplicatedMap extends AbstractReplicatedMap
 //------------------------------------------------------------------------------    
 //              METHODS TO OVERRIDE    
 //------------------------------------------------------------------------------
+    @Override
     protected int getStateMessageType() {
         return AbstractReplicatedMap.MapMessage.MSG_STATE;
     }
@@ -124,6 +125,7 @@ public class LazyReplicatedMap extends AbstractReplicatedMap
      * @return Member - the backup node
      * @throws ChannelException
      */
+    @Override
     protected Member[] publishEntryInfo(Object key, Object value) throws ChannelException {
         if  (! (key instanceof Serializable && value instanceof Serializable)  ) return new Member[0];
         Member[] members = getMapMembers();
index 701887e..d6e55e7 100644 (file)
@@ -92,6 +92,7 @@ public class ReplicatedMap extends AbstractReplicatedMap implements RpcCallback,
 //------------------------------------------------------------------------------
 //              METHODS TO OVERRIDE
 //------------------------------------------------------------------------------
+    @Override
     protected int getStateMessageType() {
         return AbstractReplicatedMap.MapMessage.MSG_STATE_COPY;
     }
@@ -103,6 +104,7 @@ public class ReplicatedMap extends AbstractReplicatedMap implements RpcCallback,
      * @return Member - the backup node
      * @throws ChannelException
      */
+    @Override
     protected Member[] publishEntryInfo(Object key, Object value) throws ChannelException {
         if  (! (key instanceof Serializable && value instanceof Serializable)  ) return new Member[0];
         //select a backup node
index 01dd3bd..092e4d3 100644 (file)
@@ -49,12 +49,14 @@ public abstract class PooledSender extends AbstractSender implements MultiPointS
         queue.returnSender(sender);
     }
     
+    @Override
     public synchronized void connect() throws IOException {
         //do nothing, happens in the socket sender itself
         queue.open();
         setConnected(true);
     }
     
+    @Override
     public synchronized void disconnect() {
         queue.close();
         setConnected(false);
@@ -79,6 +81,7 @@ public abstract class PooledSender extends AbstractSender implements MultiPointS
         return poolSize;
     }
 
+    @Override
     public boolean keepalive() {
         //do nothing, the pool checks on every return
         return (queue==null)?false:queue.checkIdleKeepAlive();
index b773fcc..aadcec5 100644 (file)
@@ -155,6 +155,7 @@ public class BioReplicationTask extends AbstractRxTask {
         }
     }
     
+    @Override
     public void close() {
         setDoRun(false);
         try {socket.close();}catch ( Exception ignore){}
index ffe6240..e99f17b 100644 (file)
@@ -91,6 +91,7 @@ public class BioSender extends AbstractSender implements DataSender {
      * Connect other cluster member receiver 
      * @see org.apache.catalina.tribes.transport.IDataSender#connect()
      */
+    @Override
     public  void connect() throws IOException {
         openSocket();
    }
@@ -101,6 +102,7 @@ public class BioSender extends AbstractSender implements DataSender {
      * 
      * @see IDataSender#disconnect()
      */
+    @Override
     public  void disconnect() {
         boolean connect = isConnected();
         closeSocket();
@@ -149,6 +151,7 @@ public class BioSender extends AbstractSender implements DataSender {
     /**
      * Name of this SockerSender
      */
+    @Override
     public String toString() {
         StringBuilder buf = new StringBuilder("DataSender[(");
         buf.append(super.toString()).append(")");
index 948062c..448a658 100644 (file)
@@ -85,6 +85,7 @@ public class MultipointBioSender extends AbstractSender implements MultiPointSen
         else return result;
     }
 
+    @Override
     public void connect() throws IOException {
         //do nothing, we connect on demand
         setConnected(true);
@@ -119,16 +120,19 @@ public class MultipointBioSender extends AbstractSender implements MultiPointSen
     }
 
 
+    @Override
     public synchronized void disconnect() {
         try {close(); }catch (Exception x){}
         setConnected(false);
     }
 
+    @Override
     public void finalize() {
         try {disconnect(); }catch ( Exception ignore){}
     }
 
 
+    @Override
     public boolean keepalive() {
         //throw new UnsupportedOperationException("Method ParallelBioSender.checkKeepAlive() not implemented");
         boolean result = false;
index 196b4e9..cd45251 100644 (file)
@@ -64,6 +64,7 @@ public class PooledMultiSender extends PooledSender {
      * @todo Implement this org.apache.catalina.tribes.transport.PooledSender
      *   method
      */
+    @Override
     public DataSender getNewDataSender() {
         MultipointBioSender sender = new MultipointBioSender();
         AbstractSender.transferProperties(this,sender);
index 7a44761..b2f5154 100644 (file)
@@ -81,6 +81,7 @@ public class NioReceiver extends ReceiverBase implements Runnable, ChannelReceiv
 //        return interestOpsMutex;
 //    }
 
+    @Override
     public void stop() {
         this.stopListening();
         super.stop();
@@ -91,6 +92,7 @@ public class NioReceiver extends ReceiverBase implements Runnable, ChannelReceiv
      * @throws Exception
      * @see org.apache.catalina.tribes.ClusterReceiver#start()
      */
+    @Override
     public void start() throws IOException {
         super.start();
         try {
index a5e9874..6dcc672 100644 (file)
@@ -211,6 +211,7 @@ public class NioSender extends AbstractSender implements DataSender{
      * @throws IOException
      * @todo Implement this org.apache.catalina.tribes.transport.IDataSender method
      */
+    @Override
     public synchronized void connect() throws IOException {
         if ( connecting || isConnected()) return;
         connecting = true;
@@ -255,6 +256,7 @@ public class NioSender extends AbstractSender implements DataSender{
      *
      * @todo Implement this org.apache.catalina.tribes.transport.IDataSender method
      */
+    @Override
     public void disconnect() {
         try {
             connecting = false;
index b781c6d..1f2ffc1 100644 (file)
@@ -235,6 +235,7 @@ public class ParallelNioSender extends AbstractSender implements MultiPointSende
         else return result;
     }
 
+    @Override
     public void connect() {
         //do nothing, we connect on demand
         setConnected(true);
@@ -269,17 +270,20 @@ public class ParallelNioSender extends AbstractSender implements MultiPointSende
     }
 
 
+    @Override
     public synchronized void disconnect() {
         setConnected(false);
         try {close(); }catch (Exception x){}
 
     }
 
+    @Override
     public void finalize() {
         try {disconnect(); }catch ( Exception ignore){}
         try {selector.close();} catch (Exception ignore) {}
     }
 
+    @Override
     public boolean keepalive() {
         boolean result = false;
         for ( Iterator<Entry<Member, NioSender>> i = nioSenders.entrySet().iterator(); i.hasNext();  ) {
index 2e9c181..1e9490b 100644 (file)
@@ -60,6 +60,7 @@ public class PooledParallelSender extends PooledSender implements MultiPointSend
         }
     }
 
+    @Override
     public DataSender getNewDataSender() {
         try {
             ParallelNioSender sender = new ParallelNioSender();
@@ -70,11 +71,13 @@ public class PooledParallelSender extends PooledSender implements MultiPointSend
         }
     }
     
+    @Override
     public synchronized void disconnect() {
         this.connected = false;
         super.disconnect();
     }
 
+    @Override
     public synchronized void connect() throws IOException {
         this.connected = true;
         super.connect();
index c42b9d9..fd7b4e7 100644 (file)
@@ -66,6 +66,7 @@ public class ExecutorFactory {
             return super.offer(o); //forces the item onto the queue, to be used if the task is rejected
         }
 
+        @Override
         public boolean offer(Runnable o) {
             //we can't do any checks
             if (parent==null) return super.offer(o);
index 5a4f50b..348a181 100644 (file)
@@ -82,6 +82,7 @@ public class MemoryGroup extends AbstractGroup {
     /**
      * Return the set of {@link Role}s assigned specifically to this group.
      */
+    @Override
     public Iterator<Role> getRoles() {
 
         synchronized (roles) {
@@ -94,6 +95,7 @@ public class MemoryGroup extends AbstractGroup {
     /**
      * Return the {@link UserDatabase} within which this Group is defined.
      */
+    @Override
     public UserDatabase getUserDatabase() {
 
         return (this.database);
@@ -104,6 +106,7 @@ public class MemoryGroup extends AbstractGroup {
     /**
      * Return the set of {@link org.apache.catalina.User}s that are members of this group.
      */
+    @Override
     public Iterator<User> getUsers() {
 
         ArrayList<User> results = new ArrayList<User>();
@@ -127,6 +130,7 @@ public class MemoryGroup extends AbstractGroup {
      *
      * @param role The new role
      */
+    @Override
     public void addRole(Role role) {
 
         synchronized (roles) {
@@ -143,6 +147,7 @@ public class MemoryGroup extends AbstractGroup {
      *
      * @param role The role to check
      */
+    @Override
     public boolean isInRole(Role role) {
 
         synchronized (roles) {
@@ -157,6 +162,7 @@ public class MemoryGroup extends AbstractGroup {
      *
      * @param role The old role
      */
+    @Override
     public void removeRole(Role role) {
 
         synchronized (roles) {
@@ -169,6 +175,7 @@ public class MemoryGroup extends AbstractGroup {
     /**
      * Remove all {@link Role}s from those assigned to this group.
      */
+    @Override
     public void removeRoles() {
 
         synchronized (roles) {
@@ -181,6 +188,7 @@ public class MemoryGroup extends AbstractGroup {
     /**
      * <p>Return a String representation of this group in XML format.</p>
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("<group groupname=\"");
index 03c4437..0e73b45 100644 (file)
@@ -71,6 +71,7 @@ public class MemoryRole extends AbstractRole {
     /**
      * Return the {@link UserDatabase} within which this role is defined.
      */
+    @Override
     public UserDatabase getUserDatabase() {
 
         return (this.database);
@@ -84,6 +85,7 @@ public class MemoryRole extends AbstractRole {
     /**
      * <p>Return a String representation of this role in XML format.</p>
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("<role rolename=\"");
index 445c56f..4a62985 100644 (file)
@@ -90,6 +90,7 @@ public class MemoryUser extends AbstractUser {
     /**
      * Return the set of {@link Group}s to which this user belongs.
      */
+    @Override
     public Iterator<Group> getGroups() {
 
         synchronized (groups) {
@@ -102,6 +103,7 @@ public class MemoryUser extends AbstractUser {
     /**
      * Return the set of {@link Role}s assigned specifically to this user.
      */
+    @Override
     public Iterator<Role> getRoles() {
 
         synchronized (roles) {
@@ -129,6 +131,7 @@ public class MemoryUser extends AbstractUser {
      *
      * @param group The new group
      */
+    @Override
     public void addGroup(Group group) {
 
         synchronized (groups) {
@@ -145,6 +148,7 @@ public class MemoryUser extends AbstractUser {
      *
      * @param role The new role
      */
+    @Override
     public void addRole(Role role) {
 
         synchronized (roles) {
@@ -161,6 +165,7 @@ public class MemoryUser extends AbstractUser {
      *
      * @param group The group to check
      */
+    @Override
     public boolean isInGroup(Group group) {
 
         synchronized (groups) {
@@ -177,6 +182,7 @@ public class MemoryUser extends AbstractUser {
      *
      * @param role The role to check
      */
+    @Override
     public boolean isInRole(Role role) {
 
         synchronized (roles) {
@@ -191,6 +197,7 @@ public class MemoryUser extends AbstractUser {
      *
      * @param group The old group
      */
+    @Override
     public void removeGroup(Group group) {
 
         synchronized (groups) {
@@ -203,6 +210,7 @@ public class MemoryUser extends AbstractUser {
     /**
      * Remove all {@link Group}s from those this user belongs to.
      */
+    @Override
     public void removeGroups() {
 
         synchronized (groups) {
@@ -217,6 +225,7 @@ public class MemoryUser extends AbstractUser {
      *
      * @param role The old role
      */
+    @Override
     public void removeRole(Role role) {
 
         synchronized (roles) {
@@ -229,6 +238,7 @@ public class MemoryUser extends AbstractUser {
     /**
      * Remove all {@link Role}s from those assigned to this user.
      */
+    @Override
     public void removeRoles() {
 
         synchronized (roles) {
@@ -246,6 +256,7 @@ public class MemoryUser extends AbstractUser {
      * <code>username</code> or </code>name</code> for the username
      * property.</p>
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("<user username=\"");
index 20fb637..aee332f 100644 (file)
@@ -608,6 +608,7 @@ public class MemoryUserDatabase implements UserDatabase {
     /**
      * Return a String representation of this UserDatabase.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("MemoryUserDatabase[id=");
index ec76335..ec5b3d4 100644 (file)
@@ -69,6 +69,7 @@ public final class CustomObjectInputStream
      * @exception ClassNotFoundException if this class cannot be found
      * @exception IOException if an input/output error occurs
      */
+    @Override
     public Class<?> resolveClass(ObjectStreamClass classDesc)
         throws ClassNotFoundException, IOException {
         try {
@@ -85,6 +86,7 @@ public final class CustomObjectInputStream
      * class descriptor. Do this using the class loader assigned to this
      * Context.
      */
+    @Override
     protected Class<?> resolveProxyClass(String[] interfaces)
         throws IOException, ClassNotFoundException {
 
index 3b05603..94d2322 100644 (file)
@@ -218,6 +218,7 @@ public final class Extension {
     /**
      * Return a String representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("Extension[");
index c869668..206567d 100644 (file)
@@ -127,6 +127,7 @@ public class ManifestResource {
         return true;
     }
     
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("ManifestResource[");
index be8d39e..5b00064 100644 (file)
@@ -139,6 +139,7 @@ public final class ParameterMap<K,V> extends HashMap<K,V> {
      *
      * @exception IllegalStateException if this map is currently locked
      */
+    @Override
     public void clear() {
 
         if (locked)
@@ -162,6 +163,7 @@ public final class ParameterMap<K,V> extends HashMap<K,V> {
      *
      * @exception IllegalStateException if this map is currently locked
      */
+    @Override
     public V put(K key, V value) {
 
         if (locked)
@@ -181,6 +183,7 @@ public final class ParameterMap<K,V> extends HashMap<K,V> {
      *
      * @exception IllegalStateException if this map is currently locked
      */
+    @Override
     public void putAll(Map<? extends K,? extends V> map) {
 
         if (locked)
@@ -201,6 +204,7 @@ public final class ParameterMap<K,V> extends HashMap<K,V> {
      *
      * @exception IllegalStateException if this map is currently locked
      */
+    @Override
     public V remove(Object key) {
 
         if (locked)
index 4dba94f..6a71b13 100644 (file)
@@ -141,6 +141,7 @@ public final class ResourceSet<T> extends HashSet<T> {
      *
      * @exception IllegalStateException if this ResourceSet is locked
      */
+    @Override
     public boolean add(T o) {
 
         if (locked)
@@ -156,6 +157,7 @@ public final class ResourceSet<T> extends HashSet<T> {
      *
      * @exception IllegalStateException if this ResourceSet is locked
      */
+    @Override
     public void clear() {
 
         if (locked)
@@ -174,6 +176,7 @@ public final class ResourceSet<T> extends HashSet<T> {
      *
      * @exception IllegalStateException if this ResourceSet is locked
      */
+    @Override
     public boolean remove(Object o) {
 
         if (locked)
index aebee70..2a0f415 100644 (file)
@@ -90,6 +90,7 @@ public class XMLWriter {
      *
      * @return String containing the generated XML
      */
+    @Override
     public String toString() {
         return buffer.toString();
     }
index 11ed5d3..53a8ab4 100644 (file)
@@ -275,6 +275,7 @@ public class AccessLogValve
      */
     private static final ThreadLocal<AccessDateStruct> currentDateStruct =
             new ThreadLocal<AccessDateStruct>() {
+        @Override
         protected AccessDateStruct initialValue() {
             return new AccessDateStruct();
         }
@@ -351,6 +352,7 @@ public class AccessLogValve
     /**
      * Return descriptive information about this implementation.
      */
+    @Override
     public String getInfo() {
         return (info);
     }
@@ -535,6 +537,7 @@ public class AccessLogValve
      * invoked inside the classloading context of this container. Unexpected
      * throwables will be caught and logged.
      */
+    @Override
     public void backgroundProcess() {
         if (started && getEnabled() && writer != null && buffered) {
             writer.flush();
@@ -551,6 +554,7 @@ public class AccessLogValve
      * @exception IOException if an input/output error has occurred
      * @exception ServletException if a servlet error has occurred
      */
+    @Override
     public void invoke(Request request, Response response) throws IOException,
             ServletException {
 
index 22ddb06..00b94e9 100644 (file)
@@ -233,6 +233,7 @@ public class CometConnectionManagerValve
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
         return (info);
     }
@@ -247,6 +248,7 @@ public class CometConnectionManagerValve
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet error occurs
      */
+    @Override
     public void invoke(Request request, Response response)
         throws IOException, ServletException {
         // Perform the request
@@ -293,6 +295,7 @@ public class CometConnectionManagerValve
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet error occurs
      */
+    @Override
     public void event(Request request, Response response, CometEvent event)
         throws IOException, ServletException {
         
index 8229118..112bd7d 100644 (file)
@@ -79,6 +79,7 @@ public class ErrorReportValve
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -99,6 +100,7 @@ public class ErrorReportValve
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet error occurs
      */
+    @Override
     public void invoke(Request request, Response response)
         throws IOException, ServletException {
 
index ad4742c..28fedba 100644 (file)
@@ -151,6 +151,7 @@ public class ExtendedAccessLogValve
     /**
      * Return descriptive information about this implementation.
      */
+    @Override
     public String getInfo() {
         return (extendedAccessLogInfo);
     }
@@ -209,6 +210,7 @@ public class ExtendedAccessLogValve
     /**
      * Open the new log file for the date specified by <code>dateStamp</code>.
      */
+    @Override
     protected synchronized void open() {
         super.open();
         if (currentLogFile.length()==0) {
@@ -228,6 +230,7 @@ public class ExtendedAccessLogValve
         
         private static final ThreadLocal<ElementTimestampStruct> currentDate =
                 new ThreadLocal<ElementTimestampStruct>() {
+            @Override
             protected ElementTimestampStruct initialValue() {
                 return new ElementTimestampStruct("yyyy-MM-dd");
             }
@@ -254,6 +257,7 @@ public class ExtendedAccessLogValve
         
         private static final ThreadLocal<ElementTimestampStruct> currentTime =
                 new ThreadLocal<ElementTimestampStruct>() {
+            @Override
             protected ElementTimestampStruct initialValue() {
                 return new ElementTimestampStruct("HH:mm:ss");
             }
@@ -528,6 +532,7 @@ public class ExtendedAccessLogValve
         
     }
     
+    @Override
     protected AccessLogElement[] createLogElements() {
         if (log.isDebugEnabled()) {
             log.debug("decodePattern, pattern =" + pattern);
index 944a4de..c866bcf 100644 (file)
@@ -78,6 +78,7 @@ public class PersistentValve
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -99,6 +100,7 @@ public class PersistentValve
      * @exception IOException if an input/output error occurred
      * @exception ServletException if a servlet error occurred
      */
+    @Override
     public void invoke(Request request, Response response)
         throws IOException, ServletException {
 
index 4ea725e..7df3faa 100644 (file)
@@ -53,6 +53,7 @@ public final class RemoteAddrValve
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -75,6 +76,7 @@ public final class RemoteAddrValve
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet error occurs
      */
+    @Override
     public void invoke(Request request, Response response)
         throws IOException, ServletException {
 
index b6d67d1..ce98320 100644 (file)
@@ -53,6 +53,7 @@ public final class RemoteHostValve
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -75,6 +76,7 @@ public final class RemoteHostValve
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet error occurs
      */
+    @Override
     public void invoke(Request request, Response response)
         throws IOException, ServletException {
 
index cb25eae..e774e49 100644 (file)
@@ -173,6 +173,7 @@ public abstract class RequestFilterValve
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
 
         return (info);
@@ -195,6 +196,7 @@ public abstract class RequestFilterValve
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet error occurs
      */
+    @Override
     public abstract void invoke(Request request, Response response)
         throws IOException, ServletException;
 
index b9b1a29..f09c0ee 100644 (file)
@@ -65,6 +65,7 @@ public class SSLValve
             return null;
         return strcert0;
     } 
+    @Override
     public void invoke(Request request, Response response)
         throws IOException, ServletException {
 
index c991710..ebb7384 100644 (file)
@@ -210,6 +210,7 @@ public class SemaphoreValve
     /**
      * Return descriptive information about this Valve implementation.
      */
+    @Override
     public String getInfo() {
         return (info);
     }
@@ -224,6 +225,7 @@ public class SemaphoreValve
      * @exception IOException if an input/output error occurs
      * @exception ServletException if a servlet error occurs
      */
+    @Override
     public void invoke(Request request, Response response)
         throws IOException, ServletException {
 
index 9c310a3..524b536 100644 (file)
@@ -227,6 +227,7 @@ public abstract class ValveBase
     /**
      * Return a String rendering of this object.
      */
+    @Override
     public String toString() {
         StringBuilder sb = new StringBuilder(this.getClass().getName());
         sb.append("[");