/** * @since 2.3 * @param facesContext * @param path * @param options * @return */ public Stream<java.lang.String> getViews(FacesContext facesContext, String path, ViewVisitOption... options) { return getViews(facesContext, path, Integer.MAX_VALUE, options); }
/** * <p>The default behavior of this method is to * call {@link ViewHandler#getViews(FacesContext, String, int, ViewVisitOption...)} * on the wrapped {@link ViewHandler} object.</p> * * @since 2.3 */ @Override public Stream<String> getViews(FacesContext context, String path, int maxDepth, ViewVisitOption... options) { return getWrapped().getViews(context, path, maxDepth, options); }
/** * <p> * The default behavior of this method is to call * {@link ViewHandler#getViews(FacesContext, String, ViewVisitOption...)} on the wrapped * {@link ViewHandler} object. * </p> * * @since 2.3 */ @Override public Stream<String> getViews(FacesContext context, String path, ViewVisitOption... options) { return getWrapped().getViews(context, path, options); }
/** * <p> * The default behavior of this method is to call * {@link ViewHandler#getViews(FacesContext, String, int, ViewVisitOption...)} on the wrapped * {@link ViewHandler} object. * </p> * * @since 2.3 */ @Override public Stream<String> getViews(FacesContext context, String path, int maxDepth, ViewVisitOption... options) { return getWrapped().getViews(context, path, maxDepth, options); }
/** * <p>The default behavior of this method is to * call {@link ViewHandler#getViews(FacesContext, String, int, ViewVisitOption...)} * on the wrapped {@link ViewHandler} object.</p> * * @since 2.3 */ @Override public Stream<String> getViews(FacesContext context, String path, int maxDepth, ViewVisitOption... options) { return getWrapped().getViews(context, path, maxDepth, options); }
/** * <p>The default behavior of this method is to * call {@link ViewHandler#getViews(FacesContext, String, ViewVisitOption...)} * on the wrapped {@link ViewHandler} object.</p> * * @since 2.3 */ @Override public Stream<String> getViews(FacesContext context, String path, ViewVisitOption... options) { return getWrapped().getViews(context, path, options); }
@Override public Stream<String> getViews(FacesContext facesContext, String path, int maxDepth, ViewVisitOption... options) { return getWrapped().getViews(facesContext, path, maxDepth, options); }
@Override public Stream<String> getViews(FacesContext facesContext, String path, ViewVisitOption... options) { return getWrapped().getViews(facesContext, path, options); }
/** * <p> * The default behavior of this method is to call * {@link ViewHandler#getViews(FacesContext, String, int, ViewVisitOption...)} on the wrapped * {@link ViewHandler} object. * </p> * * @since 2.3 */ @Override public Stream<String> getViews(FacesContext context, String path, int maxDepth, ViewVisitOption... options) { return getWrapped().getViews(context, path, maxDepth, options); }
/** * <p>The default behavior of this method is to * call {@link ViewHandler#getViews(FacesContext, String, ViewVisitOption...)} * on the wrapped {@link ViewHandler} object.</p> * * @since 2.3 */ @Override public Stream<String> getViews(FacesContext context, String path, ViewVisitOption... options) { return getWrapped().getViews(context, path, options); }
/** * <p> * The default behavior of this method is to call * {@link ViewHandler#getViews(FacesContext, String, int, ViewVisitOption...)} on the wrapped * {@link ViewHandler} object. * </p> * * @since 2.3 */ @Override public Stream<String> getViews(FacesContext context, String path, int maxDepth, ViewVisitOption... options) { return getWrapped().getViews(context, path, maxDepth, options); }
/** * <p> * The default behavior of this method is to call * {@link ViewHandler#getViews(FacesContext, String, ViewVisitOption...)} on the wrapped * {@link ViewHandler} object. * </p> * * @since 2.3 */ @Override public Stream<String> getViews(FacesContext context, String path, ViewVisitOption... options) { return getWrapped().getViews(context, path, options); }
/** * <p>The default behavior of this method is to * call {@link ViewHandler#getViews(FacesContext, String, ViewVisitOption...)} * on the wrapped {@link ViewHandler} object.</p> * * @since 2.3 */ @Override public Stream<String> getViews(FacesContext context, String path, ViewVisitOption... options) { return getWrapped().getViews(context, path, options); }
/** * <p>The default behavior of this method is to * call {@link ViewHandler#getViews(FacesContext, String, int, ViewVisitOption...)} * on the wrapped {@link ViewHandler} object.</p> * * @since 2.3 */ @Override public Stream<String> getViews(FacesContext context, String path, int maxDepth, ViewVisitOption... options) { return getWrapped().getViews(context, path, maxDepth, options); }
/** * <p> * The default behavior of this method is to call * {@link ViewHandler#getViews(FacesContext, String, int, ViewVisitOption...)} on the wrapped * {@link ViewHandler} object. * </p> * * @since 2.3 */ @Override public Stream<String> getViews(FacesContext context, String path, int maxDepth, ViewVisitOption... options) { return getWrapped().getViews(context, path, maxDepth, options); }
/** * <p> * The default behavior of this method is to call * {@link ViewHandler#getViews(FacesContext, String, ViewVisitOption...)} on the wrapped * {@link ViewHandler} object. * </p> * * @since 2.3 */ @Override public Stream<String> getViews(FacesContext context, String path, ViewVisitOption... options) { return getWrapped().getViews(context, path, options); }
/** * <p> * The default behavior of this method is to call * {@link ViewHandler#getViews(FacesContext, String, ViewVisitOption...)} on the wrapped * {@link ViewHandler} object. * </p> * * @since 2.3 */ @Override public Stream<String> getViews(FacesContext context, String path, ViewVisitOption... options) { return getWrapped().getViews(context, path, options); }
@Override public void contextInitialized(ServletContextEvent sce) { FacesContext context = FacesContext.getCurrentInstance(); sce.getServletContext() .getServletRegistrations() .values() .stream() .filter(e -> e.getClassName().equals(FacesServlet.class.getName())) .findAny() .ifPresent( reg -> context.getApplication() .getViewHandler() .getViews(context, "/", RETURN_AS_MINIMAL_IMPLICIT_OUTCOME) .forEach(e -> reg.addMapping(e))); }
/** * * @since 2.3 * @param facesContext */ protected void initAutomaticExtensionlessMapping(FacesContext facesContext, ServletContext servletContext) { final ServletRegistration facesServletRegistration = getFacesServletRegistration(facesContext, servletContext); if (facesServletRegistration != null) { facesContext.getApplication().getViewHandler().getViews(facesContext, "/", ViewVisitOption.RETURN_AS_MINIMAL_IMPLICIT_OUTCOME).forEach(s -> { facesServletRegistration.addMapping(s); }); } }