[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/http ...

Tom Elrod tom.elrod at jboss.com
Mon Jul 17 00:54:01 EDT 2006


  User: telrod  
  Date: 06/07/17 00:54:01

  Added:       src/tests/org/jboss/test/remoting/transport/http 
                        WebServerError.java
  Log:
  JBREM-544 - changed http client invoker to throw exception upon web server error by default.  Can be configured to not throw exception and just return as response if desired.
  
  Revision  Changes    Path
  1.1      date: 2006/07/17 04:54:01;  author: telrod;  state: Exp;JBossRemoting/src/tests/org/jboss/test/remoting/transport/http/WebServerError.java
  
  Index: WebServerError.java
  ===================================================================
  /*
  * JBoss, Home of Professional Open Source
  * Copyright 2005, JBoss Inc., and individual contributors as indicated
  * by the @authors tag. See the copyright.txt in the distribution for a
  * full listing of individual contributors.
  *
  * This is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as
  * published by the Free Software Foundation; either version 2.1 of
  * the License, or (at your option) any later version.
  *
  * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the Free
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  */
  package org.jboss.test.remoting.transport.http;
  
  import java.io.IOException;
  
  /**
   * Exception to be thrown by http client invoker in the case
   * an error is received from web server is calling upon.
   * The message within this exception will be the data from the error
   * stream of the web server (error html in most cases).
   * @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
   */
  public class WebServerError extends IOException
  {
  
     public WebServerError(String s)
     {
        super(s);
     }
  }
  
  



More information about the jboss-cvs-commits mailing list