You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by co...@apache.org on 2002/05/01 04:36:03 UTC

cvs commit: jakarta-avalon-apps/httpproxy/src/java/org/apache/avalon/httpproxy HttpRequestWrapper.java Resources.properties

colus       02/04/30 19:36:03

  Modified:    httpproxy/src/java/org/apache/avalon/httpproxy
                        HttpRequestWrapper.java Resources.properties
  Log:
  More i18n messages.
  
  Revision  Changes    Path
  1.4       +11 -2     jakarta-avalon-apps/httpproxy/src/java/org/apache/avalon/httpproxy/HttpRequestWrapper.java
  
  Index: HttpRequestWrapper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-apps/httpproxy/src/java/org/apache/avalon/httpproxy/HttpRequestWrapper.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- HttpRequestWrapper.java	20 Apr 2002 12:51:06 -0000	1.3
  +++ HttpRequestWrapper.java	1 May 2002 02:36:02 -0000	1.4
  @@ -14,6 +14,8 @@
   import java.net.URL;
   import java.net.UnknownHostException;
   import org.apache.avalon.framework.logger.Logger;
  +import org.apache.avalon.excalibur.i18n.ResourceManager;
  +import org.apache.avalon.excalibur.i18n.Resources;
   
   /**
    * @author <a href="Paul_Hammant@yahoo.com">Paul Hammant</a>
  @@ -21,6 +23,9 @@
    */
   public class HttpRequestWrapper
   {
  +    private static final Resources REZ =
  +        ResourceManager.getPackageResources( HttpRequestWrapper.class );
  +
       protected static final String EOF = "\r\n\r\n";
       protected static final int SEGLEN = 2048;
   
  @@ -51,7 +56,9 @@
           }
           catch ( final MalformedURLException mfue )
           {
  -            m_logger.error( "URL from http header is malformed", mfue );
  +            final String message =
  +                REZ.getString( "wrapper.error.malformed-url" );
  +            m_logger.error( message, mfue );
           }
       }
   
  @@ -80,7 +87,9 @@
           }
           catch ( final StringIndexOutOfBoundsException sioobe )
           {
  -            m_logger.error( "Unable to find URL in http header", sioobe );
  +            final String message =
  +                REZ.getString( "wrapper.error.header.url" );
  +            m_logger.error( message, sioobe );
           }
   
           return null;
  
  
  
  1.3       +3 -2      jakarta-avalon-apps/httpproxy/src/java/org/apache/avalon/httpproxy/Resources.properties
  
  Index: Resources.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-apps/httpproxy/src/java/org/apache/avalon/httpproxy/Resources.properties,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Resources.properties	20 Apr 2002 12:10:47 -0000	1.2
  +++ Resources.properties	1 May 2002 02:36:02 -0000	1.3
  @@ -6,8 +6,9 @@
   handler.error.handle=Exception in proxy handling socket to {0}.
   handler.error.close-server=Fail to close server socket.
   handler.error.close-client=Fail to close client socket.
  -
  +wrapper.error.malformed-url=URL from http header is malformed.
  +wrapper.error.header.url=Unable to find URL in http header.
   auditing.notice.validate=Connection to {0}.
   filtering.notice.block-content=Block all content from {0}.
   filtering.notice.allow-cookies=Allow cookies from {0}.
  -filtering.notice.cookie-supressed=Cookie supressed for url {0}.
  \ No newline at end of file
  +filtering.notice.cookie-supressed=Cookie supressed for url {0}.
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>