"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient/src/main/java/org/apache/http/client/methods/AbstractExecutionAwareRequest.java" between
httpcomponents-client-4.5.6-src.tar.gz and httpcomponents-client-4.5.7-src.tar.gz

About: HttpComponents is an Apache project responsible for creating and maintaining a toolset of low level Java components focused on HTTP and associated protocols. Java sources.

AbstractExecutionAwareRequest.java  (httpcomponents-client-4.5.6-src):AbstractExecutionAwareRequest.java  (httpcomponents-client-4.5.7-src)
skipping to change at line 53 skipping to change at line 53
private final AtomicBoolean aborted; private final AtomicBoolean aborted;
private final AtomicReference<Cancellable> cancellableRef; private final AtomicReference<Cancellable> cancellableRef;
protected AbstractExecutionAwareRequest() { protected AbstractExecutionAwareRequest() {
super(); super();
this.aborted = new AtomicBoolean(false); this.aborted = new AtomicBoolean(false);
this.cancellableRef = new AtomicReference<Cancellable>(null); this.cancellableRef = new AtomicReference<Cancellable>(null);
} }
/**
* @deprecated Use {@link #setCancellable(Cancellable)}
*/
@Override @Override
@Deprecated @Deprecated
public void setConnectionRequest(final ClientConnectionRequest connRequest) { public void setConnectionRequest(final ClientConnectionRequest connRequest) {
setCancellable(new Cancellable() { setCancellable(new Cancellable() {
@Override @Override
public boolean cancel() { public boolean cancel() {
connRequest.abortRequest(); connRequest.abortRequest();
return true; return true;
} }
}); });
} }
/**
* @deprecated Use {@link #setCancellable(Cancellable)}
*/
@Override @Override
@Deprecated @Deprecated
public void setReleaseTrigger(final ConnectionReleaseTrigger releaseTrigger) { public void setReleaseTrigger(final ConnectionReleaseTrigger releaseTrigger) {
setCancellable(new Cancellable() { setCancellable(new Cancellable() {
@Override @Override
public boolean cancel() { public boolean cancel() {
try { try {
releaseTrigger.abortConnection(); releaseTrigger.abortConnection();
return true; return true;
 End of changes. 2 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)