public final class FkMethods extends Object implements Fork
Use this class in combination with TkFork
,
for example:
Take take = new TkFork( new FkMethods("GET", new TkLoad()), new FkMethods("PUT", new TkSave()) );
The class is immutable and thread-safe.
TkFork
public FkMethods(Collection<String> mtds, Take tke)
mtds
- Methodstke
- Takepublic Iterator<Response> route(Request req) throws IOException
Fork
route
in interface Fork
req
- RequestIOException
- If failsCopyright © 2015 Take. All rights reserved.