openamf/src/java/org/openamf DefaultGateway.java,1.54,1.55

Sean Sullivan <[email protected]> Wed, 09 Jun 2004 06:12:05 +0000
Newsgroups gmane.comp.java.openamf.cvs
Message-ID <[email protected]>
Update of /cvsroot/openamf/openamf/src/java/org/openamf
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1056/src/java/org/openamf

Modified Files:
	DefaultGateway.java 
Log Message:
added two protected methods:
  processRequestException
  processServiceInvocationException

Subclasses can override these methods if necessary.


Index: DefaultGateway.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/DefaultGateway.java,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -d -r1.54 -r1.55
*** DefaultGateway.java	31 Mar 2004 03:19:18 -0000	1.54
--- DefaultGateway.java	9 Jun 2004 06:12:02 -0000	1.55
***************
*** 96,100 ****
  			serializeAMFMessage(resp, responseMessage);
  		} catch (Exception e) {
! 			log.error("Error in service: " + e, e);
  		}
  		finally {
--- 96,100 ----
  			serializeAMFMessage(resp, responseMessage);
  		} catch (Exception e) {
! 			processRequestException(e);
  		}
  		finally {
***************
*** 103,106 ****
--- 103,116 ----
  	}
  
+ 	protected void processRequestException(Exception e)
+ 	{
+ 		log.error("Error in service: " + e, e);
+ 	}
+ 
+ 	protected void processServiceInvocationException(ServiceInvocationException e)
+ 	{
+ 		log.warn("service invocation", e);
+ 	}
+ 
  	protected AMFMessage deserializeAMFMessage(HttpServletRequest req)
  		throws IOException {
***************
*** 179,187 ****
  		} catch (ServiceInvocationException e) {
  			serviceResult = e.getAMFError();
! 			log.warn("service invocation", e);
  		}
  		return serviceResult;
  	}
  
  	/**
  	 * Returns target
--- 189,198 ----
  		} catch (ServiceInvocationException e) {
  			serviceResult = e.getAMFError();
! 			processServiceInvocationException(e);
  		}
  		return serviceResult;
  	}
  
+ 
  	/**
  	 * Returns target



-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org