public final class FkAnonymous extends Object implements Fork
Use this class in combination with TkFork
,
for example:
Take take = new TkFork( new FkRegex( "/", new TkFork( new FkAnonymous(new TkHome()), new FkAuthenticated(new TkAccount()) ) ) );
The class is immutable and thread-safe.
Constructor and Description |
---|
FkAnonymous(Scalar<Take> tke)
Ctor.
|
FkAnonymous(Take tke)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Opt<Response> |
route(Request req)
Process this request or ignore it.
|
public FkAnonymous(Take tke)
tke
- Targetpublic Opt<Response> route(Request req) throws IOException
Fork
route
in interface Fork
req
- RequestIOException
- If failsCopyright © 2015–2019 Take. All rights reserved.