remm        01/06/12 17:59:11

  Modified:    catalina/src/share/org/apache/naming/resources
                        ResourceAttributes.java
  Log:
  - Made the setters public, which makes it possible to actually plug a directory
    context external to Catalina without having to reimplement something like
    ResourceAttributes, or having to use BaseAttributes, which would be slower.
  
  Revision  Changes    Path
  1.2       +9 -9      
jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/resources/ResourceAttributes.java
  
  Index: ResourceAttributes.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/resources/ResourceAttributes.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ResourceAttributes.java   2001/01/23 03:41:29     1.1
  +++ ResourceAttributes.java   2001/06/13 00:59:10     1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/resources/ResourceAttributes.java,v
 1.1 2001/01/23 03:41:29 remm Exp $
  - * $Revision: 1.1 $
  - * $Date: 2001/01/23 03:41:29 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/resources/ResourceAttributes.java,v
 1.2 2001/06/13 00:59:10 remm Exp $
  + * $Revision: 1.2 $
  + * $Date: 2001/06/13 00:59:10 $
    *
    * ====================================================================
    *
  @@ -83,7 +83,7 @@
    * Attributes implementation.
    * 
    * @author <a href="mailto:[EMAIL PROTECTED]";>Remy Maucherat</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    */
   public final class ResourceAttributes extends BasicAttributes {
       
  @@ -472,7 +472,7 @@
        * 
        * @param creationDate New creation date
        */
  -    void setCreationDate(Date creationDate) {
  +    public void setCreationDate(Date creationDate) {
           setProtectedAttribute(CREATION_DATE, creationDate);
       }
       
  @@ -482,7 +482,7 @@
        * 
        * @param lastModified New last modified date
        */
  -    void setLastModified(Date lastModified) {
  +    public void setLastModified(Date lastModified) {
           setProtectedAttribute(LAST_MODIFIED, lastModified);
       }
       
  @@ -492,7 +492,7 @@
        * 
        * @param contentLength New content length
        */
  -    void setContentLength(long contentLength) {
  +    public void setContentLength(long contentLength) {
           setProtectedAttribute(CONTENT_LENGTH, new Long(contentLength));
       }
       
  @@ -502,7 +502,7 @@
        * 
        * @param name New name
        */
  -    void setName(String name) {
  +    public void setName(String name) {
           setProtectedAttribute(NAME, name);
       }
       
  @@ -512,7 +512,7 @@
        * 
        * @param resourceType New resource type
        */
  -    void setResourceType(String resourceType) {
  +    public void setResourceType(String resourceType) {
           setProtectedAttribute(TYPE, resourceType);
       }
       
  
  
  

Reply via email to