Code example for HttpRequest

Methods: getParams

                                           HttpRequest request,
                                           HttpContext context)
        throws HttpException { 
        if (target == null) {
            target = (HttpHost) request.getParams().getParameter(
        if (target == null) {
            throw new IllegalStateException("Target host must not be null, or set in parameters.");
        return this.routePlanner.determineRoute(target, request, context);
     * Establishes the target route. 
     * @param route     the route to establish 
Experience pair programming with AI  Get Codota for Java