/** * Constructor. * * @param context * The context. * @param protocols * The connector protocols. * @param helperClass * Optional helper class name. */ public Client(Context context, List<Protocol> protocols, String helperClass) { super(context, protocols); if ((protocols != null) && !protocols.isEmpty()) { if (Engine.getInstance() != null) { this.helper = Engine.getInstance().createHelper(this, helperClass); } else { this.helper = null; } } else { this.helper = null; } if (context != null && this.helper != null) { context.getAttributes().put("org.restlet.engine.helper", this.helper); } }
this.helper = Engine.getInstance().createHelper(this, helperClass); } else { this.helper = null;