Package org.takes.facets.fork
Class FkAnonymous
- java.lang.Object
-
- org.takes.facets.fork.FkAnonymous
-
- All Implemented Interfaces:
Fork
public final class FkAnonymous extends Object implements Fork
Fork if no user is logged in now.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 Summary
Constructors Constructor Description FkAnonymous(org.cactoos.Scalar<Take> tke)
Ctor.FkAnonymous(Take tke)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Opt<Response>
route(Request req)
Process this request or ignore it.
-