Lines Matching refs:handlers

54     private List<? extends Handler> handlers; // may be logical/soap mixed
61 * The handlers that are passed in will be sorted into
62 * logical and soap handlers. During this sorting, the
64 * handlers.
67 * be protocol or logical handlers.
74 handlers = chain;
79 * Gives index of the handler in the chain to know what handlers in the chain
96 * return true, if all handlers in the chain return true
98 * return false, One of the handlers has returned false or thrown a
101 * handlers are invoked until that point.
102 * 2) Previously invoked handlers are again invoked (handleMessage()
105 * While closing handlers, check getIndex() to get the invoked
106 * handlers.
112 * While closing handlers, check getIndex() to get the invoked
113 * handlers.
120 // call handlers
123 result = callHandleMessage(context, 0, handlers.size() - 1);
125 result = callHandleMessage(context, handlers.size() - 1, 0);
140 callHandleFault(context, getIndex() + 1, handlers.size() - 1);
158 callHandleMessageReverse(context, getIndex() + 1, handlers.size() - 1);
176 * Runs all handlers until handle returns false or throws a RuntimeException
177 * CurrentPipe should close all the handlers in the chain.
181 * CurrentPipe should close all the handlers in the chain. *
188 // call handleFault on handlers
190 callHandleFault(context, 0, handlers.size() - 1);
192 callHandleFault(context, handlers.size() - 1, 0);
195 // call handleMessage on handlers
197 callHandleMessageReverse(context, 0, handlers.size() - 1);
199 callHandleMessageReverse(context, handlers.size() - 1, 0);
258 * Calls handleMessage on the handlers. Indices are
264 if (handlers.isEmpty() ||
266 start == handlers.size()) {
274 if (!handlers.get(i).handleMessage(context)) {
282 if (!handlers.get(i).handleMessage(context)) {
297 * Calls handleMessage on the handlers. Indices are
307 if (handlers.isEmpty() ||
309 start == handlers.size()) {
317 if (!handlers.get(i).handleMessage(context)) {
326 if (!handlers.get(i).handleMessage(context)) {
338 * Calls handleFault on the handlers. Indices are
345 if (handlers.isEmpty() ||
347 start == handlers.size()) {
355 if (!handlers.get(i).handleFault(context)) {
368 if (!handlers.get(i).handleFault(context)) {
383 * Calls close on the handlers from the starting
388 if (handlers.isEmpty() ||
395 handlers.get(i).close(context);
404 handlers.get(i).close(context);