Package com.minlessika.secure
Class TkSecure
- java.lang.Object
-
- org.takes.tk.TkWrap
-
- com.minlessika.secure.TkSecure
-
- All Implemented Interfaces:
org.takes.Take
public final class TkSecure extends org.takes.tk.TkWrapTake that secures a page and redirects by default to login page.The class is immutable and thread-safe.
- Author:
- Olivier B. OURA (baudoliver7@gmail.com)
-
-
Constructor Detail
-
TkSecure
public TkSecure(org.takes.Take take)
Ctor.- Parameters:
take- take to secure
-
TkSecure
public TkSecure(org.takes.Take take, String location)Ctor.- Parameters:
take- take to securelocation- Location to redirect
-
-