public final class FkMethods extends Object implements Fork.AtTake
Use this class in combination with TsFork
,
for example:
Takes takes = new TsFork( new FkMethods("GET", new TsLoad()), new FkMethods("PUT", new TsSave()) );
The class is immutable and thread-safe.
TsFork
Fork.AtResponse, Fork.AtTake
public FkMethods(String mtd, Target<Request> tgt)
mtd
- Methodtgt
- Takespublic FkMethods(Collection<String> mtds, Target<Request> tgt)
mtds
- Methodstgt
- Takespublic Iterator<Take> route(Request req) throws IOException
Fork
route
in interface Fork<Take>
req
- RequestIOException
- If failsCopyright © 2015 Takes. All rights reserved.