192021222324252627
*/ public class ManualWagonProvider implements WagonProvider { public Wagon lookup(String roleHint) throws Exception { if ("http".equals(roleHint)) { return new AhcWagon(); } return null; }
113114115116117118119120121
private static class ManualWagonProvider implements WagonProvider { public Wagon lookup( String roleHint ) throws Exception { if ( "http".equals( roleHint ) ) { return new AhcWagon(); } return null; }
91011121314151617
15161718192021
* @author Christian Schlichtherle (revision) */ final class AhcWagonProvider implements WagonProvider { @Override public Wagon lookup(String roleHint) throws Exception { return "http".equals(roleHint) ? new AhcWagon() : null; }