public final class FkTypes extends Object implements Fork
The class is immutable and thread-safe.
RsFork
Constructor and Description |
---|
FkTypes(String list,
Response resp)
Ctor.
|
FkTypes(String list,
Take tke)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Opt<Response> |
route(Request req)
Process this request or ignore it.
|
public FkTypes(String list, Response resp)
list
- List of typesresp
- Response to returnpublic Opt<Response> route(Request req) throws IOException
Fork
route
in interface Fork
req
- RequestIOException
- If failsCopyright © 2015–2018 Take. All rights reserved.