Examples of NextAction


Examples of org.glassfish.grizzly.filterchain.NextAction

                    }
                   
                    connection.setProcessor(connectionFilterChain);

                    if (hasRemaining) {
                        NextAction suspendAction = ctx.getSuspendAction();
                        ctx.setMessage(buffer);
                        ctx.suspend();
                        final FilterChainContext newContext =
                                obtainProtocolChainContext(ctx, connectionFilterChain);
                        ProcessorExecutor.execute(newContext.getInternalContext());
View Full Code Here

Examples of org.glassfish.grizzly.filterchain.NextAction

                onHttpHeaderError(httpHeader, ctx, e);

                // make the connection deaf to any following input
                // onHttpError call will take care of error processing
                // and closing the connection
                final NextAction suspendAction = ctx.getSuspendAction();
                ctx.completeAndRecycle();
                return suspendAction;
            }
        }
View Full Code Here

Examples of org.glassfish.grizzly.filterchain.NextAction

    protected static NextAction gracefullyCloseConnection(
            final FilterChainContext ctx) {
        flushAndClose(ctx);
       
        // we skip the processing and let connection to be closed
        final NextAction suspendAction = ctx.getSuspendAction();
        ctx.completeAndRecycle();
        return suspendAction;
    }
View Full Code Here

Examples of org.glassfish.grizzly.filterchain.NextAction

        if (output.canWrite()) {  // if connection write queue is not overloaded
            return ctx.getStopAction();
        } else { // if connection write queue is overloaded

            // prepare context for suspend
            final NextAction suspendAction = ctx.getSuspendAction();
            ctx.suspend();

            // notify when connection becomes writable, so we can resume it
            output.notifyCanWrite(new WriteHandler() {
                @Override
View Full Code Here

Examples of org.glassfish.grizzly.filterchain.NextAction

                    targetInitializer = targetInitializerLocal;
                }
            }
        }

        final NextAction nextAction = ctx.getSuspendAction();
        ctx.completeAndRecycle();

        // Deregister channel
        final SelectorRunner runner = nioConnection.getSelectorRunner();
        final SelectorHandler selectorHandler =
View Full Code Here

Examples of org.glassfish.grizzly.filterchain.NextAction

                    targetInitializer = targetInitializerLocal;
                }
            }
        }

        final NextAction nextAction = ctx.getSuspendAction();
        ctx.completeAndRecycle();

        // Deregister channel
        final SelectorRunner runner = nioConnection.getSelectorRunner();
        final SelectorHandler selectorHandler =
View Full Code Here

Examples of org.onebusaway.presentation.model.NextAction

  protected String getNextActionOrSuccess() {
    List<NextAction> stack = getNextActionStack(false);
    if (stack == null || stack.isEmpty())
      return SUCCESS;

    NextAction next = stack.remove(stack.size() - 1);

    Map<String, String[]> params = next.getParameters();
    if (params != null && !params.isEmpty()) {
      ActionContext context = ActionContext.getContext();
      Map<String, Object> contextParameters = context.getParameters();
      contextParameters.putAll(params);
    }

    return next.getAction();
  }
View Full Code Here

Examples of org.onebusaway.presentation.model.NextAction

    return next.getAction();
  }

  protected void pushNextAction(String action) {
    List<NextAction> stack = getNextActionStack(true);
    stack.add(new NextAction(action));
  }
View Full Code Here

Examples of org.onebusaway.presentation.model.NextAction

    stack.add(new NextAction(action));
  }

  protected void pushNextAction(String action, String key, String value) {
    List<NextAction> stack = getNextActionStack(true);
    stack.add(new NextAction(action, key, value));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.