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

io.micronaut.web.router.MethodBasedRouteMatch Maven / Gradle / Ivy

There is a newer version: 4.6.5
Show newest version
/*
 * Copyright 2017-2019 original authors
 *
 * 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 io.micronaut.web.router;

import io.micronaut.core.type.Argument;
import io.micronaut.inject.MethodExecutionHandle;

import java.util.Arrays;
import java.util.Collection;

/**
 * Match a route based on a method.
 *
 * @param  The target
 * @param  The route
 */
public interface MethodBasedRouteMatch extends RouteMatch, MethodExecutionHandle {

    /**
     * 

Returns the required arguments for this RouteMatch<./p> *

*

Note that this is not the save as {@link #getArguments()} as it will include a subset of the arguments * excluding those that have been subtracted from the URI variables.

* * @return The required arguments in order to invoke this route */ default Collection getRequiredArguments() { return Arrays.asList(getArguments()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy