src/share/jaxws_classes/com/sun/xml/internal/ws/api/pipe/helper/AbstractTubeImpl.java

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
equal deleted inserted replaced
366:8c0b6bccfe47 368:0989ad8c0860
1 /* 1 /*
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
73 NextAction na = new NextAction(); 73 NextAction na = new NextAction();
74 na.returnWith(response); 74 na.returnWith(response);
75 return na; 75 return na;
76 } 76 }
77 77
78 protected final NextAction doThrow(Packet response, Throwable t) {
79 NextAction na = new NextAction();
80 na.throwException(response, t);
81 return na;
82 }
83
84 @Deprecated
78 protected final NextAction doSuspend() { 85 protected final NextAction doSuspend() {
79 NextAction na = new NextAction(); 86 NextAction na = new NextAction();
80 na.suspend(); 87 na.suspend();
81 return na; 88 return na;
82 } 89 }
83 90
91 protected final NextAction doSuspend(Runnable onExitRunnable) {
92 NextAction na = new NextAction();
93 na.suspend(onExitRunnable);
94 return na;
95 }
96
97 @Deprecated
84 protected final NextAction doSuspend(Tube next) { 98 protected final NextAction doSuspend(Tube next) {
85 NextAction na = new NextAction(); 99 NextAction na = new NextAction();
86 na.suspend(next); 100 na.suspend(next);
101 return na;
102 }
103
104 protected final NextAction doSuspend(Tube next, Runnable onExitRunnable) {
105 NextAction na = new NextAction();
106 na.suspend(next, onExitRunnable);
87 return na; 107 return na;
88 } 108 }
89 109
90 protected final NextAction doThrow(Throwable t) { 110 protected final NextAction doThrow(Throwable t) {
91 NextAction na = new NextAction(); 111 NextAction na = new NextAction();

mercurial