User: chirino 
  Date: 01/08/25 21:03:27

  Modified:    src/main/org/jboss/util FileURLPatch.java
                        FileURLPatchMBean.java
  Log:
  Fixed up the javadoc
  
  Revision  Changes    Path
  1.2       +20 -13    jboss/src/main/org/jboss/util/FileURLPatch.java
  
  Index: FileURLPatch.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/util/FileURLPatch.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FileURLPatch.java 2001/08/26 03:20:39     1.1
  +++ FileURLPatch.java 2001/08/26 04:03:27     1.2
  @@ -24,19 +24,19 @@
    * all file based URLs when externalized with have spaces replaced with pluses.
    *      
    *   @author <a href="mailto:[EMAIL PROTECTED]";>Hiram Chirino</a>.
  - *   @version $Revision: 1.1 $
  + *   @version $Revision: 1.2 $
    */
   public class FileURLPatch implements FileURLPatchMBean, MBeanRegistration {
   
  -     public static final String OBJECT_NAME= ":service=FileURLPatch";
  +   public static final String OBJECT_NAME= ":service=FileURLPatch";
      Category log= Category.getInstance(FileURLPatch.class);
      private CustomURLStreamHandlerFactory customURLStreamHandlerFactory= new 
CustomURLStreamHandlerFactory();
      private boolean enabled= false;
      private FileHandler fileHander= new FileHandler();
   
  -   //
  -   // This class is used to hook into the URL protocol parsing sysytem
  -   //
  +   /** 
  +    * This class is used to hook into the URL protocol parsing sysytem
  +    */
      private class CustomURLStreamHandlerFactory implements URLStreamHandlerFactory {
          public URLStreamHandler createURLStreamHandler(String protocol) {
                 if (protocol.equals("file"))
  @@ -45,13 +45,15 @@
          }
      }
   
  -   //
  -   // This class will override how the file handler is implemented.
  -   //
  +   /** 
  +    * This class will override how the file handler is implemented.
  +     */
      private class FileHandler extends sun.net.www.protocol.file.Handler {
   
  -       // When we externalize the URL we want to make all the spaces in the file 
name
  -       // a '+' character
  +       /**
  +        * When we externalize the URL we want to make all the spaces in the file 
name
  +        * a '+' character
  +        */
          protected String toExternalForm(URL u) {
                 if (enabled) {
                        String s= super.toExternalForm(u);
  @@ -60,8 +62,10 @@
                 return super.toExternalForm(u);
          }
   
  -       // When we load a URL in we want to convert all the '+' characters in the 
file name
  -       // into spaces.
  +       /**
  +        * When we load a URL in we want to convert all the '+' characters in the 
file name
  +        * into spaces.
  +        */
          protected void parseURL(URL u, String spec, int start, int limit) {
                 super.parseURL(u, spec, start, limit);
                 if (enabled) {
  @@ -70,6 +74,9 @@
          }
      }
   
  +   /**
  +    * This patch can be enabled and disabled at runtime by calling this method.
  +     */ 
      public void setEnabled(boolean enable) {
          this.enabled= enable;
          if (enabled)
  @@ -92,4 +99,4 @@
      public void postDeregister() {
      }   
      
  -}
  \ No newline at end of file
  +}
  
  
  
  1.2       +3 -8      jboss/src/main/org/jboss/util/FileURLPatchMBean.java
  
  Index: FileURLPatchMBean.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/util/FileURLPatchMBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FileURLPatchMBean.java    2001/08/26 03:20:39     1.1
  +++ FileURLPatchMBean.java    2001/08/26 04:03:27     1.2
  @@ -9,16 +9,11 @@
   import java.lang.Object;
   
   /**
  - *   <description> 
  - *      
  + *   Used to show the managment interface of the FileURLPatch object.
    *   @see <related>
  - *   @author <a href="mailto:[EMAIL PROTECTED]";>Rickard �berg</a>.
    *   @author <a href="mailto:[EMAIL PROTECTED]";>Hiram Chirino</a>.
  - *   @version $Revision: 1.1 $
  + *   @version $Revision: 1.2 $
    */
   public interface FileURLPatchMBean {
  -
  -
  -
        public void setEnabled(boolean enable);
  -}
  \ No newline at end of file
  +}
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to