Package org.takes.facets.fork
Class FkAuthenticated
- java.lang.Object
-
- org.takes.facets.fork.FkAuthenticated
-
- All Implemented Interfaces:
Fork
public final class FkAuthenticated extends Object implements Fork
Fork if 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 FkAuthenticated(org.cactoos.Scalar<Take> tke)
Ctor.FkAuthenticated(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.
-