Package org.apache.commons.httpclient

Examples of org.apache.commons.httpclient.HttpMethodBase.abort()


  public void abortRequest( SubmitContext submitContext )
  {
    HttpMethodBase postMethod = ( HttpMethodBase )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


      int res = client.executeMethod(m);
      Utils.processResultCode(res, url);
      in = m.getResponseBodyAsStream();
      receiver.receive(in);
    } catch (HttpException ex) {
      m.abort();
      throw new GenericHttpException(ex.getReasonCode(), url);
    } catch (Utils.CancelledException ex) {
      m.abort();
      throw ex;
    } catch (IOException ex) {
View Full Code Here

      receiver.receive(in);
    } catch (HttpException ex) {
      m.abort();
      throw new GenericHttpException(ex.getReasonCode(), url);
    } catch (Utils.CancelledException ex) {
      m.abort();
      throw ex;
    } catch (IOException ex) {
      m.abort();
      throw new RuntimeException(ex);
    } finally {
View Full Code Here

      throw new GenericHttpException(ex.getReasonCode(), url);
    } catch (Utils.CancelledException ex) {
      m.abort();
      throw ex;
    } catch (IOException ex) {
      m.abort();
      throw new RuntimeException(ex);
    } finally {
      Utils.close(in);
      m.releaseConnection();
      notifyFinishRequest();
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.