/*
 * RESTHeart Security
 * 
 * Copyright (C) SoftInstigate Srl
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.restheart.security.plugins;

import static org.restheart.security.plugins.RequestInterceptor.IPOINT.BEFORE_AUTH;

/**
 * An request interceptor can snoop and modify requests before proxying them.
 * Can be setup by an Initializer using
 * PluginsRegistry.getRequestInterceptors().add()
 *
 * @author Andrea Di Cesare <andrea@softinstigate.com>
 */
public interface RequestInterceptor extends Interceptor {
    public enum IPOINT { BEFORE_AUTH, AFTER_AUTH }
    
    /**
     *
     * @return true if the Interceptor requires to access the request content
     */
    default boolean requiresContent() {
        return false;
    }
    
    /**
     *
     * @return 
     */
    default IPOINT interceptPoint() {
        return BEFORE_AUTH;
    }
}

@@ -1296,16 +1296,34 @@
 @return 
+the intecept point
 %0A     */

Fix javadoc