public final class FkAnonymous extends Object implements Fork.AtTake
Use this class in combination with TsFork
,
for example:
Takes takes = new TsFork( new FkRegex( "/", new TsFork( new FkAnonymous(new TsHome()), new FkAuthenticated(new TsAccount()) ) ) );
The class is immutable and thread-safe.
TsFork
,
Target
Fork.AtResponse, Fork.AtTake
Constructor and Description |
---|
FkAnonymous(Take take)
Ctor.
|
FkAnonymous(Takes takes)
Ctor.
|
FkAnonymous(Target<Request> tgt)
Ctor.
|
public FkAnonymous(Take take)
take
- Takepublic FkAnonymous(Takes takes)
takes
- Takespublic Iterator<Take> route(Request req) throws IOException
Fork
route
in interface Fork<Take>
req
- RequestIOException
- If failsCopyright © 2015 Takes. All rights reserved.