public interface RtRule
A rule which is applied to the request metadata such as request line and
headers. If rule matched, then routing slice SliceRoute will
redirect request to target Slice.
| Modifier and Type | Interface and Description |
|---|---|
static class |
RtRule.ByMethod
Route by method.
|
static class |
RtRule.ByPath
Route by path.
|
static class |
RtRule.Multiple
Route by multiple rules.
|
| Modifier and Type | Field and Description |
|---|---|
static RtRule |
FALLBACK
Fallback RtRule.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(String line,
Iterable<Map.Entry<String,String>> headers)
Apply this rule to request.
|
Copyright © 2012–2020 jcabi.com. All rights reserved.