Package org.osforce.spring4me.web.stereotype

Examples of org.osforce.spring4me.web.stereotype.Widget


*/
public abstract class WidgetInterceptorAdapter implements HandlerInterceptor {

  public boolean preHandle(HttpServletRequest request,
      HttpServletResponse response, Object handler) throws Exception {
    Widget widget = AnnotationUtils.findAnnotation(handler.getClass(), Widget.class);
    if(widget!=null) {
      return preHandleWidget(new HttpWidgetRequest(request),
          new HttpWidgetResponse(response), handler);
    }
    return true;
View Full Code Here


  }
 
  public void postHandle(HttpServletRequest request,
      HttpServletResponse response, Object handler,
      ModelAndView modelAndView) throws Exception {
    Widget widget = AnnotationUtils.findAnnotation(handler.getClass(), Widget.class);
    if(widget!=null) {
      postHandleWidget(new HttpWidgetRequest(request),
          new HttpWidgetResponse(response), handler, modelAndView);
    }
  }
View Full Code Here

  }
 
  public void afterCompletion(HttpServletRequest request,
      HttpServletResponse response, Object handler, Exception ex)
      throws Exception {
    Widget widget = AnnotationUtils.findAnnotation(handler.getClass(), Widget.class);
    if(widget!=null) {
      afterCompletionWidget(new HttpWidgetRequest(request),
          new HttpWidgetResponse(response), handler, ex);
    }
  }
View Full Code Here

      System.out.println(((HttpWidgetResponse) response).getResponseAsString());
    }
  }
 
  private HttpServletRequest checkWidget(HttpServletRequest request, Object handler) throws Exception {
    Widget widget = AnnotationUtils.findAnnotation(handler.getClass(), Widget.class);
    if(widget!=null) {
      return new HttpWidgetRequest(request);
    }
    return request;
  }
View Full Code Here

    }
    return request;
  }

  private HttpServletResponse checkWidget(HttpServletResponse response, Object handler) throws Exception {
    Widget widget = AnnotationUtils.findAnnotation(handler.getClass(), Widget.class);
    if(widget!=null) {
      return new HttpWidgetResponse(response);
    }
    return response;
  }
View Full Code Here

TOP

Related Classes of org.osforce.spring4me.web.stereotype.Widget

Copyright © 2018 www.massapicom. 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.