Examples of handle()


Examples of org.springframework.security.web.access.AccessDeniedHandlerImpl.handle()

      // If we have found a set of provider ids which the user needs to connect with for this request, select one of them and send the user to the connect/<provider> page
      AccessDeniedHandlerImpl providerSpecificAccessDeniedHandler
       = new AccessDeniedHandlerImpl();
      request.setAttribute(REQUIRED_PROVIDERS_REQUEST_ATTRIBUTE_NAME, requiredProviderIds);
      providerSpecificAccessDeniedHandler.setErrorPage(connectWithProviderUrlPrefix + "/" + requiredProviderIds.iterator().next());
      providerSpecificAccessDeniedHandler.handle(request, response, accessDeniedException);
    }
    else
    {
      if (defaultAccessDeniedUrl != null)
      {
View Full Code Here

Examples of org.springframework.web.servlet.HandlerAdapter.handle()

            interceptorIndex = i;
          }
        }

        // Actually invoke the handler.
        mv = ha.handle(processedRequest, response, mappedHandler.getHandler());

        // Do we need view name translation?
        if (mv != null && !mv.hasView()) {
          mv.setViewName(getDefaultViewName(request));
        }
View Full Code Here

Examples of org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle()

    MockHttpServletResponse response = new MockHttpServletResponse();
    for (HandlerInterceptor interceptor : chain.getInterceptors()) {
      interceptor.preHandle(request, response, chain.getHandler());
    }
    ModelAndView mv = adapter.handle(request, response, chain.getHandler());
    assertNull(mv);
  }

  @Test
  public void testResourcesWithOptionalAttributes() throws Exception {
View Full Code Here

Examples of org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle()

        {
            log.debug("handler is " + handler);
        }

        HandlerAdapter handlerAdaptor = new SimpleControllerHandlerAdapter();
        handlerAdaptor.handle(request, wrapper, handler);

        ExportDelegate.writeExport(response, request, wrapper);

        return false;
    }
View Full Code Here

Examples of org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle()

    AnnotationMethodHandlerAdapter adapter = pluginControllerInfo
        .getHandlerAdapterMap().get(handler);

    try {
      // 执行处理,得到模型与视图
      ModelAndView mav = adapter.handle(request, response, handler);
      if (mav == null) {
        return null;
      }
      return mav;
    } catch (Exception ex) {
View Full Code Here

Examples of org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handle()

    assertTrue(chain.getInterceptors()[0] instanceof ConversionServiceExposingInterceptor);
    ConversionServiceExposingInterceptor interceptor = (ConversionServiceExposingInterceptor) chain.getInterceptors()[0];
    interceptor.preHandle(request, response, handlerMethod);
    assertSame(appContext.getBean(ConversionService.class), request.getAttribute(ConversionService.class.getName()));

    adapter.handle(request, response, handlerMethod);
    assertTrue(handler.recordedValidationError);

    CompositeUriComponentsContributor uriComponentsContributor = this.appContext.getBean(
        MvcUriComponentsBuilder.MVC_URI_COMPONENTS_CONTRIBUTOR_BEAN_NAME,
        CompositeUriComponentsContributor.class);
View Full Code Here

Examples of org.springmodules.validation.bean.conf.loader.xml.handler.ClassValidationElementHandler.handle()

            if (handler == null) {
                logger.error("Could not handle element '" + ruleDefinition.getTagName() +
                    "'. Please make sure the proper validation rule definition handler is registered");
                throw new ValidationConfigurationException("Could not handler element '" + ruleDefinition.getTagName() + "'");
            }
            handler.handle(ruleDefinition, configuration);
        }
    }

    protected void handleMethodDefinition(Element methodDefinition, Class clazz, MutableBeanValidationConfiguration configuration) {
        String methodName = methodDefinition.getAttribute(NAME_ATTR);
View Full Code Here

Examples of org.springmodules.validation.bean.conf.loader.xml.handler.PropertyValidationElementHandler.handle()

            if (handler == null) {
                logger.error("Could not handle element '" + ruleDefinition.getTagName() +
                    "'. Please make sure the proper validation rule definition handler is registered");
                throw new ValidationConfigurationException("Could not handle element '" + ruleDefinition.getTagName() + "'");
            }
            handler.handle(ruleDefinition, propertyName, configuration);
        }
    }

    protected PropertyValidationRule createPropertyRule(String propertyName, ValidationRule rule) {
        return new PropertyValidationRule(propertyName, rule);
View Full Code Here

Examples of org.uiautomation.ios.inspector.controllers.IDECommandController.handle()

  @Override
  protected void doGet(HttpServletRequest req, HttpServletResponse response) throws IOException {
    response.setCharacterEncoding("UTF-8");
    try {
      IDECommandController controller = getController(req.getPathInfo());
      View view = controller.handle(req);
      view.render(response);
    } catch (Exception e) {
      log.log(Level.SEVERE, "ide process error", e);
    }
  }
View Full Code Here

Examples of org.vertx.java.core.Handler.handle()

      case "ack":
        Map<String, Handler<JsonArray>> acks = socket.getAcks();
        if (acks.size() > 0) {
          Handler ackHandler = acks.get(packet.getString("ackId"));
          if (ackHandler != null) {
            ackHandler.handle(packet.getArray("args"));
          } else {
            log.info("unknown ack packet");
          }
        }
        break;
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.