Examples of containsAnnotation()


Examples of br.com.caelum.vraptor.controller.ControllerMethod.containsAnnotation()

  public void deserializes(@Observes ReadyToExecuteMethod event, HttpServletRequest request,
      MethodInfo methodInfo, Status status) throws IOException {

    ControllerMethod method = event.getControllerMethod();

    if (!method.containsAnnotation(Consumes.class)) return;

    List<String> supported =  asList(method.getMethod().getAnnotation(Consumes.class).value());

    String contentType = mime(request.getContentType());
    if (!supported.isEmpty() && !supported.contains(contentType)) {
View Full Code Here

Examples of br.com.caelum.vraptor.controller.ControllerMethod.containsAnnotation()

  public void deserializes(@Observes ReadyToExecuteMethod event, HttpServletRequest request,
      MethodInfo methodInfo, Status status) throws IOException {

    ControllerMethod method = event.getControllerMethod();

    if (!method.containsAnnotation(Consumes.class)) return;

    List<String> supported =  asList(method.getMethod().getAnnotation(Consumes.class).value());

    String contentType = mime(request.getContentType());
    if (!supported.isEmpty() && !supported.contains(contentType)) {
View Full Code Here

Examples of br.com.caelum.vraptor.controller.ControllerMethod.containsAnnotation()

  public void deserializes(@Observes InterceptorsReady event, HttpServletRequest request,
      MethodInfo methodInfo, Status status) throws IOException {

    ControllerMethod method = event.getControllerMethod();

    if (!method.containsAnnotation(Consumes.class)) return;

    List<String> supported =  asList(method.getMethod().getAnnotation(Consumes.class).value());

    String contentType = mime(request.getContentType());
    if (!supported.isEmpty() && !supported.contains(contentType)) {
View Full Code Here

Examples of br.com.caelum.vraptor.controller.ControllerMethod.containsAnnotation()

  public void deserializes(@Observes InterceptorsReady event, HttpServletRequest request,
      MethodInfo methodInfo, Status status) throws IOException {

    ControllerMethod method = event.getControllerMethod();

    if (!method.containsAnnotation(Consumes.class)) return;

    List<String> supported =  asList(method.getMethod().getAnnotation(Consumes.class).value());

    String contentType = mime(request.getContentType());
    if (!supported.isEmpty() && !supported.contains(contentType)) {
View Full Code Here

Examples of br.com.caelum.vraptor.controller.ControllerMethod.containsAnnotation()

  public void deserializes(@Observes InterceptorsReady event, HttpServletRequest request,
      MethodInfo methodInfo, Status status) throws IOException {

    ControllerMethod method = event.getControllerMethod();

    if (!method.containsAnnotation(Consumes.class)) return;

    List<String> supported =  asList(method.getMethod().getAnnotation(Consumes.class).value());

    if(request.getContentType() == null) {
      logger.warn("Request does not have Content-Type and parameters will be not deserialized");
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.