mirror of
https://github.com/google/nomulus.git
synced 2025-05-28 16:30:12 +02:00
Add golden files for request component routing maps
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=157026188
This commit is contained in:
parent
bb67841884
commit
ddb0f5692e
23 changed files with 514 additions and 39 deletions
|
@ -25,12 +25,14 @@ import com.google.common.base.Function;
|
|||
@AutoValue
|
||||
abstract class Route {
|
||||
|
||||
static Route create(Action action, Function<Object, Runnable> instantiator) {
|
||||
return new AutoValue_Route(action, instantiator);
|
||||
static Route create(
|
||||
Action action, Function<Object, Runnable> instantiator, Class<?> actionClass) {
|
||||
return new AutoValue_Route(action, instantiator, actionClass);
|
||||
}
|
||||
|
||||
abstract Action action();
|
||||
abstract Function<Object, Runnable> instantiator();
|
||||
abstract Class<?> actionClass();
|
||||
|
||||
boolean isMethodAllowed(Action.Method requestMethod) {
|
||||
for (Action.Method method : action().method()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue