public class RequestEngineConfig {
public static IRequestEncodingStrategy getRequestEncodingStrategy(IHttpRequestEngine.EngineConfigType type) {
switch(type) {
case CONFIG_SCANNER:
return new ScannerRequestEncodingStrategy();
case CONFIG_PROXY:
return new ProxyRequestEncodingStrategy();
}
throw new IllegalStateException();
}