public class ApplicationOrMetaRouter<E> extends Object implements ApplicationRouter<E>
Constructor and Description |
---|
ApplicationOrMetaRouter(ApplicationRouter<E> applicationRouter,
ApplicationRouter<E> metaRouter) |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getMethodsForValidRules(Request message)
Returns a collection of valid methods (such as GET and POST) for the URI of the provided
request.
|
List<E> |
getRuleTargets()
Return a list of all target objects that this router handles.
|
Optional<RuleMatch<E>> |
match(Request message)
Match a request to a configured entity.
|
public ApplicationOrMetaRouter(ApplicationRouter<E> applicationRouter, ApplicationRouter<E> metaRouter)
public Optional<RuleMatch<E>> match(Request message) throws InvalidUriException
ApplicationRouter
match
in interface ApplicationRouter<E>
message
- The message to find the entity forInvalidUriException
public Collection<String> getMethodsForValidRules(Request message)
ApplicationRouter
getMethodsForValidRules
in interface ApplicationRouter<E>
message
- The message to find the methods forpublic List<E> getRuleTargets()
ApplicationRouter
getRuleTargets
in interface ApplicationRouter<E>
Copyright © 2016. All rights reserved.