All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.faces.config.initfacescontext.NoOpFlash Maven / Gradle / Ivy

There is a newer version: 4.1.1
Show newest version
/*
 * Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0, which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * This Source Code may also be made available under the following Secondary
 * Licenses when the conditions for such availability set forth in the
 * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
 * version 2 with the GNU Classpath Exception, which is available at
 * https://www.gnu.org/software/classpath/license.html.
 *
 * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
 */

package com.sun.faces.config.initfacescontext;

import static java.util.Collections.emptyList;

import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import java.util.Set;

import jakarta.faces.context.FacesContext;
import jakarta.faces.context.Flash;

public class NoOpFlash extends Flash {

    @Override
    public void doPostPhaseActions(FacesContext ctx) {

    }

    @Override
    public void doPrePhaseActions(FacesContext ctx) {

    }

    @Override
    public boolean isKeepMessages() {
        return false;
    }

    @Override
    public boolean isRedirect() {
        return false;
    }

    @Override
    public void keep(String key) {

    }

    @Override
    public void putNow(String key, Object value) {

    }

    @Override
    public void setKeepMessages(boolean newValue) {

    }

    @Override
    public void setRedirect(boolean newValue) {

    }

    @Override
    public void clear() {

    }

    @Override
    public boolean containsKey(Object key) {
        return false;
    }

    @Override
    public boolean containsValue(Object value) {
        return false;
    }

    @Override
    public Set> entrySet() {
        return Collections.emptySet();
    }

    @Override
    public Object get(Object key) {
        return null;
    }

    @Override
    public boolean isEmpty() {
        return true;
    }

    @Override
    public Set keySet() {
        return Collections.emptySet();
    }

    @Override
    public Object put(String key, Object value) {
        return null;
    }

    @Override
    public void putAll(Map m) {

    }

    @Override
    public Object remove(Object key) {
        return null;
    }

    @Override
    public int size() {
        return 0;
    }

    @Override
    public Collection values() {
        return emptyList();
    }

}