Package org.apache.http.client.methods

Examples of org.apache.http.client.methods.HttpRequestBase.abort()


    }

    public void abortRequest(SubmitContext submitContext) {
        HttpRequestBase postMethod = (HttpRequestBase) submitContext.getProperty(HTTP_METHOD);
        if (postMethod != null) {
            postMethod.abort();
        }
    }

    public Response sendRequest(SubmitContext submitContext, Request request) throws Exception {
        AbstractHttpRequestInterface<?> httpRequest = (AbstractHttpRequestInterface<?>) request;
View Full Code Here


            throw e;
        } catch (final RuntimeException e) {
            logger.error(
                    "A runtime exception has occured while executing request",
                    e);
            req.abort();
            throw e;
        } finally {
            req.releaseConnection();
        }
    }
View Full Code Here

            else
            {
                log.error("IOException occurred during execution for {} {}", proxyTargetURL, e);
            }
           
            httpRequest.abort();
            httpEntity = null;
           
            throw e;
        }
        catch (Exception e)
View Full Code Here

            else
            {
                log.error("Exception occurred during execution for {} {}", proxyTargetURL, e);
            }
           
            httpRequest.abort();
            httpEntity = null;
           
            throw new HttpReverseProxyException(e);
        }
        finally
View Full Code Here

                logger.error("payload:{}", EntityUtils.toString(heer.getEntity()));
            }
            throw e;
        } catch (final RuntimeException e) {
            logger.error("A runtime exception has occured while executing request", e);
            req.abort();
            throw e;
        } finally {
            req.releaseConnection();
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.