Examples of beginRequest()


Examples of org.hdiv.dataComposer.IDataComposer.beginRequest()

    }

    UrlData urlData = this.createUrlData(url, method, request);
    if (this.isHdivStateNecessary(urlData)) {
      // the url needs protection
      String stateId = dataComposer.beginRequest(method, urlData.getUrlWithoutContextPath());

      // Publish the state in request to make it accessible on jsp
      request.setAttribute(FORM_STATE_ID, stateId);

      // Process url params
View Full Code Here

Examples of org.hdiv.dataComposer.IDataComposer.beginRequest()

    }

    UrlData urlData = this.createUrlData(url, "GET", request);
    if (this.isHdivStateNecessary(urlData)) {
      // the url needs protection
      dataComposer.beginRequest("GET", urlData.getUrlWithoutContextPath());

      String processedParams = dataComposer.composeParams(urlData.getUrlParams(), "GET", encoding);
      urlData.setUrlParams(processedParams);

      // Hdiv state param value
View Full Code Here

Examples of org.hdiv.dataComposer.IDataComposer.beginRequest()

    IDataComposer dataComposer = this.dataComposerFactory.newInstance(request);
    HDIVUtil.setDataComposer(dataComposer, request);
    assertTrue(dataComposer instanceof DataComposerMemory);

    dataComposer.startPage();
    dataComposer.beginRequest("POST", "test.do");
    dataComposer.compose("test.do", "parameter1", "2", false);
    dataComposer.compose("test.do", "parameter1", "2", false);
    String stateId = dataComposer.endRequest();

    assertTrue(stateId.startsWith("U-"));
View Full Code Here

Examples of org.hdiv.dataComposer.IDataComposer.beginRequest()

    HttpServletRequest request = HDIVUtil.getHttpServletRequest();
    IDataComposer dataComposer = this.dataComposerFactory.newInstance(request);
    HDIVUtil.setDataComposer(dataComposer, request);

    dataComposer.startPage();
    dataComposer.beginRequest("GET", "test.do");
    dataComposer.compose("parameter1", "2", false);
    String stateId = dataComposer.endRequest();
    dataComposer.endPage();

    assertNotNull(stateId);
View Full Code Here

Examples of org.jboss.weld.context.ContextLifecycle.beginRequest()

      ContextLifecycle lifeCycle = manager.getServices().get(ContextLifecycle.class);

      String requestId = UUID.randomUUID().toString();
      BeanStore beanStore = new ConcurrentHashMapBeanStore();
     
      lifeCycle.beginRequest(requestId, beanStore);
     
      context.register(endRequestEvent, new DestoryRequest(requestId, beanStore));
   }
  
   /**
 
View Full Code Here

Examples of org.wildfly.extension.requestcontroller.ControlPoint.beginRequest()

                injector.inject(new ManagedReferenceFactory() {
                    @Override
                    public ManagedReference getReference() {
                        ControlPoint cp = controlPointInjectedValue.getValue();
                        try {
                            RunResult res = cp.beginRequest();
                            if(res != RunResult.RUN) {
                                throw EjbLogger.ROOT_LOGGER.containerSuspended();
                            }
                            try {
                                return delegateInjection.getValue().getReference();
View Full Code Here

Examples of org.wildfly.extension.requestcontroller.ControlPoint.beginRequest()

        if (invocation != InvocationType.REMOTE && invocation != InvocationType.MESSAGE_DELIVERY) {
            return context.proceed();
        }
        EJBComponent component = getComponent(context, EJBComponent.class);
        ControlPoint entryPoint = component.getControlPoint();
        RunResult result = entryPoint.beginRequest();
        if (result == RunResult.REJECTED) {
            throw EjbLogger.ROOT_LOGGER.containerSuspended();
        }
        try {
            return context.proceed();
View Full Code Here

Examples of org.wildfly.extension.requestcontroller.ControlPoint.beginRequest()

        ControlPoint controlPoint = getControlPoint();
        if(controlPoint == null) {
            return createSession();
        } else {
            try {
                RunResult result = controlPoint.beginRequest();
                if(result == RunResult.REJECTED) {
                    throw EjbLogger.ROOT_LOGGER.containerSuspended();
                }
                try {
                    return createSession();
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.