1.1 --- a/src/share/jaxws_classes/com/sun/xml/internal/ws/api/pipe/helper/AbstractTubeImpl.java Thu Apr 04 19:05:24 2013 -0700 1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/api/pipe/helper/AbstractTubeImpl.java Tue Apr 09 14:51:13 2013 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -75,18 +75,38 @@ 1.11 return na; 1.12 } 1.13 1.14 + protected final NextAction doThrow(Packet response, Throwable t) { 1.15 + NextAction na = new NextAction(); 1.16 + na.throwException(response, t); 1.17 + return na; 1.18 + } 1.19 + 1.20 + @Deprecated 1.21 protected final NextAction doSuspend() { 1.22 NextAction na = new NextAction(); 1.23 na.suspend(); 1.24 return na; 1.25 } 1.26 1.27 + protected final NextAction doSuspend(Runnable onExitRunnable) { 1.28 + NextAction na = new NextAction(); 1.29 + na.suspend(onExitRunnable); 1.30 + return na; 1.31 + } 1.32 + 1.33 + @Deprecated 1.34 protected final NextAction doSuspend(Tube next) { 1.35 NextAction na = new NextAction(); 1.36 na.suspend(next); 1.37 return na; 1.38 } 1.39 1.40 + protected final NextAction doSuspend(Tube next, Runnable onExitRunnable) { 1.41 + NextAction na = new NextAction(); 1.42 + na.suspend(next, onExitRunnable); 1.43 + return na; 1.44 + } 1.45 + 1.46 protected final NextAction doThrow(Throwable t) { 1.47 NextAction na = new NextAction(); 1.48 na.throwException(t);